jQuery UI Widgets Forums Grid how to select a particular combobox item in the grid.

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

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

  • rani
    Participant

    Hi,

    How can i select a particular item in combobox in the grid.Something like abelow.

    $(“#IngestGrid”).on(‘cellendedit’, function (event) {
    var column = args.datafield;
    if (column == “ProgramRunLength”)
    {
    var row = args.rowindex;
    var value = args.value;
    var oldvalue = args.oldvalue;
    $(“#IngestGrid”).jqxGrid(‘setcellvalue’, row, ‘ProgramRunLength’, “123456”); d//Here i dont want to set the cellvalue instead i want to do selectIndex=-1 from the combobox of particular cell combobox .
    }

    });

    Is there any way to do it.

    regards,
    rani.


    Peter Stoev
    Keymaster

    Hi rani,

    To change the ComboBox editor’s selection, you will have to implement the “initeditor” callback function of the ComboBox’s column.

    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.