Hi!!
I am consistently getting a JScript runtime error "this.Id is null or not an object".
Here's what I'm doing:
1 Tabcontrol(which is on a Usercontrol)
1st tab has a grid on it
2nd tab is loaded dynamically(OnTabClick()) calling tab.gettab(1).contentpane.UsercontrolURL="XXXX";
It also has a grid on it.
3rd tab is exactly the same as the 2nd tab.
Basically I'l loading a usercontrol on top of another user control at runtime whenever the user clicks on a tab.
The error always occurs on v7.3 ig_webgrid_dom.js line 174.
This error is sporadic depending on the sequence in which I call the tabs.
It seems that somehow the ID of the grid gets lost in viewstate.
anyhelp would be much appreciated.
Dynamically replacing content is unfortunately like a game of chance. The ASP.NET page framework really hates when you change the control tree on it. This includes using the UserControlUrl functionality. I would recommend instead changing the visibility of a user-control dropped at design-time, or you can load the user control using the portfoliomanager example in the samples (samples\webshowcase\portfoliomanager\default.aspx)
Hope this helps,
-Tony