Hi.
i work in a iggrid, made by controller code, one column of my grid is a ComboEditor, when i select an option of this combo, i want to fill many columns in a grid.
this is possible in iggrid??, if is necessary i would create a grid in my view (if is necessary)
thanks in advance.
Regards
Christhian
Hi Christhian,
Attached you can find sample which shows how to fill cells in igGrid based on igCombo selection.
In the sample when you create/update row and select a product from the combo in the "Product Name" column the "Product Number" column is automatically filled.
Following is the sample implementation description.
First I define editorType: "combo" and then to configure it in the editorOptions property.
The interesting part here is handling of igCombo.selectionChanged event.
In the event itself I extract the current selected item from the combo and lookup it in the productList array (igCombo is bound to productList array).
Next I get the "Product Number" column editor. Remember that we are currently editing the row.
Finally I use the igEditor.Value API method to set the correct value for the "Product Number" column.
Note: This solution won't work with editMode=cell.
Hope this helps,Martin PavlovInfragistics, Inc.
Hi Martin
First thanks for you response.
I think it's a great idea, and I did it in another scenario, but now with this grid, made from the controller, I have no idea how to assign an id to the combo of my cell, so I do not find as assign the event.
actually this is my problem now, please tell me if you need more data to get the big picture.
regardsChristhian