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.
I definitely feel that there is some problem with the version of webdropdown control that I am using. When I last downloaded the control and used in my application, $find was working fine. From last 15-20 days, $find is not working and I did not change anything in the code. My first thinking was that may be the trial version has expired now and that's why there may be some settings in the control which are not allowing it to be used now.
Please advice.
Also, Nikolay, Is it possible to access your controls using Document.GetElementbyID??
About the first issue it's seems that there is no problem with build number: 11.2.20112.1019. I tested WebDropDown on my machine with this build and $find() method was returning the drop down object. I've also tested it with builds higher than 1019 and it is working also. So if you want me to help you with this issue I suggest you to give me your not working code, if it is possible, and I will try to see what's the problem. Sorry for this but this is what can I do for you for the moment.
As far as you are asking about the getElementById() method, this post will describe you the difference. The methods $find() and $get() are Microsoft AJAX library specific methods. Our framework uses this AJAX library for creating controls, respectively it uses those two methods. From the given article it's said that $get() is equivalent of the document.getElementById() method. At the same time $find() is the same as Sys.Application.findComponent() method, which returns a specific Component object, that is not just the row DOM object, that $get() returns, but is kind of wrapper that adds additional API - methods, properties, events. Our controls, including WebDropDown, inherit this Component class, which means that $find() can be used for our controls. This means that if you try to call getElementById(), or simply $get(), on WebDropDown control, this will return you the row DOM object, and for sure this row object will not have the specific client-side methods and properties of the WebDropDown. The conclusion is that you need to use $find() in order to get WebDropDown on the client and the following code is working on my machine:
<script type="text/javascript">
$(window).load(function(){
var dd1 = $find("<%=this.wddTest.ClientID %>");
});
</script>
See that I'm using jQuery window load event handler, to ensure that control is loaded. If you are not using jQuery in your project, you can execute the same code in the client-side handler of the WebDropDown Initialize event.
I hope this will help you, Sunil.
Best regards, Nikolay
Nikolay,
Sending the code will be difficult. But I am sure that there is some problem with the dll I am using. Can you please send me the webdropdown ddl that you are using. I will use that in my application and see. The reason I am saying is that before 20-25 days, it was working. So, I feel there may be some issue due to expiration of the trial version.
Today, I tried to use Infragistics webdropdown for 1 control and my existing webdropdown for another control on the same page. Then I just tried the display the value on the screen for both of the dropdowns at the same place.
I am able to retrieve the value of webdropdown other than infragistics.
Hi, Sunil.
In general $find should work, even your trial period has expired. Maybe this is not the problem but if you want you can contact our Sales team to extend your trial period.
Sorry Sunil, but also I cannot provide you DDL files that I'm using. You can try to download the trial packet again, maybe this will help you. It's seems that there is really a problem with your DLL files and the problem is specific that's why you can share some other details about your solution, like where you deploy the project.
I hope that soon we will resolve your issue.
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)?
Thanks,
Sunil Mehta.
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://es.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://es.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; }