jQWidgets Forums

jQuery UI Widgets Forums Grid rowdoubleclick – reaching grid data

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • rowdoubleclick – reaching grid data #79350

    lineker
    Participant

    Hi All,

    When I double click on a row of grid, I want to reach data.
    From API Reference, I see following:

    $('#jqxGrid').on('rowdoubleclick', function (event) 
    { 
        var args = event.args;
        // row's bound index.
        var boundIndex = args.rowindex;
        // row's visible index.
        var visibleIndex = args.visibleindex;
        // right click.
        var rightclick = args.rightclick; 
        // original event.
        var ev = args.originalEvent;
    });

    How can I reach text data located at cells. My grid columns are :

    var sourceCityStoreCount =
                {
                   datatype: "json",
                   datafields: [
                        { name: 'CityID', type: 'int' },
                        { name: 'City', type: 'string' },
                        { name: 'Count', type: 'int' }
                    ],
                    id: 'CityID',
                    url: '/json_city_store_count'
                };

    I want to reach CityID of selected row. How can I do it? I tried following but did not work:

    args.data.CityID

    Also what is the difference between boundIndex and visibleIndex? It gives same value for me.

    rowdoubleclick – reaching grid data #79370

    ivailo
    Participant

    Hi lineker,

    You can use this approach.

    Best Regards,
    Ivailo Ivanov

    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.