Hi,
I finished transferring over a fully working UltraWebGrid to the new WHDG. I did it in a new project and took care of all the client scripts - with the help of the experts on this forum of course. Now, when I transferred over the source code to my real project, it bombs out with the above error: Here's the part of the script that bombs
var grid = document.getElementById("<%= WebHierarchicalDataGrid1.ClientID %>"); var gridview = grid.get_gridView(); <- right here
The only obvious difference between my design scenario and my production site is that the production site uses a master page and the WHDG is in a content holder. The first line is working and getting the grid, it's just not realizing that there's a gridview property. When I user the $find command, it bombs out with a 'null' = null error on the same line.
HELP!
Thanks, Ed
I had a similar problem. Following your e.g. I found I needed to repeat the ctl00 at the end of the ID.
var grid = ig_controls["ctl00_cph1_WebHierarchicalDataGrid1_ctl00"];
Google Chrome is rather handy for debugging this!
Mike D. figured this one out. It wasn't getting the proper grid - probably because it was in a content holder. The only way that it got the right grid was by using:
var grid = ig_controls["ctl00_ContentPlaceHolder1_WebHierarchicalDataGrid1"];