Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Load-on-demand without MVC and oData
posted

Hi Infragistics,

I am currently trying to implement load on the demand for the hierarchical grid without using MVC or oData. As far as I have figured out this is doable by catching the ajax GET request and modify its query string in order to get the information you want from the client side to the server side. I am however having trouble getting information about what row has been clicked before the ajax GET event fires. Both the igchildgridcreating and rowExpanding events fire after the ajax GET event fires so I cannot get any information about what has actually been clicked in the grid. I have also tried and catch the click event on the actual class for the expand row button but without any luck.

Are there any events, html classes, or IDs I can catch any event on before the ajax GET is sent which will give me the same or similar information that one can get from the rowExpanding event?

I am using this to catch the ajax Get event.

$(document).ajaxSend(function (e, jqXHR, options) {

        if (options.url.indexOf("/Handler2.ashx") != -1) {
            options.url += '&param1=value1';
        }
});

In summary. What I need so to add a string on the format "[0321]" to the query string of the ajax GET call. Where "[0321]" represents the index of each row clicked on each level in the hierarchy of the grid;  hence [0321] represents the 1st row on level 0, 4th row on level 2, 3rd row on level 3, and 2nd row on level 4.

Best Regards

Fred