Question

I have an issue when the grid's Add functionality kicks in. My colModel defines some valid options for the select element. When faced with adding a new row to the grid, the select element is always rendering with an undefined value and not one of the actual values from the colModel. What is the technique to ensuring only the actual colModel values for this element are presented?

Was it helpful?

Solution

According to the docs, you have a syntax mistake in your editoptions configuration:

Note the last element in the string - it should not end with ;

Therefore your vendorOptions value should be:

var vendorOptions = {value: "1:AAA;2:BBB;3:CCC;4:DDD;5:EEE;6:FFF"};

You can read the full docs here: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules#editable

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top