My mobile app requires that my data grid have frozen columns on the left that do NOT scroll horizontally. This is useful when the first column might be an ID column or a Date column that the user always needs to see when scrolling through the other data columns.
Provide an option to programmatically reset the ordering of the columns in the DataGrid after reordering them using the Options-> more button
There isn't a command which can be used for resetting the column reorder.
Hi Team,
Currently, you have ScrollItemIntoView support. However, that does not work unless you have rows and a reference to the data item.
I need an explicit mechanism to pick a specific X/Y cell position, or at least a column index, that can be scrolled to so that I can have horizontal scrolling capability.
For example, imagine a DataGrid that has only one row, but a 100 columns, I would like to be able to do this:
// Option 1 - Use the ItemsSource column reference
var dataTableColumn = this.myDataTable.Columns[50];
this.MyDataGrid.ScrollIntoView(dataTableColumn);
// Option 2 - Better!
// This supports any possible data source type
var telerikColumn = this.MyDataGrid.Columns[50];
this.MyDataGrid.ScrollIntoView(telerikColumn);
// Option 3 - Ideal
// Useful for every possible occasion
var x = 5;
var y = 12;
this.MyDataGrid.ScrollIntoView(x, y);
For Aggregates purpose or just for diplaying some others datas, footer for column in DataGrid it's needed feature.
It would be nice if we can just bind a .net DataTable or DateView as ItemsSource to the RadDataGrid.
Like in the WPF GridView control:
https://docs.telerik.com/devtools/wpf/controls/radgridview/columns/column-groups
In case there are more columns inside the DataGrid, a horizontal scrollbar appears when a user swipes left. However, sometimes it' not clear there are more columns further on the left. For example, when you define a column's width with a big value or when the number of first 5 columns fit perfectly with a device's width totally by coincidence. In those cases, it'll be helpful to display horizontal scrollbar by default so the user knows there're more information on the left. (Very similar to a vertical scrollbar)
Currently, hiding the 'more' button in the of the DataGrid filter Options panel is not possible. This is a feature request to add such an option to the DataGrid column styling options (potentially as a property of the HeaderStyle).
<Style TargetType="telerikGrid:DataGridColumn">
<Setter Property="HeaderStyle">
<telerikGrid:DataGridColumnHeaderStyle TextFontSize="11" TextFontAttributes="Bold" BorderThickness="1" BorderColor="LightGray"/>
</Setter>
<Setter Property="CellContentStyle">
<telerikGrid:DataGridTextCellStyle FontSize="10"/>
</Setter>
</Style>
The DataGrid has the ability to add custom controls to the cell via Template columns; however, the contents of the cell are always visible and there is no way to distinguish between editing and display modes like you can with the type data columns. Furthermore, it may be desirable to create custom column types as the reusability would be easier than using a template or a template selector.
Currently, the DataGrid columns are public and unsealed; however, much of their internals are marked as internal. For example, overriding the CreateCellArranger method would allow custom editor types when the cell is edited. This would require exposing the CellArranger base classes as well.
Please mark more of the internals as public so that truely custom DataGridColumns can be created.