unordered lists in grid cells

5 views
Skip to first unread message

llama

unread,
May 6, 2011, 11:57:00 AM5/6/11
to Moodgets
I am trying to add an unordered list to a grid cell. Something like:
....
header: "Simple List",
dataType:'string',
format: function(p_value){
return ('<ul><li>foo item 1</li><li>foo item 2</li></ul>');
},
width:90
....

It seems that when reordering columns or sorting, errors are thrown
because it is treating the <li/>'s as thought they are cells. Are
there any work-arounds for this? I do not need to sort or order the
column that contains the list.
Thanks in Advance! btw...keep up the great work!
Thanks again

Maurizio Conventi

unread,
May 6, 2011, 1:14:49 PM5/6/11
to Moodgets
Hi,

Thank's for your interest, I am glad that moodgets is useful for you!

At the moment the sort plugin skips only the entire columns with 'no-
sortable' class.

I can suggest you to copy and past the SortableGridPlugin.js file and
change it in order to skip the columns with a particular attribute in
the column model ora a particular class. Then you can use it in your
grid.

Let me know,
Maurizio

llama

unread,
May 10, 2011, 11:58:40 AM5/10/11
to Moodgets
I'm not sure if I follow. Could you provide a little pseudo code to
clarify?
Thanks again!

Maurizio Conventi

unread,
May 19, 2011, 5:54:00 AM5/19/11
to Moodgets
Hi, I've just created a post at http://bit.ly/mOHfrn to talk about how
to solve your problem creating a new plugin.

Let me know,

Maurizio
Reply all
Reply to author
Forward
0 new messages