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

Three way CheckBox Column?

5 Answers 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dan Andrews
Top achievements
Rank 2
Dan Andrews asked on 23 Jun 2011, 09:51 PM
I'd like to have a GridViewCheckBoxColumn who has three states, NULL, True, False.  Null will display the check box with a solid box in it, True would show the check, and False will show an empty box.  Any ideas while still using a GridViewCheckBoxColumn?

-Dan

5 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 24 Jun 2011, 03:21 PM
Hi Dan Andrews,

I would advise you to use a templated GridViewDataColumn in such a case. Please, refer to the attached example.

Regards,
Ivan Ivanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Dan Andrews
Top achievements
Rank 2
answered on 24 Jun 2011, 04:25 PM
Thanks for getting back to me.  I ended up using a GridViewDataColumn with a RadToggleButton in the CellTemplate.  I was just hoping for a "IsThreeState" on a GridViewCheckBoxColumn or to make a suggestion for a future build.
0
Ivan Ivanov
Telerik team
answered on 27 Jun 2011, 08:04 AM
Hello Dan Andrews,

There appears to be some issue with this feature in our latest builds. It will be fixed in one of our future releases. Meanwhile, I would advise you to use a templated GridViewDataColumn. Thank you.

Best wishes,
Ivan Ivanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tim
Top achievements
Rank 1
answered on 08 Jan 2013, 09:26 AM
Hi Ivan,

has this issue ever been fixed? I am using build 2012.3.1017.1050 and facing the same behavior. Using DataTemplates is not a good option for my scenario. I have 8 CheckBox columns and I just want to set the checkbox to collapsed depending on the DataContexts's property. Using a data column, writing a template selector and 16 different data templates just for this feature is an overkill. I was hoping I could use the IsThreeState - Property with a VisualState to implement this.

It looks like CellTemplateSelector - property of GridViewCheckBoxColumn is not working either.

Best regards,
Stefan
0
Ivan Ivanov
Telerik team
answered on 11 Jan 2013, 02:25 PM
Hi Stefan,

We will fix this property for the next internal build. It will be publicly available in the beginning of the next week.

All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Dan Andrews
Top achievements
Rank 2
Answers by
Ivan Ivanov
Telerik team
Dan Andrews
Top achievements
Rank 2
Tim
Top achievements
Rank 1
Share this question
or