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

Problem with Border when lost focus

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

Hi,

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 :

<telerik:RadGridView 
              x:Name="ModifiableItems"
              Grid.Row="0"
              RowHeight="45"
              Margin="0,0,0,15"
              GridLinesVisibility="Horizontal"
              CanUserSortColumns="False"
              CanUserFreezeColumns="False"
              IsReadOnly="false"
              HorizontalAlignment="Left"
              VerticalAlignment="Stretch"
              IsFilteringAllowed="True"                                                       
              HorizontalContentAlignment="Left"
              RowIndicatorVisibility="Collapsed"
              ItemsSource="{Binding ModifiableItems, Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged}"
              SelectionMode="Single" >
 
              <telerikctrl:RadGridView.Columns>
                  <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}"/>                           
              </telerikctrl:RadGridView.Columns>
 
          </telerik:RadGridView>

 

You can see in attachement, a sample

1 Answer, 1 is accepted

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

Hello,

 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.

Regards,
Sia
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.
Tags
GridView
Asked by
Sebastien
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or