This is a migrated thread and some comments may be shown as answers.

Column Resize

7 Answers 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 04 Feb 2010, 06:32 PM

This cannot be this difficult.  When I set the AllowColumnResize = 'true' the grid still won't allow me to resize the column header.

  <telerik:RadGrid ID="MyClientsViewGrid" runat="server"   
        AllowAutomaticDeletes="True" AllowAutomaticInserts="True"   
        AllowAutomaticUpdates="True" AllowSorting="True" DataSourceID="SqlDataSource1"   
        GridLines="None" Skin="Web20" ShowFooter="True">  
         
      <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">  
            <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" AllowColumnResize="True"></Resizing> 
      </ClientSettings> 
 
          
        <HeaderContextMenu Skin="Web20">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </HeaderContextMenu> 
 
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="ListValueID" DataSourceID="SqlDataSource1" CommandItemDisplay="TopAndBottom" > 
            <Columns> 
               ...  
            </Columns> 
        </MasterTableView> 
 
        <FilterMenu Skin="Web20">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
    </telerik:RadGrid> 

I found this article but it isn't allowing me to resize (The icon doesn't change into the Resizer)
http://www.telerik.com/help/aspnet-ajax/grdresizingcolumns.html  

 

7 Answers, 1 is accepted

Sort by
0
Nathan
Top achievements
Rank 1
answered on 04 Feb 2010, 06:43 PM
He is a better screenshot...

0
Mark Galbreath
Top achievements
Rank 2
answered on 04 Feb 2010, 08:27 PM
I am using 2009.Q3.1314 and when AllowColumnResize="true" there isn't any icon or tag indicating anything has changed.  However, if you carefully hover the cursor between columns in the header, it with change to a horizontal thin blue double-headed arrow and a tool-tip will popup stating that the column (to the left of the arrow) can be resized.

Cheers!
Mark
0
Nathan
Top achievements
Rank 1
answered on 04 Feb 2010, 08:32 PM
I have version 2008.3.1504.35 and it does not do this for me.
0
Dimo
Telerik team
answered on 05 Feb 2010, 08:00 AM
Hello Nathan,

I can think of two reasons for the problem -

1) a Javascript error on the page - please check

2) depending on the browser (e.g. IE8), column resizing may not work if you have margin applied to the <body> tag. Try setting margin:0. This problem is fixed in later versions.



Regards,
Dimo
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Nathan
Top achievements
Rank 1
answered on 05 Feb 2010, 01:03 PM
1.  No, I don't have any javascript errors, I just double checked.
2.  I am actually using a contents page and not a regular webform so I don't have any body tags...

In Addition this only show my Horizonal lines and not the Verticle ones.
.MasterTableView.GridLines = GridLines.Both 

Seems like something is wrong here...
0
Accepted
Dimo
Telerik team
answered on 08 Feb 2010, 11:59 AM
Hi Nathan,

Well, you have a <body> tag somewhere - if you are using a master page, then it is there - set zero margins for it.

As for your question about GridLines - this ASP.NET property uses an obsolete HTML attribute and we don't recommend using it, because it is easily overridden by the RadGrid skin. I suggest you to tweak the control's CSS styles:

http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx

Actually, the Web20 skin has both horizontal and vertical borders by default - you don't need to set anything in order to see them.

If you need further assistance, please send a simple demo.

Best wishes,
Dimo
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Nathan
Top achievements
Rank 1
answered on 17 Feb 2010, 03:57 PM
Downloading SP1 for 2008 resolved this issue for me.
Tags
Grid
Asked by
Nathan
Top achievements
Rank 1
Answers by
Nathan
Top achievements
Rank 1
Mark Galbreath
Top achievements
Rank 2
Dimo
Telerik team
Share this question
or