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

[Solved] How to frozen the last two columns in grid

3 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Katte
Top achievements
Rank 1
Katte asked on 19 Jun 2009, 07:30 AM
hi,

When I set the FrozenColumnsCount=2, then it frozen the first two column. But how to frozen the last two columns?

Regards, 
Katte

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Jun 2009, 07:53 AM
Hello Katte,

I am afraid this behavior is not supported. Sorry for the inconvenience.

Sincerely yours,
Dimo
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
Princy
Top achievements
Rank 2
answered on 19 Jun 2009, 08:09 AM
Hello Katte,

You can try setting certain attributes in the css class for last columns to freeze it as shown below. Probably this should help.
aspx:
<telerik:GridBoundColumn DataField="Notes" HeaderText="LastColumn" SortExpression="Notes" UniqueName="LastColumn"
    <HeaderStyle CssClass="FreezingCol_Header" /> 
    <ItemStyle CssClass="FreezingCol_Item" /> 
</telerik:GridBoundColumn>  

css:
 <style type="text/css"
         
        .FreezingCol_Header     
        {    
        position: relative;    
        left: expression(document.getElementById("RadGrid1").scrollLeft);    
        z-index: 1;    
        border-top-width: 0px;    
        border-left-width: 0px;    
        border-right-width: 0px;    
        border-bottom-width: 0px;    
        }   
       
        .FreezingCol_Item    
        {    
        position: relative;    
        left: expression(document.getElementById("RadGrid1").scrollLeft);    
        z-index: 1;    
        border-top-width: 1px;    
        border-left-width: 0px;    
        border-right-width: 0px;    
        border-bottom-width: 0px;    
        } 
 
 </style>  

Thanks
Princy.
0
Katte
Top achievements
Rank 1
answered on 19 Jun 2009, 08:30 AM
Hi Princy,

Thanks for reply. Your solution is not working for me. My idea was to make the edit and Delete column as static which are end column. 

Regards,
Katte
Tags
Grid
Asked by
Katte
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Princy
Top achievements
Rank 2
Katte
Top achievements
Rank 1
Share this question
or