Cancel Event Bubble

4 posts, 0 answers
  1. Drew Zilm
    Drew Zilm avatar
    2 posts
    Member since:
    Jan 2008

    Posted 01 Jun 2011 Link to this post

    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?
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 08 Jun 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Drew Zilm
    Drew Zilm avatar
    2 posts
    Member since:
    Jan 2008

    Posted 08 Jun 2011 Link to this post

    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
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 13 Jun 2011 Link to this post

    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.

Back to Top