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

DataBind not working on second load

Hi, I have a very simplistic project where I do the following

 aDisplaygGid.DataSource = itb_api_data.ToList<T>(lRes);
 aDisplaygGid.DataBind();

when I visit the page the first time, it works perfectly.
However when I visit the same link a second time, the grid displays "No records to display".

I have verified that the data contains items.

Any ideas?

5 Replies

DV Danie van Eeden April 2, 2017 06:08 AM UTC

Apologies, it seems more related to the Syncfusion menu.
When I browse to the page through the browser address bar, it works fine.

My menus are setup with the following link

~/mypage.aspx

and the hyper link shows correctly

Any ideas appreciated. I am still trying to figure this out as well.

Danie


DV Danie van Eeden April 2, 2017 06:12 AM UTC

Problem resolved. Empty menu onclick was still in master page.



PO Prince Oliver Syncfusion Team April 3, 2017 11:14 AM UTC

Hi Danie , 

Thank you for contacting Syncfusion support. 

Can you let me know whether your issue is resolved or do you need any assistance? 

If yes, please provide additional details on your requirement with a simple sample or code snippet explaining your requirement. 

Regards, 
Prince    



DV Danie van Eeden April 3, 2017 11:19 AM UTC

Hi,
yes problem resolved.
No further assistance required.

Thank you
Danie


PN Preethi Nesakkan Gnanadurai Syncfusion Team April 4, 2017 05:35 AM UTC

Hi Danie, 
  
Okay, thanks for the update. 
  
Regards,  
Preethi 


Loader.
Up arrow icon