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,
Not to be impolite, but how can that example possibly help when there is no accompanying Heres-How-You-Do-It?
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,