How to Postback with radconfirm window

3 posts, 0 answers
  1. VnDevil
    VnDevil avatar
    58 posts
    Member since:
    Oct 2012

    Posted 10 Mar 2010 Link to this post

    I've try Postback after OnClientItemClicking in my ContextMenuItem but it doesn't work, function confirmCallBackFn always run after function onClientContextMenuItemClicking  so allowPosback aslways is FALSE,  Please help


            <cc3:RadContextMenu ID="RadContextMenu1" runat="server" OnClientItemClicking="onClientContextMenuItemClicking" 
                OnItemClick="RadContextMenu1_ItemClick" OnInit="RadContextMenu1_OnInit"
                <Items> 
                    <telerik:RadMenuItem Value="AddNick" Text="" /> 
                    <telerik:RadMenuItem Value="Edit" Text="" /> 
                    <telerik:RadMenuItem Value="Delete" Text="" Font-Bold="true" /> 
                </Items> 
            </cc3:RadContextMenu> 


    var allowPosback = false
    function confirmCallBackFn(arg, eventArgs) { 
                        if (arg) { 
                            allowPosback = true
                        } 
     
    function onClientContextMenuItemClicking(sender, eventArgs) { 
                        var item = eventArgs.get_item(); 
                        item.get_menu().hide(); 
                         
                        switch (item.get_value()) { 
                            case "Delete"
                                //var result = confirm('<%= LanguageManager.GetGlobalString(MessageUtility.ConfirmDialog_ConfirmDeleteMessage) %>'); 
                                var message = "<%= LanguageManager.GetGlobalString(MessageUtility.ConfirmDialog_ConfirmDeleteMessage) %>"
                                var event = "event"
                                var width = 300; 
                                var height = 100; 
                                var title = "<%=LanguageManager.GetGlobalString(MessageUtility.ConfirmDialog_CustomTitle)%>"
                                radconfirm(message, confirmCallBackFn, width, height, null, title); 
                                eventArgs.set_cancel(allowPosback); 
                                break
                        } 
                    } 



  2. VnDevil
    VnDevil avatar
    58 posts
    Member since:
    Oct 2012

    Posted 11 Mar 2010 Link to this post

    Anyone help me ?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 15 Mar 2010 Link to this post

    Hi,

    I believe that the following KB will be of help:
    http://www.telerik.com/support/kb/aspnet-ajax/window/using-radprompt-and-radconfirm-with-telerik-navigational-controls.aspx



    Best wishes,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top