jQuery UI Widgets Forums Grid drop down grid

This topic contains 2 replies, has 2 voices, and was last updated by  jahnvi25 9 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • drop down grid #63978

    jahnvi25
    Participant

    jqxgrid is open when droDown button is clicked.. is there a way when user selects the row/cell… that dropdown grid should be hidden..and again when user clicks on that dropdown button grid should be visible ?

    drop down grid #63991

    Dimitar
    Participant

    Hello jahnvi25,

    Please take a look at the demo DropDown Grid. In it, modify the rowselect event handler by adding a call to the jqxDropDownButton close method, i.e.:

    $("#jqxgrid").on('rowselect', function (event) {
        var args = event.args;
        var row = $("#jqxgrid").jqxGrid('getrowdata', args.rowindex);
        var dropDownContent = '<div style="position: relative; margin-left: 3px; margin-top: 5px;">' + row['firstname'] + ' ' + row['lastname'] + '</div>';
        $("#jqxdropdownbutton").jqxDropDownButton('setContent', dropDownContent);
        $('#jqxdropdownbutton').jqxDropDownButton('close');
    });

    Best Regards,
    Dimitar

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

    drop down grid #64047

    jahnvi25
    Participant

    works great.. thanks

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

You must be logged in to reply to this topic.