jQuery UI Widgets Forums Grid grid combo box

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • grid combo box #56732

    ssp
    Participant

    Hi,

    I want change the source of the combo box dinamically.

    {
    text : ‘Location’,
    //source : locationArray,
    datafield : ‘alocation’,
    width : 60,
    align : ‘left’,
    cellsalign : ‘left’,
    rendered : tooltiprenderer,
    pinned : true,
    columntype : ‘combobox’,
    createeditor : function(row, column, editor) {
    editor.jqxComboBox({

    id:”locationID”,
    source : locationArray,
    promptText : “Location”,
    autoDropDownHeight : true,
    itemHeight : 2,
    selectedIndex : 0
    });
    },

    here location “locationArray” will change based on the another combo box value change in the grid.

    PS combo box is in side the grid.

    Regards,
    SSP

    grid combo box #56737

    Peter Stoev
    Keymaster

    Hi SSP,

    Dynamically changing the ComboBox editor’s data source is demonstrated on this page: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/cascadingediting.htm?arctic. By using a combination of createeditor and initeditor, you will be able to achieve that.

    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.