This topic is locked
[SOLVED]

 disable the edit and the delete button

11/10/2013 5:04:00 AM
ASPRunnerPro General questions
K
kleanthis author

Hi to all
How I can disable the edit and delete button if in the date field, the day is before today?
Thanks for your help. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=21566&image=1&table=forumtopics' class='bbc_emoticon' alt=':rolleyes:' />

admin 11/11/2013

To disable editing of certain records use IsRecordEditable event:

http://xlinesoft.com/asprunnerpro/docs/isrecordeditable.htm
Since there is no 'Delete' button next to each record the best you can do is to use BeforeDelete event to check Delete permissions and prevent record from being deleted if required.

K
kleanthis author 11/12/2013

Thanks