Hi Guys,
I'm working on a project bequeathed to me by previous employees, that I am trying to improve. The application started off in .NET 1.1 and has been migrated to .NET 2.0 in the mists of time and all infragistics controls have undergone a number of migrations, currently they are in version 7.2.
I'm currently trying to add Ajax into suitable locations just for the old show hide prompts tricks really. and I have a problem like this:
I've got a 2 date pickers that I show/hide according to various search types. eg. The flow is like this:
1.) By default I'm doing a search by incident date so I show both from and to date which are infragistics date pickers,
2.) Then I have a search by employee forename, so my datepickers are hidden in Ajax.
3.) Then I return to my date pickers and the javascript to cause window popups doesn't work.
Now I've recently completed a .NET 2.0 app. where this worked successfully, however this app. started life in .NET 2.0 and Infragistics 7.2.
<xhtmlConformance mode="Legacy"/> - Don't forget this if your Ajaxing, it took me some time to find it.
Do you have any suggestions/helpful anecdotes and the like?
Thanks,
Andy
Hi,
Ok, I'm using the script manager/Update panel approach Ajax 1.0 that I got from ajax.asp.net. When using Ajax I think, keep it simple, so I'm really only planning to use it to hide and show a few controls, I'd rather use Ajax as it's easier to disable Ajax and simply do full postback than implement the functionality in both Server side and javascript. A bit more fiddling has isolated the problem still further.
The project makes use of the UltraWebMenu component in a master page. Leaf nodes etc. are added programmatically to this control in some mixed up code, however the menu does actually work.
Anyway without the UltraWebMenu component then it all works properly and as intended. However if I run the page with the UltraWebMenu I get all kinds of problems.
I really don't want to get into the ig:Warp panel, as a lot of pages make no use of infragistics.
Not sure I really understand how the triggers would help, it works like this:
1.) Use a drop down list to select which search type I want.
2.) Search then shows me either the infragistics date pickers (for date search) or textbox (for text search). I will enable/disable the scriptmanagers partialpostback property depending on the Javascript settings.
Hello Andy,
Well, it really depends on how you implement ajax. Are you using a third party AJAX library, or the built-in asp:ScriptManager / asp:UpdatePanel combo? Or our own equivalent for that - WebAsyncRefreshPanel?
I am not sure if 7.2 provides support for that (maybe this is available in the release notes), but I have several suggestions that may alleviate the problem
1. If you are using UpdatePanel, try using ig:WARP panel and see if this hepls
2. Use triggers mechanism of UpdatePanel, so that the actual WebDataPickers are outside the UpdatePanel, but can still trigger the update using the Triggers functionality of UpdatePanel
3. Try with the latest trial 8.2 release (I know that you may not be able to use that in production, but still, this will isolate the problem to some extent and we will know with better details where it is.
Hope this helps.