jQWidgets Forums

jQuery UI Widgets Forums Grid Change jqxDropDownList editor dynamically

This topic contains 1 reply, has 1 voice, and was last updated by  andy8 10 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • andy8
    Participant

    Hi everybody,

    I have a grid with two ‘custom ‘columns – jqxDropDownList type. I need the second column to change the source of dropdownlist dynamically, depending on the selected value of the 1st column. In other words:

    1st column dropdown list: Chicago, Paris, London, Sydney

    2nd column dropddown list:

    if Chicago selected: Street A, street B, Street C
    if Paris selected: Street G, Street T, Street M
    etc etc

    Is it doable? I understand that the source of dropdown lists is being set up under “createeditor” and am not sure how to change it dynamically subject to another cell’s content.

    How can I do that?

    Thanks!


    andy8
    Participant

    I have figured it out. It looks as the only way of changing the source of jqxDropDownList is to add conditions in initeditor, i.e. trigger the source change when revoking the editor.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.