2 different confirm tamplates

3 posts, 0 answers
  1. margan
    margan avatar
    18 posts
    Member since:
    Oct 2010

    Posted 08 Feb 2011 Link to this post


    What i need to do is to change radconfirm buttons text so I addes sommething like that in my aspx:
        <div class="rwDialogPopup radconfirm">
            <div class="rwDialogText">
                <a onclick="$find('{0}').close(true);" class="rwPopupButton" href="javascript:void(0);">
                    <span class="rwOuterSpan"><span class="rwInnerSpan">EWKA</span></span></a>
                <a onclick="$find('{0}').close(false);" class="rwPopupButton" href="javascript:void(0);">
                    <span class="rwOuterSpan"><span class="rwInnerSpan">RECZNY</span></span></a>
    And I call my window from code behind like this:
    ScriptManager.RegisterClientScriptBlock(Page, Me.GetType(), "NOSOURCE""radconfirm('text for user?',confirmCallBackFnGoToHandMode)"True)
    Now the problem is that I need two different confirms on the same page one with 'EWKA' and 'RECZNY' and one with 'OK' and 'CANCEL' buttons
    Any idea how I can achive that??

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 08 Feb 2011 Link to this post

    Hi Margan,

    For such scenario, you could use 2 RadWindowManager, each of them with different template. By the way, if you only want to change the text of the buttons, you could use the Localization setting in RadWindowManager's declaration:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Localization OK="Yes" Cancel="No" />

    Then, you need to reference the corresponding RadWindowManager in your code and to call its radconfirm() method:

    var manager = $find("<%= RadWindowManager2.ClientID %>");
    manager.radconfirm("test", callBackFn)

    Georgi Tunev
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. margan
    margan avatar
    18 posts
    Member since:
    Oct 2010

    Posted 09 Feb 2011 Link to this post

    Hi Georgi,

    That's the answer I was looking for.
    Thanks for the declaration tip also.

Back to Top