jQuery UI Widgets Forums Grid How to set default value.

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • How to set default value. #66730

    alignkwok
    Participant

    Hi,

    My Code:
    { text: ‘Type’, columntype: ‘dropdownlist’, datafield: ‘Type’, align: ‘left’, cellsalign: ‘left’,minwidth: 80, createeditor: function (row, cellvalue, editor) {
    var dataSource = [‘x’, ‘y’, ‘z’];
    editor.jqxDropDownList({ source: TypeAdapter, displayMember: ‘label’, valueMember: ‘value’ });
    }

    How to set default(SelectedIndex) value in dropdown if we use this in jqxGrid.

    Thanks with Regards,
    Alien k.

    How to set default value. #66732

    Peter Stoev
    Keymaster

    Hi alignkwok,

    You can use either the “selectIndex” method or selectedIndex property.

    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.