I've found this example for "Load on Demand - loadTrigger: auto" at: https://www.igniteui.com/grid/load-on-demand.
In the link they bind the static datasource, Is there anyway to bind the custom dynamic datasource before grid auto trigger everytime? Like when I scrolling the grid then call my service to get the dynamic data then igGrid bind my dynamic data to the grid
Thank you.
Hello Rajesh,
The Type method is missing from the Grid LoadOnDemand MVC helper wrapper. We will add it in the next service release.
You can overcome this issue in 2 ways:
1) If you've set DataSourceUrl the type of the feature will be inferred.
2) Explicitly override the feature type in its prototype (In JavaScript) like this:
$.ui.igGridLoadOnDemand.prototype.options.type = "remote";
Note: This code should be executed after you've loaded the infragistics.ui.grid.loadondemand.js file and before you instantiate the grid in MVC.
Hope this helps,Martin PavlovInfragistics, Inc.
Hello,
I am using MVC helpers to configure igGrid.
When I configure LoadOnDemand for Grid in following way, I do not see Type available. I need to set the type to remote.
feature.LoadOnDemand().ChunkSize(10).LoadTrigger(LoadTrigger.Button).Type (OpType.Remote);
PLease help
Thanks,
Rajesh
Hello Kwang,
It's possible to bind igGrid LoadOnDemand to remote data source as long as the data source supports remote paging. For example you can bind it to oData service or you can use Grid MVC helper wrapper.
If you're using your own custom data source then you should parse the igGrid request parameters and process the paging yourself.
Attached you can find a sample which binds igGrid LoadOnDemand to a remote oDate service.
Best regards,Martin PavlovInfragistics, Inc.
Thank you for contacting Infragistics. Since load on demand feature is still CTP, we do not have documentation on the feature. However, to get you started, the following link will be useful: http://help.infragistics.com/jQuery/2013.2/ui.iggridloadondemand#events. You may be able to get dynamic data when the rowsRequesting event is fired and bind the dataSource to newly obtained data. Since this feature is CTP, it may be important to remember that the API and behavior may change when the feature is deployed with full support.
Please let me know if this answers your question.
Sincerely,
Malav Patel