We upgraded from 9.2 to 11.1. In IE9 this command fails intermittently in IE9 mode. Compatability mode works fine. The grid is not in "igtbl_gridState". This is called at the end of page load.
If i use setTimer to call a function 10milliseconds it works fine so far.
Gary
Hello Gary,
Can you tell me in what event or function do you try to call this method (“igtbl_getGridById”)?
I have tested this behavior with the following setup:
<asp:Button ID="btn1" Text="Show" runat="server" OnClientClick="GetGrid()" />
function GetGrid() {
var grid = igtbl_getGridById("ContentPlaceHolder1_UltraWebGrid1");
}
The grid object is returned correctly after the button click in version 11.1 of the ASP controls.
Let me know if you have different setup or if you have further questions.
I am calling this function from the pageLoad . It absolutely fails using IE9. If I use compatability mode it works. Other grids are there not the one i'm calling.
Are you sure that the grid is created and initialized when you are trying to access it?
If you try to get the grid too early in the Page Lifecycle it is possible that the grid is not created and added to the page yet. That is why the ten seconds timeout is allowing you to get the grid – this time is enough for the Page Lifecycle to complete and the grid to be available on the page.
You can try to access the grid in some event that is later than pageLoad and see if the function will return the grid correctly.
Let me know if you have further questions.
I guess what I am saying is it worked before. In pageload. And now no longer works. I assume you are correct. However we haven't changed our code. It just doesnt work in IE9.
Did you also upgrade your scripts when you have upgraded from 9.2 to 11.1?
The scripts are not upgraded automatically and you will have to change them manually by getting the new scripts from “<your HDD>\Program Files (x86)\Infragistics\NetAdvantage 2011.1\ASP.NET\CLR3.5\Scripts” and replacing the old ones.
You can also create a new project with 11.1 controls and test if this behavior will be present there.
Let me know what the results are when you test this.
Why not just use the grid's client-side init event?
Let me know if you need further assistance with this question.