agualis

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • in reply to: Dynamically Populate Select Dropdown #95997
    agualis
    Participant

    Hi everybody,

    as all of you guys, I need a dropdown2 (subcategories) populated when another dropdown1 (categories) is changed.

    I have an inline grid.

    If I use the approaches explained in this forum (dataUrl and Ajax calls) everything works fine but what I want now is to

    avoid all those Ajax requests to increase my site performance.

    My idea is to load every option in the first load of the page so I have created a JQuery function (populateFromLocalValues)

    to change the dropdown2 values working with them locally.

    When I change a value in dropdown1 the values are correctly populated in dropdown2 throughtthe implementation of a

    change function in the “change dataEvent” of the dropdown1.

    My problem comes when I have to initialize the values of dropdown2 when I select a row. I'm using the following code:

    {name:'subcategory_id',index:'subcategory_id', width:110, align:”right”, sortable:false, editable: true, edittype:”select”,

Viewing 1 replies (of 1 total)

Stay connected with us in your favorite flavor!