|
Title: Set Local Data for combobox Editor In Editable Data Grid Post by: arma on October 23, 2013, 09:08:42 PM How to use local data for combobox in editable data grid ? I have an array data variable that needs to put to combobox.
<th field="username" width="150" align="center" data-options=" editor:{ type:'combobox', options:{ valueField:'username', textField:'fullname', data: [putting js variable array here does not work], required:false } }">User</th> <scriptt> var mydata = [{some:data},{another:data}]; </script> Title: Re: Set Local Data for combobox Editor In Editable Data Grid Post by: arma on October 24, 2013, 04:51:48 PM SOLVED.
Instead of using data-options attribute in <th>, i've changed it to use js code. So local data can be assigned from variable. |