RadConfirm RadWindow totally from server side

2 posts, 0 answers
  1. Brad
    Brad avatar
    29 posts
    Member since:
    Jul 2010

    Posted 05 Aug 2010 Link to this post

    Hi all,

    I have found many posts about RadConfirms but none seem to fit what I need. I've read the post here:
    http://www.telerik.com/help/aspnet-ajax/window_dialogsconfirm.html

    Along with others.

    I have RadConfirm windows tied into my RadGrids and would like to display RadConfirms, completely from the server side, similar to those fired off from the RadGrid.

    I can display a confirm box from firing it off of another control like:

    <

     

    button onclick = "radconfirm('Are you sure?', confirmCallBackFn); return false;"> show CONFIRM BOX</button>

     

    But I would rather be able to do it similar to a .Show() method from Forms controls.

    But that doesn't allow for changing the title or text, nor do I need the extra function for determing the callback value.

    Any help would be greatly appreciated.

    Thanks!
  2. Brad
    Brad avatar
    29 posts
    Member since:
    Jul 2010

    Posted 06 Aug 2010 Link to this post

    The answer was easy:

    RadScriptManager

     

    .RegisterStartupScript(this, this.GetType(), "WindowOpen", @"radconfirm('" + strAdd + "', confirmCallBackFn, 330, 100, null, '" + "Confirm ...');", true);

     

Back to Top