Hi ,
i need Equivalent code in WebDropDown for below codes .
igcmbo_getComboById(webComboId);
var div = oCombo.getGrid().getDivElement(); what will be Equivalent in webdropdown ?
I tried using $find("<%= wddcmbApplication.ClientID %>"); and $find('wddcmbApplication'); both are giving null
find the attached screen shot.
code:-
<ig:WebDropDown ID="WddcmbApplication" ClientEvents-DropDownOpened="wddcmbApplication_AfterDropDown" ClientEvents-DropDownClosed="wddcmbApplication_AfterCloseUp"ClientEvents-DropDownClosing="wddcmbApplication_BeforeCloseUp" runat="server" Width="200px" BorderStyle="Solid" BorderColor="LightBlue" BorderWidth="2px" MultipleSelectionType="Checkbox" EnableClosingDropDownOnSelect="false" EnableViewState="false" DisplayMode="DropDownList" EnableMultipleSelection="true" ></ig:WebDropDown>
Js Code:-
function wddcmbApplication_AfterCloseUp(sender, eventArgs) {var oCombo = $find('#WddcmbApplication');//var oCombo = igcmbo_getComboById(webComboId); //webcombo codeoCombo.setDropDown(true); //giving error in webdropdown
var div = oCombo.getGrid().getDivElement(); //giving error in webdropdown }
thanks
Ravi
Let me know if I may be of further assistance.
Hello Ravi,
I am not sure what setDropDown should mean? If you let me know what exactly is doing this I can recommend you alternative.
About getDivElement() - > ig_controls.WebDropDown1.get_element() is the equivalent this will return you the html container of the DropDown.
You have intellisense under IE also, I have recommended you Firefox because the intellisense there is better, but you can use it with IE also.
Hi Zdravko,
Thanks for the reply, we are using only IE Browser not using Firefox/Chrome , can you please suggest me equivalent for below two lines of js code in WebDropDown.
var oCombo = ig_controls.wddcmbApplication;
oCombo.setDropDown(true); //giving error in webdropdown
var div = oCombo.getGrid().getDivElement(); //giving error in webdropdown
Thanks
Hello,
Thank you for contacting us.
You can use ig_controls.NameOfTheControl in order to access it and also $find('idOfTheDropDown') should work.
Examples:
ig_controls.WebDropDown1
$find('WebDropDown1')
About the equivalents related to other methods that you mentioned my suggestion is to review them from our CSOM official documentation or to use Firefox intellisense in order to see all available methods and what they do. For example if you select the method "ig_controls.WebDropDown1.get_items" and click on the link for details you will see what the method should do and/or what parameters accepts etc. Example:
ig_controls.WebDropDown1.get_items:
get_items: function () { /// <summary locid="P:J#Infragistics.Web.UI.WebDropDown.items"> /// The collection of DropDownItem in the WebDropDown. /// </summary> /// <returns type="Infragistics.Web.UI.DropDownItemCollection" mayBeNull="false"> A collection of DropDown Items </returns> return this._itemCollection; },
http://help.infragistics.com/Help/Doc/ASPNET/2014.1/CLR4.0/html/ASPNET_AJAX_CSOM.html