This question is locked. New answers and comments are not allowed.
Hello,
I've an additional issue with the GridViewSelectColumn. If this is already a known issue and fixed with the Q3 release then please give me a short info.
I've assigned a value to UniqueName of the GridViewSelectColumn and this internal value is shown as the column header, which was not intended. I didn't want to have a header just the standard check box to select the whole grid. To overwrite the internal UniqueName I've tried to set Header="" but the check box in the header remains lost.
Thanks for your help and kudos to your really helpful and fast support
Uwe
I've an additional issue with the GridViewSelectColumn. If this is already a known issue and fixed with the Q3 release then please give me a short info.
I've assigned a value to UniqueName of the GridViewSelectColumn and this internal value is shown as the column header, which was not intended. I didn't want to have a header just the standard check box to select the whole grid. To overwrite the internal UniqueName I've tried to set Header="" but the check box in the header remains lost.
Thanks for your help and kudos to your really helpful and fast support
Uwe
4 Answers, 1 is accepted
0
Hi uku,
Sincerely yours,
Milan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thank you for your kind words. We do try to provide the best support to our customers.
In regard to the GridViewSelectColumn, setting the UniqueName field is not required and you could skip it altogether. The column will still work when UniqueName is not set and also a Ceckbox will be displayed in the header.
Sincerely yours,
Milan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
uku
Top achievements
Rank 1
answered on 31 Oct 2009, 06:20 PM
Hello Milan,
thanks for your reply.
I've seen that I can use GridViewSelectColumn without UniqueName and as I've seen this seems to be the only way it works correctly, at least in Q3 beta.
The reason for my question and why I've used an UniqueName was the header context menu example of the Telerik sample app. Some of the examples rely on an UniqueName and that's why I've used it until I've seen that the functionality to select the whole grid was gone.
My preferred solution would be to have a check box and a text side by side within the header cell of the SelectColumn, but of course I can work around this problem and adjust the context sample.
Bye
Uwe
thanks for your reply.
I've seen that I can use GridViewSelectColumn without UniqueName and as I've seen this seems to be the only way it works correctly, at least in Q3 beta.
The reason for my question and why I've used an UniqueName was the header context menu example of the Telerik sample app. Some of the examples rely on an UniqueName and that's why I've used it until I've seen that the functionality to select the whole grid was gone.
My preferred solution would be to have a check box and a text side by side within the header cell of the SelectColumn, but of course I can work around this problem and adjust the context sample.
Bye
Uwe
0
Accepted
Hi uku,
Milan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Unfortunately, having both text and a checkbox at the same is not supported by our GridViewSelectColumn but you can use the Header property of the column to easily overcome this limitation.
<telerik:RadGridView.Columns> <telerik:GridViewSelectColumn Width="Auto"> <telerik:GridViewSelectColumn.Header> <StackPanel Orientation="Horizontal"> <CheckBox telerik:StyleManager.Theme="Office_Black" HorizontalAlignment="Center" Click="CheckBox_Click" /> <TextBlock Text="MyHeaderText" Margin="5,0,0,0" /> </StackPanel> </telerik:GridViewSelectColumn.Header> </telerik:GridViewSelectColumn> </telerik:RadGridView.Columns>
private void CheckBox_Click(object sender, RoutedEventArgs e) { CheckBox checkBox = (CheckBox)sender; var parentGrid = checkBox.ParentOfType<RadGridView>(); if (checkBox.IsChecked.Value) parentGrid.SelectAll(); else parentGrid.UnselectAll(); }Hope this helps.
Thank you for your valuable feedback. We will try to fix the problem with the GridViewSelectColumn as soon as possible. I have updated your Telerik points.
Milan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
uku
Top achievements
Rank 1
answered on 01 Nov 2009, 08:42 PM
Hello Milan,
thanks for your solution. I should have find this solution on my own ;-)
Bye
Uwe
thanks for your solution. I should have find this solution on my own ;-)
Bye
Uwe