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
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
0
Hello Håkan,
Yoan
Telerik
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.
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
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
Hello Håkan,
Yoan
Telerik
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.
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
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