Normal 0 false false false EN-US X-NONE X-NONE
WOW.. After a long time writing a post here.. Previously I was working in Infragistics 2006 Vol3. In-between I was working in some other projects.. Now I am back. Recently we have purchased 2011. We wanted to give support to IE9. What I did was that I upgraded my existing project by changing doing the following
a) Deleted the Old dll and added new dlls.
b) Changed the appropriate values in Web.config
c) Changed the version no in all the pages
d) Added the new scripts and defined that path in web.config
I am using the same controls that I used previously; now after doing that I experienced some minor issue which I fixed. Now I am having a major issue... In my page I have 2 controls, Left-side and Right-side control. In the left-side, I have a treeview and in the right-side, I load controls depending on the node that I click. The controls are loaded in a WARP panel and inside that WARP panel, i have an <asp:Panel> to which i am loading the control to and also it is loaded dynamically.
The problem that I face is that sometimes when I click on the same node more than once, the control get loaded but no JavaScript code that was in the <script> tag get loaded. For eg., if there are 3 nodes in the treeview, when i click on the 1st node and that control get loaded and then i click on the 3rd node and a new control is loaded. After that i again click on the 1st node, and after loading the control when I click on a button, client-side events does not happen, but the server side code gets executed properly. I am perplexed with the issue, not able to find a solution for it and what could be the problem? Can someone pls help me out?
Thanks,
Jollyguy77
Hi Jollyguy77,
I am attaching a sample which I hope reflects your scenario accurately. The treeview I'm using loads a button, textbox upon label upon change in the selected node. The button fires a client-side javascript function.
However, I am still unable to replicate the issue you describe. My tests were done using Firefox 5, IE8 and IE9.
Could you provide the markup of your WARP panel as this may help to isolate the issue ?
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
Hi Petar,
Thanks for the sample & SORRY for the Late reply..I tried u r sample and it was working fine.. i could not find any problems.. Then i found out the problem.. Previously when select an client-side event for the button click, it automatically creates an <script> tag like <script id="Infragistics" type="text/javascript"> When i did the same in the Latest infragistics, i noticed that the id is changed from "Infragistics" to "igClientScript". Once i made the necessary id change, it started working fine for me.. I don't know why but it's working fine and there are no more problems...
I have a question.. Is ID for the <script> tag important? Are we using it to identify the client-side events? It's strange that by changing the ID alone, all the scripts are loaded. Is there an answer to why it is working?.. BTW i didn't use any <asp:ScriptManager> in my website at all...
Jollyguy
Hi Jollyguy,
Hope I have answered your questions. Please contact me if I can be of further assistance.
Hi,
Yes i use multiple script tags.. basically i use script tags that has the id as "Infragistics" for all the infragistics related control and for the rest we use normal script tags.. sometimes developers tend to forgot to put the code for infragistics under the id tag.. It is in those pages that i found the issues.. Now i have put 1 single script tag with the new id and inside that all the scripts are written.. Thanks for the reply to my query..
Jollyguy..
Glad that you have found a solution. I assume that you are using a WebImageButton. I was thinking you are using a standard asp button.
As you have noted the IDs of the script tags for Infragistics controls have indeed changed from "Infragistics" to "igClientScript" in newer releases.
However, to answer your question, the ids of the script tag should not matter when firing the handlers. Are you using multiple script tags and is there a chance that some functions are defined more than once on your page?
Please tell me if this helps.