Hello,
I'm developing a page using Microsoft's AJAX Control Toolkit version 3.0.20229.14869 and the UltraWebGrid v8.2. The page has an AutoCompleteExtender (from the AJAX Control Toolkit) at the top and a grid at the bottom.
When the page is rendered in IE7 I can see the java script initialization code corresponding to each control at the bottom of the page, right before the closing </form> tag. The code looks somewhat like this:
<script type="text/javascript">
//<![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(AjaxControlToolkit.AutoCompleteBehavior, /*Initialization code for the autocompleteextender here*/);
});
//]]>
</script>
<script type='text/javascript'><!--
var octl00xPageContentxItemViewEx1xUltraWebGrid1 = igtbl_initGrid(/*Initialization code for the webgrid here*/);
//--></script>
If I run the page from Visual Studio 2008 everything runs fine. The page loads fine, I can sort and browse through the grid with no problems.
Then I uploaded the page to our IIS 6.0 server and I requested the page from IE 7 on my dev machine. Both the server and my pc are on the same LAN. Every now and then when the grid is displayed and I click a new page or I refresh the page (or anything that triggers a postback) I get this error:
Internet Explorer cannot open the internet site http://myserver.mysamplesite.aspx Operation Aborted.
Now, if I request the page from a machine located on a remote location (outside the LAN) I get the error more frequently, about 70% of the times. I'm making this note because that's the easiest way to reproduce the error.
After some trial and error, I noticed the page worked fine when the AutocompleteExtender was disabled. Under that scenario the line:
Sys.Application.add_init(function() {
$create(AjaxControlToolkit.AutoCompleteBehavior, /*Initialization code for the autocompleteextender here*/);
is not present and the grid can trigger postbacks without any problem.
The next test was swaping the order of the controls, I mean, the grid was placed at the top of the page and the AutoCompleteExtender was placed at the bottom. this time the code looks like this:
</script>
<script type='text/javascript'><!--
var octl00xPageContentxItemViewEx1xUltraWebGrid1 = igtbl_initGrid(/*Initialization code for the webgrid here*/);
//--></script>
<script type="text/javascript">
//<![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(AjaxControlToolkit.AutoCompleteBehavior, /*Initialization code for the autocompleteextender here*/);
});
//]]>
Which is the expected behavior since the grid is rendered first. Under this scenario everything works fine too.
The conclusion is that the grid initialization code fails on IE 7 if the AutoCompleteExtender is initialized before the grid.
Has anyone seen this kind of error?
That's the only issue keeping us from including Infragistics UltraWebGrid on our projects. Any light you can shed on this matter is greatly appreciated.
Thanks.