1 Reply Latest reply on Oct 22, 2009 10:08 AM by JeffryHouser

    editorDataField question

    Zolotoj Level 3

      If I have a combobox as a custom itemrenderer in a DataGrid and I set editorDataField to "id" should datagrid's selectedItem.id get a new value from combo's id field when I select something in the combobox?



        • 1. Re: editorDataField question
          JeffryHouser Level 4

          Do you really want to use id as the editor data field?  The id refers to the component's programatic variable name, right?


          Even so, that said; the editorDataFiel property refers to a property on the editor, not on properties within the editor.  I did not think it would drill down to use 'selectedItem.id' ; but you can use 'selectedItem. 


          You could also extend the ComboBox to have a 'value' type of property that holds 'selectedItem.id" from your ComboBox's dataProvider.  Except rename the 'id' property.