jQWidgets Forums

jQuery UI Widgets Forums Grid DropDownList value

Tagged: 

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • DropDownList value #68639

    arkgroup
    Participant

    I have grid with 2 columns, one is DropDownList. I need to show DropDownList value (ItemNo) in second grid column after select Item Description.
    It seems I cannot get value member (not display member from the list)
    Here is the code
    createeditor: function (row, value, editor) {
    editor.jqxDropDownList({ source: data_supply_master_grid, displayMember: ‘ItemDescription’, valueMember: ‘ItemNo’ });
    },
    cellvaluechanging: function (row, datafield, columntype, oldvalue, newvalue) {
    //newvalue here is ItemDescription, I need ItemNo

    var id = $(‘#jqxGridReq’).jqxGrid(‘getcellvalue’, row, “ItemDescription”);

    //return id is undefined

    }

    Thanks

    DropDownList value #68644

    Peter Stoev
    Keymaster

    Hi arkgroup,

    See the Editing examples of jqxGrid. There’s a demo which demonstrates how to create DropDownlist with Label and Value.

    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.