Closing a radtabstrip with an image button and confirmation message

2 posts, 0 answers
  1. hedi
    hedi avatar
    18 posts
    Member since:
    Jan 2008

    Posted 18 Nov 2011 Link to this post

    Hi,
    i want to close my radtabstrip using a closing image button and a radconfirm message,
    the problem is that the tab is closed automatically after showing the message without waiting the user confirmation
    can you help me please, i will need a function that stops the execution until the user's confirmation.


    thanks!
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 23 Nov 2011 Link to this post

    Hello Hedi,

    You can try using the approach below and cancel the postback in case the tab is not deleted:
    function OnClientClicking(sender, args) {
                if (confirm("Are you sure you want to delete the tab") == true) {
                    deletingTabFunction()              
                }
                else {
                //cancel postBack
                    args.set_cancel(true);
                }
            }

    Best wishes,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top