jQWidgets Forums

jQuery UI Widgets Forums Grid Multiple data source

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Multiple data source #30098

    dke
    Participant

    Hi,

    Is it possible to generate a drop down list from a second data source? I have a State table that I would like to get all the states and assigned to list and use it as source instead defined like this: (var list = [‘CA’, ‘WA’, ‘TX’];)

    text: ‘State’, datafield: ‘State’, width: 65, columntype: ‘dropdownlist’,
    createeditor: function (row, column, editor) {

    // assign a new data source to the dropdownlist.
    var list = [‘CA’, ‘WA’, ‘TX’];
    editor.jqxDropDownList({ autoDropDownHeight: true, source: list });
    },

    Thanks,

    dke

    Multiple data source #30111

    Dimitar
    Participant

    Hello dke,

    This can be seen in the demo Custom DropDownList Column.

    Best Regards,
    Dimitar

    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.