jQWidgets Forums

jQuery UI Widgets Forums Getting Started Dropdownlist inside jqxgrid

Tagged: 

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Dropdownlist inside jqxgrid #32717

    rani
    Participant

    Hello all,

    I have a dropdownlist in grid

    columns: [
    { text: ‘ExtensionName’, datafield: ‘ExtensionName’, width: 250 },

    {
    text: ‘AssetType’, datafield: ‘AssetTypeName’, width: 150, id: ‘ddl’, columntype: ‘dropdownlist’,
    createeditor: function (row, column, editor) {

    editor.jqxDropDownList(
    {
    source: ListAdapter, displayMember: ‘Name’, valueMember: ‘PKAssetTypeID’

    });
    },

    // update the editor’s value before saving it.
    cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
    alert(newvalue);

    },

    when i select the item in dropdownlist

    iam getting item name only.

    i need to get item value.
    in the above “cellvaluechanging” function
    in the alert box i have typed “newvalue” but it is showing “seleted item text ”

    but i need item value

    help me………………..it’s uegent

    Dropdownlist inside jqxgrid #32719

    Peter Stoev
    Keymaster

    Hi rani,

    The approach of creating DropDownList editor is illustrated in this demo: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/gridkeyvaluescolumnwitharray.htm?arctic. Please, use it as a guidance.

    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.