Hi,
in my project there is one RadGridView is present. Inside it there is GridViewComboBoxColumn but whenver I am selecting other item from that comboboxcell, binded property setter is not being called and as a result datacontext also remains same.
But whenever cell of that combobox column loses the focus property setter is called and as a result datacontext is fixed.
Please suggest fixes for this one.
Also is there any way to manually update datacontext ? If yes then how to retrieve changed places and how to update them in datacontext using selection change listener?
Hi, I followed the steps on how to save / load filters on my c# WPF app from this link and it is working correctly
https://docs.telerik.com/devtools/wpf/controls/radgridview/filtering/how-to/howto-save-and-load-filter-settings
My grid is filtered and it works for all the columns (Just in case it wasn’t clear, the grid is indeed filtered by Source and Order Id). For all the fields that are strings, the filters look good when it shows:
But the fields that are enums, The header shows the icon as if a filter has been applied, but when it shows me the list, the values are not checked:
Code:
<telerik:RadGridView
x:Name="DesignQueueOrderGridView"
ShowGroupPanel="False"
AutoGenerateColumns="False"
ItemsSource="{Binding FilteredDesignQueueOrderViewModels}"
RowDetailsVisibilityMode="Visible"
RowIndicatorVisibility="Collapsed"
Grid.Row="1"
VerticalAlignment="Top"
RowStyle="{StaticResource RowStyleOdd}"
AlternationCount="2"
AlternateRowStyle="{StaticResource RowStyleEven}"
CanUserSortColumns="False">
<telerik:GridViewDataColumn
UniqueName="ImageSource"
Header="Source"
HeaderTextAlignment="Center"
DataMemberBinding="{Binding ImageSource}"
IsReadOnly="True">
<telerik:GridViewDataColumn DataMemberBinding="{Binding UserId}" UniqueName="UserId"
HeaderTextAlignment="Center"
Header="User Id"
IsReadOnly="True"/>
</telerik:GridViewDataColumn>
Enum:
[DataContract]
public enum ImageSource
{
[EnumMember]
Unknown = 0,
[EnumMember]
OnlineDesigner = 1
}
public void LoadColumnFilters(IList<FilterSetting> savedSettings)
{
Application.Current.Dispatcher.Invoke(() =>
{
GridViewDataControl.FilterDescriptors.SuspendNotifications();
foreach (FilterSetting setting in savedSettings)
{
Telerik.Windows.Controls.GridViewColumn column = GridViewDataControl.Columns[setting.ColumnUniqueName];
if (column is null)
continue;
IColumnFilterDescriptor columnFilter = column.ColumnFilterDescriptor;
if (setting.SelectedDistinctValues is not null)
{
foreach (string? distinctValue in setting.SelectedDistinctValues)
{
columnFilter.DistinctFilter.AddDistinctValue(distinctValue);
}
}
}
GridViewDataControl.FilterDescriptors.ResumeNotifications();
});
}
Thank you in advance! Juan
Hi
In the image attached there are two columns of a radgridview, defined as follow:
<t:GridViewDataColumn
Header="{DynamicResource ResourceKey={x:Static r:ResourcesKeys.SelectedColumnHeader }}"
DataMemberBinding="{Binding IsSelected, Mode=TwoWay
, UpdateSourceTrigger=PropertyChanged}">
<t:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay
, UpdateSourceTrigger=PropertyChanged}" />
</DataTemplate>
</t:GridViewDataColumn.CellTemplate>
</t:GridViewDataColumn>
<t:GridViewCheckBoxColumn
AutoSelectOnEdit="True"
Header="{DynamicResource ResourceKey={x:Static r:ResourcesKeys.SelectedColumnHeader }}"
DataMemberBinding="{Binding IsSelected, Mode=TwoWay
, UpdateSourceTrigger=PropertyChanged}"/>
Dear Telerik Team,
Do we have any multiple selection (Check box) option in Grouped rows?
Reference screen shot attached here.
Thanks in Advance
Hello,
I am new to Telerik, in my application we are using RadGridView and load the data dynamically.
when data is large, and I copy pasted from excel then my cells are not highlighted. data is pasted correctly but highlighted cell is not working.
If I edit it manually then it's working fine and I handled this highlighted cell in "CellEditEnd" event.
I walk through multiple forums but none of them are working for me.
I tried to raise ClipboardPaste event but that is not available my RadGridView control.
Also I manually created below function but "MyRadGrid.ChildrenOfType<GridViewRow>()" is not giving me all the index of my radgridview it gives 10 or 15 according to the screen size because of virtualization
private void HighlightUpdateCell(int rowIndex, int columnIndex)
{
int rowNumber = 0;
foreach (GridViewRow gr in MyRadGrid.ChildrenOfType<GridViewRow>())
{
if (rowNumber == rowIndex)
{
gr.Cells[columnIndex].Background = Brushes.Yellow;
break;
}
rowNumber++;
}
}
Another approach was to create a property and set it in style but that is also not working. as cells are not showing in edited mode after pasting data.
I also tried using CellStyleSelector but the is applying changes only on load after that this method is not call itself.
I tried for ClipboardPaste event but unable to find that in my application.
I am using latest Telerik libraries from 2024
Can you please help to highlight the cells of RadGridView after paste is completed.
Hi,
I have a RadGridView in WPF where I use CustomGrouping for displaying it as a hierarchical structure. I set on it AutoExpandGroups="True" in order to be expanded by default. My problem is, if I manually collapse something in the RadGridView and I make an update to the list bounded to ItemsSource, the RadGridView automatically expands and does not stay as it was.
Thanks
I've read this thread but it is a bit confusing and old: Live sorting/grouping in UI for WPF | Telerik Forums
What is the current situation?
I am having problems with Devexpress GridControl as they dont support what they call "Live Data Shaping" eg sorting with real-time updates IF you use WPF binding.
Question - can Telerik data grid and/or virtual grid do live data shaping where columns use custom templates with WPF binding to a dictionary. For example: `{Binding Fields[abc].Value}`?
There's probably just a property for this that I am missing.
I have a RadGridView with SelectionUnit="FullRow" but it still draws a box around whatever cell I click on.
I can confirm that it doing the full row selection because it will copy the row text if I press ctrl-C.
The row indicator on the left is also showing correctly.
So how do I tell it to not draw the box around the cell?
(it's not a big issue but some user will probably complain about it)