How to change Confirm to Radconfirm

2 posts, 0 answers
  1. bharat veer
    bharat veer avatar
    41 posts
    Member since:
    Dec 2009

    Posted 17 May 2011 Link to this post

    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();
                }            
            }
  2. Gimmik
    Gimmik avatar
    170 posts
    Member since:
    May 2011

    Posted 17 May 2011 Link to this post

    I replied to your other thread.
    http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/radbutton-onclientclicked-event.aspx
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top