Hello,
is there a way to select an item in a paging or loadOnDemand enabled WebDropDown even if the item happens to be not on the first page?
FindItemByValue does not work. Inspecting a loadOnDemand enabled WebDropDown with a list of approx. 1000 items as datasource shows that there are e.g. 40 items in the items collection - which at least could be an explanation why FindItemByValue cannot find the item.
There are other posts concerning this issue:
all of which are not answered yet.
Are there any solutions to this issue?
Hello Bernhardus,
This is not supported. The idea of Paging and Manual Load On Demand is to improve the performance. When one of them is enabled then WebDropDown loads small piece of data (items). This reduce the bandwidth and processing overhead on both the server and the client.
Probably it is possible to get item’s index from the datasource and then to calculate on which page it should be and then to select it explicitly when the page is changed for example.
Thank you - good to know.I'm able to calculate the index and page. But I am not able to tell the WebDropDown which page to load. Event if I set the CurrentPage property the WebDropDown always loads the first page of items.
The WebDropDown is placed inside a (modal) WebDialogWindow. If I open the dialog for the second time the desired page is loaded by the WebDropDown. Why is it that the page is not initially loaded?
Did you call DataBind(); ? This should change the current page:
this.WebDropDown1.CurrentPage = 2;this.WebDropDown1.DataBind();
Let me know if this helps
No and yes - no, I did not call DataBind() after setting the current page. And yes, it helps.
Thank you for your efforts.