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

Resizing clientside a column resize all autogenerated columns

3 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 18 Jun 2009, 09:20 AM
Hello,

How to resize only one column only ?
When I chenge my first column clientside all the others get changed according some strange proportional rule (not totally respected from what I see).

Here is my grid:
<div style="width: 100%;">  
    <Telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" 
        AllowSorting="True" ShowStatusBar="true" GridLines="None" ShowGroupPanel="True" > 
        <PagerStyle Mode="NextPrevAndNumeric" /> 
        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">  
            <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" /> 
            <Scrolling AllowScroll="True" ScrollHeight='400px' UseStaticHeaders="True" SaveScrollPosition="True" /> 
            <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
        <MasterTableView Width="100%" TableLayout='Fixed' AllowMultiColumnSorting="true">  
            <ItemStyle Wrap='true'  /> 
            <HeaderStyle Width='100px' /> 
            <AlternatingItemStyle Wrap='true' /> 
        </MasterTableView> 
        <SortingSettings SortedBackColor="Azure" /> 
    </Telerik:RadGrid> 
</div> 
 


Thanks again for help.

CS

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 23 Jun 2009, 03:38 PM
Hello Christian,

Thank you for contacting us.

The described behavior is expected, when the scrolling of the grid is allowed. Please find the attached test project, which uses the posted grid definition. You can compare the behavior of your project and the attached one and describe what the differences are.

I am looking forward to hearing from you.

Regards,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
CSurieux
Top achievements
Rank 2
answered on 24 Jun 2009, 07:25 AM
Hello Georgi,

I have tested your sample, works quite fine.
Even if I set exactly same parameters as in my sample

MasterTableView

 

TableLayout='Fixed' Width="100%"  and autogenerated columns= true

I just noticed that columns content overflow each other when size is smaller than words....

I don't understand what is happening on my side.
Each time I size a column by adding x it seems that all others get a factor 2 or 3 and resize by 2x or 3x ????
Some column are hidden in codebehind during ColumnCreated event ???? Others get their header changed ???
All values are set in ItemDatabound.
Could it be empty values in some columns ?
Some columns receive &nbsp; in place of string.empty, could this fool resizing ?
Some less accepted value data type ?

(sorry my text get red and there is no way to change color in this editor)

I will have to spend lot of time on this ....

Best regards

CS

0
Georgi Krustev
Telerik team
answered on 24 Jun 2009, 04:11 PM
Hello Christian,

Based on this information, it is hard to determine what is causing this behavior. If the issue persists, you can open a formal support ticket, and send us a small working project, demonstrating your logic, and the unwanted behavior. We will review it locally, and advise you further.

Greetings,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
CSurieux
Top achievements
Rank 2
Share this question
or