Where is the complete CSOM for the WebDropDown object? I have looked here:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html/Web_Client_Side_Object_Model_CSOM_Reference_Guide.html
Which lead me to this blank page for the WebDropDown:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html/WebDropDown.html
Do you a better link? Or somewhere else I can reference?
Thanks
Chad
Hi Chad,
it's not a blank page - it shows to root namespace (client-side), which leads you to this link:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html/WebDropDown~Infragistics.Web.UI_namespace.html
Please let me know if you're looking for any specific function / functionality on the client-side. Hope it helps
Thanks,
Angel
i am looking for a listing of all the client side functions and properties for the WebDropDown list. For example Infragistics has the following for
WebGrid : http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html%5CWebGrid_CSOM.html
WebDateChooser: http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html%5CWebDateChooser_CSOM.html
Hi,
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html/WebDropDown~Infragistics.Web.UI.WebDropDown_members.html
Great!
Quick question about some of these then ... I saw from an earlier post to whether or not the control is enabled was "set_enabled()". This is not in your listing provided - rather there is a property 'enabled', is this a get/set property? Basically is it ok to do:
var cntl = $Find("WebDropDown1");
cntl.enabled = false;
It's get_enabled() and set_enabled(), in your case cntl.set_enabled(false);
Great. Is there a listing somewhere of all the function calls?
Also for the client events - is there a good reference of all the events and the parameters for each. As well the functions and properties for all the event's parameters?
Angel - any update?
Also I am having an issue with get the selected value from the control in javascript. Here is what I am trying to do:
cntl.get_selectedItem().get_value()
The "cntl.get_selectedItem()" returns a NULL (whereas, "cntl.get_selectedItem" is not NULL - but does not have a property "get_value", "get_value()", etc). Is there different way to get to the value? I can get to the current value using:
cntl.get_currentValue()
But this is the "text" that is being displayed and not the value. Here is the definition that I am using for the WebDropDown control:
<ig:WebDropDown ID="WebDropDown1" runat="server" Width="200px" DropDownAnimationDuration="1000" DropDownContainerHeight="300px" DropDownContainerWidth="200px" TextField="FullName" ValueField="SettlementTypeId" DropDownAnimationType="EaseIn" EnablePaging="false" PageSize="12" EnableAutoFiltering="Client" EnableClosingDropDownOnBlur="true" EnableCustomValues="false"> <AutoPostBackFlags SelectionChanged="Off" /> <ClientEvents /> </ig:WebDropDown>
Here is the version of the dll that I am currently using:
9.2.20092.1003
I remember this issue reported a couple of months ago, it should be working fine if you get the latest service release. SelectedValue was working fine on the server side, but the client-side selectedIndex wasn't updated properly, hence the get_selectedItem() was returning null.
Found some more time to play with the control ... Looks like when you set the control in the code behind, using:
this.WebDropDown1.SelectedValue = "value_to_select";
The WebDropDown is rendered with the correct control, but when you try to access the "get_selectedItem()" function prior to manually changing the value - you get back a NULL. Once you manually change it from the this preset value you do get an object that you then use to access the selected value (via "get_value()"). Is there something else I should be setting? Or do I need to set the value on the window.onload event via javascript? If so how do I do that? I tried looking for "set_SelectedItem", "set_selectedValue", "set_SelectedIndex", etc with no luck.