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
860
WebDropDown and EnableLoadOnDemand: Can the already loaded data be cleared or removed?
posted

Hello,

I'm using several WebDropDown inside a modal WebDialogWindow.

Szenario: The user can select an data object inside a grid and then choose to edit this item via the dialog. After closing the dialog the user can edit another item via the dialog and so on without reloading the web page.

Since some of the WebDropDowns have up to 5k items I like LoadOnDemand being enabled. But what I noticed is that if a WebDropDown has e. g. loaded most of its data items when executing the dialog, it will hold all the loaded items. As a result opening the dialog will be slowed down the more often I open the dialog because the WebDropDowns carry all their data items with them.

This is entirely not the intended behaviour. I would like to have the WebDropDowns initially containing the first page of data items and load the rest on demand every time I open the dialog. In other words I'd like the WebDropDowns to be "re-initialized" every time the dialog opens.

I've played around with view states but have not found a clue yet how to do that (besides reloading the whole page what I don't relly want).

I think this should be simple to achieve but I can't see how?

Parents
No Data
Reply
  • 29417
    Suggested Answer
    Offline posted

    Hello bernhardus ,

     

    Thank you for your patience. I've received a response from our development team.

    It seems that the load on demand is connected with the drop down’s paging and the current page to which the drop down should load is kept in the CurrentPage property of the web drop down.

    To force the drop down to start loading from the beginning again it suffices to set the CurrentPage to 0 when you change the data source.

     

    I’ve prepared a sample for your reference. Let me know if you have any further questions.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

    WDD_loadOnDemand_CurrentPage.zip
Children