jQWidgets Forums

jQuery UI Widgets Forums Getting Started jqxInput and jqxGrid

Tagged: 

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • jqxInput and jqxGrid #92924

    medkac
    Participant

    Hi,

    I’m looking for a solution to display a value from a selected cell in jqxGrid into a jqxInput.

    Regards,

    Mohamed Kacem

    jqxInput and jqxGrid #92931

    Peter Stoev
    Keymaster

    Hi Mohamed Kacem,

    Bind to the

    Grid’s

    cellclick event. By using the event arguments, you can get the value of the cell.

    $("#jqxGrid").on("cellclick", function (event) 
    {
        // event arguments.
        var args = event.args;
        // row's bound index.
        var rowBoundIndex = args.rowindex;
        // row's visible index.
        var rowVisibleIndex = args.visibleindex;
        // right click.
        var rightclick = args.rightclick; 
        // original event.
        var ev = args.originalEvent;
        // column index.
        var columnindex = args.columnindex;
        // column data field.
        var dataField = args.datafield;
        // cell value
        var value = args.value;
    });               

    Then, using jQuery, select the INPUT tag and use a syntax like:

    $("#inputID").val(value);

    Best Regards,
    Peter Stoev

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

    jqxInput and jqxGrid #92997

    medkac
    Participant

    Hi Peter Stoev,

    Thank you, it was very helpfull. Please i have another question about filtering in jqxGrid, can i activate both of: “showfiltermenuitems” and “showfilterrow” properties in the same time? I have to do it, thanks.

    Best Regards,
    Mohamed Kacem

    jqxInput and jqxGrid #93004

    Peter Stoev
    Keymaster

    Hi Mohamed Kacem,

    No. The Grid supports different filtering modes – filter row OR filter menu, but not together.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.