Hi,
Been struggling this for hours and after reading many threads connected with select and editoptions I know the answer is in here somewhere but unfortunately I'm having difficulty digging it out – so I'm hoping someone can put me out of my misery.
I have a grid (grid_rm) in which one of the columns (dbcourseid) contains the primary key from a database table. The column is set to edittype “select” and I want it to perform like a standard dropdown – see/select a text value but store an ID.
All my data is in local arrays so after I initialise the grid but before I load any data I put together the option list for this select – “courselist”.
I then use the setColProp call to set this for the column:-
$(“#grid_rm”).setColProp('dbcourseid',{editoptions:{value:courselist}});
The problem is I can't seem to get the courselist to be in the right format to display as intended?
At the moment I have the data in an array – for example…
Course[0]
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top