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 Martin,
Thanks for the information.
LoadOnDemand is not triggering for me. I tried remote sorting and filtering with this code, that works fine.
Here is my client code
@(Html.Infragistics().Grid(Model.Customers.AsQueryable()) .Width("400px") .Height("300px") .AutoGenerateColumns(false) .Features(feature => { feature.LoadOnDemand().ChunkSize(10).LoadTrigger(LoadTrigger.Button); }) .DataSourceUrl(Url.Action("GetAllC")) .DataBind() .Render() )
Here is controller...........
public ActionResult GetAllC() { var viewModel = new CustomersViewModel { Customers = GetCustomers(),
};
return View(viewModel.Customers.AsQueryable<Customer>());}
Can you please let me know what can be wrong ?
Hello Rajesh,
This feature will probably be RTM in 14.2 release. In 14.1 release it will be CTP again.
The feature should work with no problem when used alone. As I already said there may be problems when the feature is used with other features. You should test whether the feature is working as expected in your specific application scenarios before depending on it in production.
Hope this helps,Martin PavlovInfragistics, Inc.
Hi Martin,
Me we know expected date of release of this feature ?
We are really depending on this feature for may pages.
Thanks,
Rajesh
It should work, however as the feature is in CTP state there may be some issues. My advise is to not use the LoadOnDemand feature in production.
Best regards,
Martin PavlovInfragistics, Inc.
Thanks Martin,
May I know if LoadOnDemand workes with other feartures line seleciton filtering etc ?