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
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.
It's just on a plain-ole asp.net page. The problem isn't that it can't find the WebGrid, rather, that it doesn't know about the function igtbl_getGridById. I can F11 into the javascript for this function in the samples browser, but not in my own (I'm using VS2008 .net 3.5). So it's not even at the point yet where it's trying to find what I'm passing in.