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

Statis Columns in RadDataGrid

1 Answer 101 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 17 Jul 2013, 06:50 PM
I am writing to learn if it is possible to have a static column, or freeze a column, in a RadDataGrid for Windows 8;  as I understand, the RadDataGrid for Ajax has a Client Settings section, but I am unable to locate this type of setting of the RadDataGrid for Windows 8; 

The below Xaml code sample is the RadDataGrid which with I am working, including DataGridTemplateColumns;

The goal is to maintain visibility of the first column on the left (or left-most column) - Metric Display Name, if scrolling over to the right;

Thanks in advance for any insight;
<telerikGrid:RadDataGrid x:Name="Scenarios" AutoGenerateColumns="False" VerticalAlignment="Top" Grid.Row="2" Height="510" Width="1000" Margin="0,0,0,0" HorizontalAlignment="Center" Visibility="Collapsed">
                         
            <telerikGrid:RadDataGrid.Columns>
                <telerikGrid:DataGridTemplateColumn Header="Metric Display Name" Width="500" >
                    <telerikGrid:DataGridTemplateColumn.CellContentTemplate>
                        <DataTemplate>
                            <TextBlock x:Name="tbNameFM" Text="{Binding Index, Mode=TwoWay}" Foreground="White" TextWrapping="Wrap" FontSize="14" Height="20" Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        </DataTemplate>
                    </telerikGrid:DataGridTemplateColumn.CellContentTemplate>
                </telerikGrid:DataGridTemplateColumn>
 
                <telerikGrid:DataGridTemplateColumn Header="    LATAM    Argentina and Uruguay       Brazil                Chile                Colombia      Latam New Markets    Mexico                Peru                Puerto Rico          Venezuela" >
                    <telerikGrid:DataGridTemplateColumn.CellContentTemplate>
                        <DataTemplate>
                            <Grid x:Name="grdIDMarketName" >
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="110" />
                                </Grid.ColumnDefinitions>
 
                                <!--<Rectangle x:Name="recEMEA" Fill="{Binding indexrecEMEA, Mode=TwoWay}" Grid.Row="0" Grid.Column="0" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>-->
 
                                <Rectangle x:Name="recLATAM" Fill="{Binding indexLATAM, Mode=TwoWay}" Grid.Row="0" Grid.Column="0" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                                <Rectangle x:Name="recArgentina" Fill="{Binding indexArgentina, Mode=TwoWay}" Grid.Row="0" Grid.Column="1" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                                <Rectangle x:Name="recBrazil" Fill="{Binding indexBrazil, Mode=TwoWay}" Grid.Row="0" Grid.Column="2" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                                <Rectangle x:Name="recChile" Fill="{Binding indexChile, Mode=TwoWay}" Grid.Row="0" Grid.Column="3" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                                <Rectangle x:Name="recColombia" Fill="{Binding indexColombia, Mode=TwoWay}" Grid.Row="0" Grid.Column="4" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                                <Rectangle x:Name="recLatamNew" Fill="{Binding indexLatamNew, Mode=TwoWay}" Grid.Row="0" Grid.Column="5" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                                <Rectangle x:Name="recMexico" Fill="{Binding indexMexico, Mode=TwoWay}" Grid.Row="0" Grid.Column="6" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                                <Rectangle x:Name="recPeru" Fill="{Binding indexPeru, Mode=TwoWay}" Grid.Row="0" Grid.Column="7" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                                <Rectangle x:Name="recPuerto" Fill="{Binding indexPuerto, Mode=TwoWay}" Grid.Row="0" Grid.Column="8" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                                <Rectangle x:Name="recVenezuela" Fill="{Binding indexVenezuela, Mode=TwoWay}" Grid.Row="0" Grid.Column="9" Margin="0,0,0,0" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"></Rectangle>
 
                            </Grid>
                        </DataTemplate>
                    </telerikGrid:DataGridTemplateColumn.CellContentTemplate>
                </telerikGrid:DataGridTemplateColumn>
 
            </telerikGrid:RadDataGrid.Columns>
        </telerikGrid:RadDataGrid>

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 19 Jul 2013, 11:11 AM
Hi Robert,

Thank you for using RadControls for Windows 8!

Unfortunately, RadDataGrid does not support frozen columns functionality at this moment. Nevertheless this idea has already been suggested and you can vote for it on our Ideas and Feedback Portal - the higher the demand, the higher the priority of a feature.

Please, feel free to contact us if there is any other way we can help you.


Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Grid for XAML
Asked by
Robert
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or