Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5739
get_gridView() - Error! object doesn't support this property or method
posted

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

Parents
  • 5739
    Verified Answer
    posted

    Hi,

    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"];

    Thanks, Ed

Reply Children
No Data