DomAPI Home
DomAPI
Build: Not Applicable
Topic: ListGrid column sorting, commas in values

  geeds not registered wrote on Wednesday 4/28/04 at 10:39 PM (PST)  
 

1) Is it possible to make the sorting in the listgrid, when pressing the column header, case-insensitive?

2) Before calling the addRow I concatenate some values, separated by commas.
like "A" "B" "C" becomes "A,B,C".
But when the value contains a comma I have a problem,
like "A" "B,B" "C" becomes "A,B,B,C". causing the the last columns to get "B" and "B" instead of "B,B" and "C".

what is the best way to deal with this?

Thanks

Ben

 
    RSS feed of forum  
  Patrice Fricard registered v3 wrote on Thursday 4/29/04 at 2:18 AM (PST)  
 

Hi,

To specify your own sorting method, you have to overwrite the current one. See: http://www.domapi.com/forum_quick_view.cfm?topicid=692

The addRow method takes two arguments:
the list value and the delimiter. So insteed of using "," to concatenate value use "|".

mygrid.addRow("A|B,B|c","|");


Rgds

 
    RSS feed of forum  
You could respond to this post if you were logged in.
DHTML by www.domapi.com