How to implement checkbox option?

4 posts, 0 answers
  1. Ben
    Ben avatar
    5 posts
    Member since:
    Feb 2013

    Posted 07 Mar 2013 Link to this post

    I didn't see examples in documents, any hint? Thanks.
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 11 Mar 2013 Link to this post

    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.
  3. DevCraft banner
  4. Ben
    Ben avatar
    5 posts
    Member since:
    Feb 2013

    Posted 24 Mar 2013 Link to this post

    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.
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 27 Mar 2013 Link to this post

    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.
Back to Top
DevCraft banner