Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by JOR on Dec 15, 2008 17:45
open dhtmlx forum
groupBy link bug?

I've implemented the following:

mygrid.customGroupFormat=function(text,count){return text.split("^")[0];}

The group headings all work correctly except for the link heading. The link group name shows up completely empty. I tried putting an alert inside the function to see what "text" evaluated to and it evaluates to "^null" on link columns.

mygrid.customGroupFormat=function(text,count){return text;} // alerts "^null" on link columns

In the grid the, the link displays and links correctly. It's just the group name is blank when grouped by a link column.

Any ideas what I might be doing wrong?
James
Answer posted by Support on Dec 16, 2008 01:36

The code which you are using is correct and must not cause any issues
The same code works correctly in local samples ( working one sent by email )

>>what "text" evaluated to and it evaluates to "^null" on link columns.
It can evaluate to such value only if you have an empty cell in the column

If issue still occurs - please provide any kind of sample where issue can be reconstructed

Answer posted by JOR on Dec 16, 2008 06:53
Thanks the sample file helped.  It turns out my problem was because I was using an <a href></a> in one column that was set to link, even though the column I was trying to group by was correctly formatted.  I thought I had changed all of the link columns to use the ^ format but I missed one.