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

I want TabStop even if ReadOnly

4 Answers 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Håkan
Top achievements
Rank 1
Håkan asked on 29 May 2013, 10:06 AM
Hi!

I have a check box in a GridViewDataqColumn, and to make it one-click editable I have made the column ReadOnly.
But I still want TabStop in the column to be able to use the keyboard.
But setting TabStopMode="Stop" does not work.

Is there any solution for this, or do I have to make the column editable?

Regards,
Håkan

4 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 31 May 2013, 04:32 PM
Hello Håkan,

Indeed, RadGridView has a GridViewCheckBox column type. You can check  this help article for a reference.

Please let me know if this fits your scenario.

Regards,
Yoan
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Håkan
Top achievements
Rank 1
answered on 03 Jun 2013, 08:53 AM
Hi!

Ok, so I did as the article says about styling the CheckBox, since I have my own style on it.
That works fine when the cell is not in edit mode, but as soon as I click the column the default "Telerik CheckBox" is displayed.
I tried to set a style on it, both in the CellTemplate and as an ImpicitStyle of the whole GridView with no success.

Also, is there anyway I can get the CheckBox to react on click immediately. Now the "one-click" functionality only works if the row is previously selected.
So if I click in the CheckBox column of a non-selected row, it will only select the row (and cell), then I have to click again to select the CheckBox.

Regards,
Håkan
0
Accepted
Yoan
Telerik team
answered on 06 Jun 2013, 09:19 AM
Hello Håkan,

You may change the appearance of GridViewCheckBox  through edit its and predefine the brushes which are used by default. As for the number of clicks, I have tested the solution and everything seems to work as expected. I have prepared a sample project which shows you the approach. Please find it attached.

Regards,
Yoan
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Håkan
Top achievements
Rank 1
answered on 10 Jun 2013, 06:24 AM
It was the EditorStyle property I had missed.
And also I had EditTriggers="CellClick" on the whole GridView but that did not make the one-click edit work, I had to put it on the CheckBoxColumn as well, then it worked fine!

Regards,
Håkan
Tags
GridView
Asked by
Håkan
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Håkan
Top achievements
Rank 1
Share this question
or