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.
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.
I have downloaded the new version Infragistics4.Web.v12.1. Still, I am not able to retrieve the value of webdropdown in javascript file. I think the problem is because the control in not instantiated at the time I try to get value of the control.
Here is a brief discription of my code. If you can help me, what to do:
1) The application has aspx file where I am registering the infragistics webdropdown as follows:
<%
%>
2) Then, I am creating the webdropdown. The aspc file has a code-behind .vb file from which I read the values from database and populate the webdropdown fields.
3) The application uses a usercontrol .ascx file which calls the first function(setDefault) of javascript file where the application does client side validations. In this SetDefault() function, I am trying to retrieve the value of webdropdown.
<
body class="PgBody" onload="BLOCKED SCRIPTSetDefault();history.forward(1);" onkeydown="BLOCKED SCRIPTblockKeys()" onunload="BLOCKED SCRIPTif (document.all){SessionDestroy();}">
I think this user control file is calling the setDefault() function before the aspx file loads all the webdropdown controls. Can you please suggest something on this? I am not sure how I can make this work.
FYI, I tried retrieving the value of webdropdown after fully loading the page and it works.
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?
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.
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://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; }