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

EditMode= EditForms hide default update and cancel buttons

3 Answers 215 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sf
Top achievements
Rank 1
sf asked on 18 Aug 2010, 06:28 AM
in my grid the EditMode is "EditForms". I also have a ItemEditTemplate which contains the update and cancel button. Is there a way that i can disable/hide the default update and cancel buttons and use mine?

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 18 Aug 2010, 07:14 AM
Hello,

Try the following mark up to hide the deafult update/cancel button.

ASPX:
<EditFormSettings>
  <EditColumn Visible="false">
  </EditColumn>
</EditFormSettings>

Thanks,
Princy.
0
sf
Top achievements
Rank 1
answered on 30 Sep 2010, 08:14 AM
hi princy thats very helpful~
is there a way to hide the update button from code behind and leave the cancel button visible?
0
Accepted
Princy
Top achievements
Rank 2
answered on 30 Sep 2010, 08:27 AM
Hello,


You can access the Update/Cancel buttons from code behind ItemCreated event and set the Visible property to "false".
http://www.telerik.com/help/aspnet-ajax/grdcustomizeautogeneratedupdateinsertcancelbuttons.html


Thanks,
Princy.
Tags
Grid
Asked by
sf
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
sf
Top achievements
Rank 1
Share this question
or