Home › Forums › Guriddo jqGrid JS › Help › How to add color in a select field ?
A php script buids a list and the grid uses it like this:
var items= $.ajax(
I tried this:
Modification of the string by including a style:
“item1 style='color:red ':item1;item2:item2;…itemn:itemn”
but jQGrid transforms this in:
reditem1 etc …
because the : is a terminator !
Hello,
This is not tested, but you can try to build the string like:
“item1:item1;item2:item1….”
Best regards
Tony
Hi Tony,
Perfect because no “:”
Oups !
Not perfect because, after the selection in the listbox, the textbox is not filled !
The clear way IMHO (which work for me) is as follow:
Obtain your select via dataUrl option – the select can be something like this
2 3 4
Then define in the css:
Yes Tony, but the first idea was to build the data with the color, server side.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS