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

GridViewComboBoxColumn equivalent of Clear Selection Button in RadComboBox

2 Answers 308 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 26 Jul 2012, 05:59 PM
If someone is trying to clear a field value in a GridView row, and that column is a GridViewComboBoxColumn, all they can do is select something else from the combo drop collection.

In a standard RadComboBox, we could use the Clear Selection functionality.  How do we do this in a GridView?  Is there something in there that works the same way?

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 27 Jul 2012, 06:56 AM
Hello Stephen,

You can create implicit style targeting RadComboBox and define its clear selection button. For example: 

<UserControl.Resources>    
    <Style TargetType="telerik:RadComboBox">
        <Setter Property="ClearSelectionButtonContent" Value="Clear me" />
        <Setter Property="ClearSelectionButtonVisibility" Value="Visible" />
    </Style>
</UserControl.Resources>

This style will be applied to each of the combo boxes in your application.
You can take a look at this forum thread for a reference as well.

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Stephen
Top achievements
Rank 1
answered on 27 Jul 2012, 11:53 AM
Most excellent!  Thank you!
Tags
GridView
Asked by
Stephen
Top achievements
Rank 1
Answers by
Maya
Telerik team
Stephen
Top achievements
Rank 1
Share this question
or