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

How to change Confirm to Radconfirm

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bharat veer
Top achievements
Rank 1
bharat veer asked on 17 May 2011, 03:01 PM
Hi,
below i wrote a code according to my condition with the Window.Confirm function.
this method is called on the RadButton  clientcliked event.
I want to know how same thing can be done with RadConfirm method.

 function rbReturnToData_Clicked(button, args) {
            debugger;                 
            var pending = document.getElementById("<%= lblChangesPending.ClientID %>");
            var lblTitleFilter = document.getElementById("<%= lblTitleFilter.ClientID %>");
            var rfGridFilter = document.getElementById("<%= rfGridFilter.ClientID %>");

            if (pending != null) {
              if (pending.innerHTML != "") {
                  if (window.confirm("You have pending filter changes.  Apply them?")) {
                     
                      button.set_commandName('Apply')                                                            
                      button.set_autoPostBack(true);
                    }
                    else {                       
                        button.set_commandName('Cancel')    
                        button.set_autoPostBack(true);                        
                    }
                }
                else
                    CollapseToolsPane();
            }
            else {
                CollapseToolsPane();
            }            
        }

1 Answer, 1 is accepted

Sort by
0
Gimmik
Top achievements
Rank 1
answered on 17 May 2011, 06:33 PM
I replied to your other thread.
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/radbutton-onclientclicked-event.aspx
Tags
General Discussions
Asked by
bharat veer
Top achievements
Rank 1
Answers by
Gimmik
Top achievements
Rank 1
Share this question
or