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
571
WebDropDown Lazy Load Once
posted

Hi

I am using the WebDropDown lazy loading feature and it is working fine. I would like however the situation where a user when they select the drop down the items are loaded the first time, however should the user click the drop down again for whatever reason the the ItemsRequested even is NOT called the second time, the records that were loaded the first time are simply displayed. Basically what I am doing is I want to only load the records if the user wants to change the record.

Can this be done??

Thanks

Andrew

Parents
No Data
Reply
  • 49378
    posted

    Hi Andrew,

    It has been a while since your post, however in case you still need assistance I am happy to help.

    I assume that you have configured WebDropDown's lazy loading more or less as per the instructions in this video:

    http://blogs.infragistics.com/aspnet/media/p/87810.aspx

    If you want to check whether the dropdown is being opened for the first time, I would suggest that you use a HiddenField control to store a boolean value for that scenario (so you can effectively cancel the WDD's load items method being called). You could then reset the variable if you need to load items again based on some other condition.

    Please feel free to contact me if you have any questions.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://ko.infragistics.com/support

Children
No Data