We are using Ignite UI 2014.2 to generate an igHierarchicalGrid. We currently have our own technique to retrieve data (in JSON format) using AJAX calls, but we also need to use Load On Demand techniques for the grid to avoid performance issues.
I need to be able to do the following:
1. Dynamically assign a data source to the child grid associated with a parent row (where the parent row could be a root row or a row in a previously populated child that can have its own child grid).
2. Do the dynamic assignment after clicking the + to expand the row. Is there some event I should do this in? I would call our custom code using AJAX to generate a JSON string that I then want to set as the data source for the populating child grid.
I have read the techniques for using ASP.NET MVC, OData, or REST to perform the Load on Demand processing, but we need to use our custom method to obtain the data.
This gave me exactly what I needed.
Extremely grateful for the help!
Thank you Martin, well it is a master-detail but i'm not dealing with 2 datasets and relating them with keys. it's more like dbl click parent, call a function(parentid) that will make a seperate/url rest call.
dynamically showing those details as "children" in the grid.
appreciate the help btw
Hello Allen,
Are you talking about master-detail scenario with 2 igGrids ? If yes, then your question deserves a new thread.
Best regards,Martin PavlovInfragistics, Inc.
Hello Ray,
Instead of handling "iggriddatabinding" event try with the "igchildgridcreating" like this:
$(document).on("igchildgridcreating", function (evt, ui) {
ui.options.dataSource = data3JSON;
});
Hello ,
i have a similar question, when i double click a row in the main grid i need to construct the child grid with a seperate REST call.
Thanks
Allen