GridViewComboBoxColumn equivalent of Clear Selection Button in RadComboBox

3 posts, 1 answers
  1. Stephen
    Stephen avatar
    43 posts
    Member since:
    Apr 2012

    Posted 26 Jul 2012 Link to this post

    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. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 27 Jul 2012 Link to this post

    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.

  3. Stephen
    Stephen avatar
    43 posts
    Member since:
    Apr 2012

    Posted 27 Jul 2012 Link to this post

    Most excellent!  Thank you!
Back to Top