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
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
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...
Thanks so much for your response. I tried it out, but it does not work :(
Also when using ASP Panel and AJAX ResizableControlExtender try to give a fixed width and height for ASP Panel, and the width and height of WebGrid can be set to 100% each. Also try to remove the DOCTYPE and see if it helps
I am also trying to implement resizable grid. I am still in the process.
I did two things
First
I removed the DOC TYPE declaration from my webpages
Second
I placed the webgrid in ASP panel and i added WebResizing Extender
<igui:WebResizingExtender ID="WebResizingExtender1" runat="server" TargetControlID="PanelGrid" HandleClass="handle"/>
In my Stylesheet i have
.handle
{
width:16px;
height:16px;
background-image:url(images/corel_resize_icon.gif);
overflow:hidden;
cursor:se-resize;
}
Hope this helps