We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfDataGrid OnDemandLoading


I have a Master-Detail grid and I'm trying to implement paging with OnDemandLoading. I took the sample in the SampleBrowser_2013 solution to achieve this and I modified the code to get the data from my data source (I mean it's almost the same code, just the data source is different), but I have two problems:

1. The data is not shown at first time, it's shown until the second time I navigate to the page.
2. For example, if the page size is 10, and the last page just have 6 items, the datagrid loads 4 empty rows (because of page size), but I don't want the datagrid loads those empty items. How can I do that?

Thank you!

1 Reply

AN Ashok N Syncfusion Team September 24, 2014 09:43 AM UTC

Hi Chelo,


Thank you for contacting Syncfusion support.


Query 1:


We have analyzed your query with our sample, but we are unable to reproduce the reported issue. In our side, sample is working properly and the data is showing within the datapager from the grid loaded. We have attached the sample and tested video in the below link for your reference, please refer it.


Sample: http://www.syncfusion.com/downloads/support/directtrac/129806/MasterDetailsGrid744474739.zip


Video: http://www.syncfusion.com/downloads/support/directtrac/129806/Video1886981148.zip


Query 2:


We were able to reproduce the problem and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates:


Please let us know, if you require further assistance.


Ashok N

Live Chat Icon For mobile
Up arrow icon