I am using a RowEditing plugin within a data grid, implementing the MVC architecture. All is working as expected (minus some bumps with Internet Explorer), but one of the issues is with the combo box controls used within the inline editor. I have set my displayField and valueField properties within the column model as needed, but what happens is on data load, the grid displays the value, only due to the fact that I placed a renderer on the column to pull the name and display it within the column. On edit of the grid row, the Text Box shows [object, Object], rather than using the renderer, or the displayField. Any idea to have the textfield show the pre selected name property of my combobox, or the selected value when the user so chooses it?
Thank you in advance for any guidance on this issue.
What if you try to create a new datatype for that column, for example I did for the binary type. But youre own type and configure the model with it.
Just change the convert function to your needs.
this works fine for me. have you set forceSelection to false? the renderer should always return one value and not an object.
...and that will display properly the values on the initial load of the grid, but when going into RowEdit mode, the [object, Object] will then simply read as blank values (and not the true selected value). When editing or selecting a value now, the [object, Object] is finally gone, but now it simply just remains blank...almost there though.
I finally adjusted for the blanks with the below code...thank you so much for the help and guidance to get me to the solution!
The issue was that sometimes, the value was an object, and at others, it was an integer, which, from your code, I used to reference the record of the data store.
->Column display is ok, because of renderer.