I have a custom control which inherits from Radgridview. For few columns (GridViewDataColumn), I have set IsResizable to false. However, when i reorder this column I am still able to resize it. Any ideas what might be the issue?
When i set IsResizable to false what does it exactly do?
2 Answers, 1 is accepted
0
Accepted
Dilyan Traykov
Telerik team
answered on 22 Mar 2017, 11:06 AM
Hello Naved,
This does seem like an issue at our end and I have thus logged a new bug report in our feedback portal. You can vote for the issue as well as subscribe to it in order to get notified about any changes in its status.
As a thank you for your help, I'm awarding you with some Telerik points.
A workaround you can use for the moment is to handle RadGridView's ColumnReordered event like so:
foreach (var header in radGridView.ChildrenOfType<GridViewHeaderCell>())
{
if (header.Column.DisplayIndex == (e.Column.DisplayIndex + 1))
{
var leftGripper = header.ChildrenOfType<Thumb>().Where(x => x.Name == "PART_LeftHeaderGripper").First();
{
leftGripper.Visibility = Visibility.Collapsed;
}
}
}
}), DispatcherPriority.Render);
}
}
I hope you find this applicable.
Regards,
Dilyan Traykov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.