I would like to add a button in the footer template that will retrieve the next bunch of items from the server. Is is possible to do it ?
Hi,
You can use the loadItems('<some filter text>') function.
var dropDown = $find(<drop down ID>);
dropDown.loadItems('text');
This will retrieve all the items that are resulting from filtering on this text.
About triggering actual load on demand programatically - yes it is also possible, use this function
"_onPagerMoreResults":
dropDown._onPagerMoreResults();
Angel
Angel,
Could you please provide a sample that does "Load on Demand" programmatically? I am binding my WebDropDown control on the page_load event. I would like to move that code in a server-side event or a method and would like to raise/call this event/method from JavaScript. The reason I want to move, since there are other post-backs on the same page on different events and this code gets fired everytime and I can't even put a check if it is a postback or not.
I appreciate your help on this!
Thanks
yes, you can refer to the sample for "Cascading DropDowns". What the sample shows is that when you select something from the first dropdown, the second one will be manually populated from javascript code and an AJAX request will happen. The same for the second dropdown => third one.
Here is the link to the sample:
http://samples.infragistics.com/2009.2/WebFeatureBrowser/WebDropDown/WebDropDownCascadeClient.aspx
Hope it helps,
You can refer to this URL:
http://samples.infragistics.com/2010.1/WebFeatureBrowser/srcview.aspx?path=WebDropDown/WebDropDownCascadeClient.src
Or open:
samples.infragistics.com => WebDropDown = > Cascading
Thank you,
Not to be impolite, but how can that example possibly help when there is no accompanying Heres-How-You-Do-It?
Do you think, it is possible to implement the scenario I have described in my earlier post?
Which client-side event should I use to request more items when the user reaches the end of the list on scrolling? With the EnableLoadOnDemand="true", it fires automatically and the page_load event is fired where the data binding code is written. I want to move the data binding code to a separate method or a separate server-side event. How do I accomplish this? I tried using the ItemsRequested client-side event but it doesn't fire.
I have attached a sample with the data binding in the page_load event.