Hi,
I downloaded trial version of Webdropdown version:11.2.20112.1019 and started using that in my application to see whether it functions properly. If it works well, I can go ahead to buy paid license for this control.
It has been around 45 days I downloaded the control and now I am able to see one issue suddenly.
When I use $find("webdropdowninstance"), it retrieves NULL.
Is it because the trial version might have expired or there is some other issue. Please let me know.
Hi, Sunil Mehta.
You can check this forum post, I think it will help you. If you have some other questions don't hesitate to ask them.
Best regards,
Nikolay
Hi Nikolay,
I have tried using ClientIDMode="Static" like this:
<ig:WebDropDown ID="dropdown" runat="server" ClientIDMode="Static">
</ig:WebDropDown>
After this, I tried using $find("dropdown") and also #find("<%=this.dropdown.clientID%>") but both are returing NULL value and not the object. What may be the issue?
Note: I am using ClientIDMode as "AutoID" in web.config file and I am not looking for a solution to make ClientIDMode changes in web.config.
To be sure that the WebDropDown is loaded you need to use one of its client-side events. Is it possible in your code to call the SetDefaults() method, not on load of the body, but in some of the WebDropDown client-side events?
<script type="text/javascript">
function wddTest_Initialize(e, args) {
SetDefault();
}
script>
<ig:WebDropDown ID="wddTest" runat="server">
<ClientEvents Initialize="wddTest_Initialize" DataBound="wddTest_DataBound" />
ig:WebDropDown>
The other option is to use jQuery load event of the window object (I gave you example in one of my previous answers), but I'm not very sure if this is going to fit your case.
Best regards, Nikolay
I have around 10 webdropdowns on one page. You mean to say I should use <ClientEvents Initialize="wddTest_Initialize" DataBound="wddTest_DataBound" />
in any one of the 10 webdropdowns or probably the last one on the page. Please confirm and then, I will try the option that you have suggested.
Meanwhile, what is this method "wddTest_DataBound". Do I need to use this as well. If yes, may I know the definition of this method.
Thanks,
Sunil Mehta.
I suppose it will be enough to do this in the last WebDropDown instance, but I cannot guarantee this without the code. As far as for the wddTest_DataBound it is event handler for the DataBound client-side event and you can use it instead of wdd_Initilize event handler as an alternative if wdd_Initialize is not working. It's not needed to use both of them I just gave the possible events that can be chosen and depending on your scenario you can select the most appropriate.
I tried using the option you have mentioned in the last dropdown on the aspx page. After that, the value displayed in the last dropdown is coming as "0102%20TEST%20RECORD" instead of "0102 TEST RECORD". This value is retrieved from the database and database has the correct entry for this value. For your reference, here is the sample code for the aspx page:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="TEST.aspx.vb" Inherits="SAMPLE.TEST" EnableViewStateMac="False" %><%@ Register assembly="Infragistics4.Web.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.ListControls" tagprefix="ig" %><head> <style type="text/css"> .style1 { width: 41%; } </style></head><script language="javascript" src="Script/Validations.js"></script><script language="javascript" src="script/Test.js"></script><form id="frmTEST" onsubmit="return validator(this);" method="post" runat="server"><asp:ScriptManager ID="infrag" runat="server"></asp:ScriptManager> <table> <tr> <td class="tblCellControls" width="43%"><ig:WebDropDown ID="testdd1" runat="server" cssclass="igdd_Control" Height="12px" Width="415px" tabIndex="4" onchange="OnSourceGroup('SRC@TEST','testdd1','testdd2');" EnableCustomValues="False" ForeColor="Blue"></ig:WebDropDown></td> <td class="tblCellControls" width="43%"><ig:WebDropDown ID="testdd2" runat="server" cssclass="igdd_Control" Height="12px" Width="415px" onchange="FillCombo('testdd2','testdd1');" EnableCustomValues="False"></ig:WebDropDown></td> </tr> <tr> <td class="tblCellControls" width="28%"><ig:WebDropDown ID="testdd3" runat="server" cssclass="igdd_Control" Height="12px" Width="270px" EnableCustomValues="False"></ig:WebDropDown></td> <td class="tblCellControls" width="34%"><ig:WebDropDown id="testdd4" runat="server" cssclass="igdd_Control" Height="12px" Width="320px" EnableCustomValues="False"></ig:WebDropDown></td> </tr> <tr> <td class="tblCellControls" width="48%"><ig:WebDropDown ID="testdd5" runat="server" cssclass="igdd_Control" Height="12px" Width="450px" onchange="Populatetestcode('codes@TEST','testdd5','testdd6');" EnableCustomValues="False"></ig:WebDropDown></td> <td class="tblCellControls" width="38%"><ig:WebDropDown ID="testdd6" runat="server" cssclass="igdd_Control" Height="12px" Width="375px" onchange="Filldd5('testdd6','testdd5');Filldd6('testdd6');" EnableCustomValues="False"> <ClientEvents Initialize="wdd_Initialize"/></ig:WebDropDown> </td> </tr> <tr> <TD align="middle" width="13%"><input class="ButtonStyle" id="BtnCombo" onclick="ComboTest();" type="button" value="Combo" tabindex="24"></TD> </tr> </TABLE> <input id="hdnPageLoad" type="hidden" name="hdnPageLoad" runat="server"> <input type="hidden" id="hdncode" runat="server"></form>
As far as I understand you, you were able to achieve your goal. You can easily replace %20% with space, right?
Write me if you need more assistance and you can verify one of the answers that you think helped you, so that our long conversation has the proper answer for the other users.
Thanks, Nikolay
If it's not a problem for you, please create different forum thread for this issue. It's because the last problem is different from the title and idea of the current forum thread and it such cases is better to separate them.
Thank you
Is there a way to set the current display text and value of a webdropdown in the server-side(code behind vb file)?
Hello Sunil,
With your trial account you can create cases in our system as well.
You need to log in to your account on our web.
After that go to “Help” section in the sub menu find “Submit Support Request”. Now you are ready to select the technology, platform, etc.
According to the last your question. About the licensing you will need to contact our sales team it will not take a long time. Call them or email them. This page is for reference to their contact details:
https://ko.infragistics.com/about-us/contact-us/
If you need additional assistance, do not hesitate to contact me.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Nikolay, Please do the needful for #1, #2 and #5.
For purchasing you need again Sales team.
About #1, #2 and #5 you need to create a case in the Developer Support. If you don't know how I will tell a colleague from DS team to help you.
About #4, try this:
.igdd_IGListItemHover a { color: green!important; }