How disable add button in edit mode

2 posts, 1 answers
  1. Nelson
    Nelson avatar
    62 posts
    Member since:
    Apr 2011

    Posted 24 May 2011 Link to this post


    I´m using the RadDataForm, but I have one problem. When I go to Edit Mode, I want that the add and delete buttons goes disable.

    How can I do that?

  2. Answer
    Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 30 May 2011 Link to this post

    Hello Nelson,

    The enabled / disabled state of the buttons is controlled internally by  a logical check whether the source collection allows or not adding /deleting of items.

    So as a workaround I may suggest to handle the Beginning Edit event. Inside the event you may hide the Add button ,  and after edit  - show it again .
    For this you will need to use the CommandButtonsVisibility property.

    In case you have troubles implementing this , just let me know what kind of source collection do you use , and I will prepare a small sample for you.

    Pavel Pavlov
    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
Back to Top