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

How to implement checkbox option?

3 Answers 89 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ben
Top achievements
Rank 1
Ben asked on 07 Mar 2013, 10:13 PM
I didn't see examples in documents, any hint? Thanks.

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 11 Mar 2013, 08:37 AM
Hello Ben,

Thanks for writing.

In the Working with Attributes section of the RadDataForm online help there is a list of attributes wich you can define on your business object properties to modify the form's behavior. So, to make the editor for a Boolean property be a Check box, you need to use the BooleanEditorTypeAttribute:

[BooleanEditorType(BooleanEditorType.CheckBox)]
public bool MyBoolProperty
{
     get;
     set;
}

I hope this helps.

Greetings,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Ben
Top achievements
Rank 1
answered on 24 Mar 2013, 01:37 PM
I'm sorry, what I actually want is a multi selection property, for example List<Integer> for checked index list. Not just a on/off checkbox.

So how should I implement that? Thanks.
0
Deyan
Telerik team
answered on 27 Mar 2013, 11:53 AM
Hi Ben,

Currently there is not an out-of-the box way to implement this behavior. We will log this into our TODO list and will make sure to consider it when planning the vNext features of RadDataForm.

Let me know should you have further questions or need assistance.

All the best,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
DataForm
Asked by
Ben
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Ben
Top achievements
Rank 1
Share this question
or