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
360
Reference UltraWebGrid in javascript
posted

I am currently evalulating the UltraWebGrid for my company and I have run into a problem that should be easy (I hope).  I have added the grid to my asp.net form and I want to reference it in javascript in order to handle the resize.  I read several posts here on how to do this and specifically in the help it mentions to get a reference you do this:

 var grid = igtbl_getGridById("UltraWebGrid1");

 However, when I hit this line of code, I get the "Object expected" error.  It seems as if the javascript containing this function is not getting imported somehow.  However, it seems to work when I run the samples browser, so there must be something I am missing in my application.

Is there something in web.config or declarations section that I need that is not mentioned in the help or in the samples browser?

Thanks,

Tom

Parents
No Data
Reply
  • 45049
    posted

    Is your WebGrid in a naming container, such as a content page used with a master page?  If so, use the ClientID property of your WebGrid to determine what you should put as your parameter for the call to igtbl_getGridById().

    I've seen syntax that you can put inline in your ASPX page to let ASP.NET determine this for you, but I haven't used it myself recently.

Children