Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
765
Auto Complete columns in iggrid
posted

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

Parents
No Data
Reply
  • 23953
    Suggested Answer
    Offline posted

    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 Pavlov
    Infragistics, Inc.

    igGridUpdating_CascadingCombo.zip
Children