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

Is there a way to have frozen columns on right rather than left

2 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 18 Feb 2009, 07:40 PM
I have a grid that contains a variable number of columns.  The last column (on right) contains dropdown or toolbar of all available actions that can be performed on the given row.  I'd like this column to remain in view at all times.  I think frozen columns is exactly what I need -- except on the right side rather than left.  Is this possible?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 Feb 2009, 11:25 AM
Hello Randy,

You can try setting certain attributes in the css class for the last column as shown below:
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
Randy
Top achievements
Rank 1
answered on 19 Feb 2009, 01:23 PM

Thanks.  I'll try that. 

 

 

Is this something that might be added as a property at some point?

Tags
Grid
Asked by
Randy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Randy
Top achievements
Rank 1
Share this question
or