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

Cancel Event Bubble

3 Answers 55 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Drew Zilm
Top achievements
Rank 1
Drew Zilm asked on 01 Jun 2011, 08:29 PM
I have a user control inside a grid for editing. Everything works as expected except one thing.

I have an "Update" event on a toolbar in the control. The event checks the database for duplicate data. iIf another record exists it cancels the update. I'd like to leave the control open but the "Update" event goes up to the grid and it closes.

In classic RadControls you could do
e.cancel(true);
on the toolbar event.... is there a simple way to accomplish the same effect?

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 Jun 2011, 01:51 PM
Hello Drew,

Do you implement this on the client or the server. Can you send us a code snippet?


Best wishes,
Peter
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Drew Zilm
Top achievements
Rank 1
answered on 08 Jun 2011, 04:40 PM
Hi Peter,

I was doing this on the server because I needed to verify the update before allowing the save and closing the edit form.

I ended up adding a boolean property "IsSaved" on the edit control which the grid could inspect while handling the "Update" event on the outside. This seemed to work fine.

Thanks,
Drew
0
Peter
Telerik team
answered on 13 Jun 2011, 04:58 PM
Hi Drew,

I am glad that you found a solution and thank you for sharing it in the forum.

All the best,
Peter
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ToolBar
Asked by
Drew Zilm
Top achievements
Rank 1
Answers by
Peter
Telerik team
Drew Zilm
Top achievements
Rank 1
Share this question
or