jQWidgets Forums

jQuery UI Widgets Forums Grid Need combobox or DD (Parent/Child)

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Need combobox or DD (Parent/Child) #24664

    tuthmosis
    Member

    Greetings !

    Again this is another obvious use case.

    How to set the values of a combobox column B based on the selection previously made in the combobox in column A.

    Say i have a driver grid !

    One can enter his name in the first text column, then select Toyota in the first combobox (in the cell of column #2) then select “Camry” in the second combobox. (in the cell of column #3)

    I saw a couple of other guys who wrote the very same question but strangely, no real answer were provided !

    A “Cascading” combobox already exists but don’t know if it can be applied to combobox or dropdown controls in grid widget.

    Thanks !

    Need combobox or DD (Parent/Child) #24668

    Peter Stoev
    Keymaster

    Hi,

    In the “initeditor” callback function of your ComboBox column, you can dynamically update the editor’s data source by setting its “source” property to point to a new instance of jqxDataAdapter plug-in. I suppose that you will have to add some If’s in the “initeditor” based on the selection of the other column(s).

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.