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
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"
="100%">
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...
Hello Guys,
Just a suggestion abut resizing WebGrid I would do with javascript like this
11 <script type="text/javascript">
12 function resizeGrid() {
13
14 var oGrid = igtbl_getGridById('gridId')
15 oGrid.resize(width, height);
16 }
17 </script>
For reference you can check out the client - side object model on this link:
webGrid CSOM