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

Problem with Border when lost focus

1 Answer 270 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Sebastien asked on 24 Jun 2020, 07:46 AM


I have a problem with a editable gridview.

The colums with dateticker and radcombobox have a cyan border.

It appear when I am editing and a mouse leave this field.

Xaml :

              ItemsSource="{Binding ModifiableItems, Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged}"
              SelectionMode="Single" >
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding String}" Width="*" EditorStyle="{StaticResource TextBoxRadGridViewStyle}" />
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding Int}" Width="*" EditorStyle="{StaticResource TextBoxRadGridViewStyle}"/>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding Bool}" Width="*"/>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding Double}" Width="*" EditorStyle="{StaticResource TextBoxRadGridViewStyle}"/>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding Decimal}" Width="*" EditorStyle="{StaticResource TextBoxRadGridViewStyle}" />
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding DateTime, StringFormat=dd/MM/yyyy}" Width="*" />
                  <telerik:GridViewComboBoxColumn ItemsSource="{Binding ObservableCollection}" DataMemberBinding="{Binding Item}" DisplayMemberPath="Label" Width="*" EditorStyle="{StaticResource RadComboBoxRadGridViewStyle}"/>                           


You can see in attachement, a sample

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 26 Jun 2020, 07:05 PM


 I think that this is the focus visual which can be hidden in every editor by setting the following setter through an implicit style targeting it:

<Setter Property="helpers:ThemeHelper.FocusBrush" Value="Transparent" />

You can check the attached project for reference. If you are using XAML dlls, then just remove the BasedOn part of the styles. 

Please let me know how it works on your end.

Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question