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

Making a cell focus disappear

3 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Erez
Top achievements
Rank 1
Erez asked on 20 Aug 2009, 04:37 PM
Hello,

I have a grid.

I click on a cell and and a MouseUp event occurs.

I do what I do and then I want to cancel the focus of the cell without transferring the focus to a different cell.

Is that possible ?

Thanks,

Erez

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 24 Aug 2009, 03:22 PM
Hi Erez,

Actually, what you are seeing is not the WPF built-in focus, but a CurrentBorder that we show when a cell becomes current.

You will need to modify the GridViewCell template (with Blend) and look for the following:

<Trigger Property="IsCurrent" Value="True">
   <Setter TargetName="CurrentBorder" Property="Visibility" Value="Visible" />
</Trigger>

This is the border that you see when a cell is made current. You can delete this trigger and you will not see the focus-like dotted border anymore.

Please, let me know if that is not what you are after.

Regards,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Erez
Top achievements
Rank 1
answered on 19 Oct 2009, 03:17 PM

Hello,

Forgive me for asking, however, currently, I do not have sufficient 

experience with Blend.

In order to access the your GridViewCell template with blend, do I need the Grid's source code ?

 

Thanks,

 

Erez

0
Rossen Hristov
Telerik team
answered on 21 Oct 2009, 10:25 AM
Hello Erez,

You need the assemblies only. Please, take a look at this help article. It explains about styling rows, but the idea is exactly the same.

Drop us a line if there are any problems with Blend.

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