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
570
js set webgrid's width
posted

I want to set webgrid's width by js.  Js's code is below:

var uwg=$find("uwgLight");
 alert(uwg);
uwg._element.style.width="1000px";

But alert's dialog window show null.  Why?

Parents
No Data
Reply
  • 28464
    Verified Answer
    posted

    Hello,

    $find works only with our new generation of controls, like WebDataGrid, WebDialogWindow, etc.

    For UltraWebGrid, please use the javascript

    igtbl_getGridById() function to get a client-side reference to this grid.

    More info can be found in our online help, the client-side object model section of the grid.

    Hope this helps.

Children
No Data