jQWidgets Forums

jQuery UI Widgets Forums Grid Uisng a popup to edit content in a grid

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Uisng a popup to edit content in a grid #61552

    hk
    Participant

    one of the fields in the popup need to be a dropdown field. How can I get the dropdown to populate.

    then the user should see the program name but the data saved should be the program_id.

    help please

    Uisng a popup to edit content in a grid #61559

    hk
    Participant

    ok so this is what I have
    popup window
    <tr><td align=”right”>Service: </td><td align=”left”><div id=’servicelist’></div></td></tr>

    adapter with data
    var servicelist =
    { datatype: “json”,
    datafields: [
    { name: ‘service_id’ },
    { name: ‘service’ }
    ],
    url: ‘qp_main_data.php?getServiceList=true’,
    async: false
    };
    var servicelistAdapter = new $.jqx.dataAdapter(servicelist);

    how do I bind the data to the popup service field and return the service_id picked from the list

    all other fields edit just fine.

    thanks

    Uisng a popup to edit content in a grid #61570

    Peter Stoev
    Keymaster

    Hello hk,

    To set the source of a DropDownList, set its source property to an instance of jqxDataAdapter.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.