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
506
Need help on UltraWebGrid
posted

Hi,

I am trying to display a grid which is re-sizeable by the users. What I did is put the grid in an ASP.NET Panel control, and use AJAX Toolkit control ResizableControlExtender to target that panel. It works, but because the grid is in the panel,  I lose the fixed header and columns when using scroll bar.

I find we can add a WebResizingExtender to the grid. I added that extender, however it does not work. Anyone knows how to use WebResizingExtender with the Grid?? Sample code will be very helpful.

I am using Version=9.1.20091.2067 under .NET framework 3.5 on Windows Vista Business.

Thanks a lot.

Regards,

Xiaosu

Parents
  • 61
    Suggested Answer
    posted

    Hi,

    I have just been using the webgrid and i was wondering the same thing because at first it wasnt working. But i got able to do it easy actually and its really simple. First you had an asp panel, put the grid inside. Then you set width and height of the grid to 100%. But there is a second place that needs to be setted too... and its where it was making the grid to not stretch. In the source html, you have a section in displaylayout that is called framestyle. This one has also a width and height. U set them both to 100% and here you go you got your grid moving.

     

     

    <

     

    FrameStyle BackColor="#E9F3FF" BorderStyle="Solid" BorderWidth="1px"

     

     

    Font-Names="Verdana" Font-Size="12pt" Height="99%" Width

    ="100%">

     

     

    </FrameStyle>

    Also don't forget to set the webrisizing on your panel and set his initial size too. Ah and one last thing, it is laggy if you have a big grid...

     

     

     

Reply Children
No Data