Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
How to refresh UltraWebGrid when using LoadOnDemand
posted

Hi,

Can anyone tell me how to refresh a grid which is being populated by using InitializeDataSource?

I've used LoadOnDemand="xml" and trying to bind my grid in a method which I am calling in InitializeDataSource. But, when some action is taken on the screen, I need to refresh the grid for which I tried calling my method to bind the grid again. It's not working. I even tried explicity calling InitializeDataSource which didn't work.

I really need the refresh feature to work according to the requirements. Can someone please help me with some ideas here?

Thanks,

Kala

 

 

Parents
No Data
Reply
  • 45049
    posted

    Kala,

    What do you mean by "refresh" in this context?  What results are you expecting to get, in response to which actions?  If this is server-side processing, is this triggered by a regular postback or an asynchronous callback?

    InitializeDataSource is an event, not a method.  WebGrid will call it when it needs to, and it can't be directly called.  You're likely calling the event handler directly, rather than the event, which won't likely affect your results in the way you're after.

Children