how can i change a radwindow control with a div?

2020-02-26 java asp.net vb.net radwindow

I have to change the rad window with standard control. here is the code for rad window

<telerik:radwindowmanager id="RadWindowManager2" runat="server" enableshadow="true"
    enableembeddedskins="true" skin="Black" showcontentduringload="false" reloadonshow="true"
    enableviewstate="false" behaviors="Close,Move,Resize" visiblestatusbar="false">
    <windows>
        <telerik:RadWindow Modal="true" EnableViewState="false" ID="RadWindow2" VisibleOnPageLoad="false"
            Width="680px" Height="160px" runat="server" Behaviors="Close,Move,Resize" Style="position: relative;
            z-index: 2900; overflow: hidden!important;" EnableEmbeddedSkins="false" Skin="AlBlkSkin"
            CssClass="RadWindow_AlBlkSkin">
            <ContentTemplate>
                <div style="padding-top: 10px; padding-left: 10px">
                    <table align="left" cellpadding="0" cellspacing="2" width="100%">
                        <tr>
                            <td style="padding-top: 5px; padding-left: 10px;">
                                <asp:Label ID="ConfirmLabel" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-top: 20px;" align="center">
                                <telerik:RadButton ID="btnConfirmYes" runat="server" EnableEmbeddedSkins="False"
                                    Skin="AlSkin" CssClass="RadButton RadButton_AlSkin rbSkinnedButton" AutoPostBack="false"
                                    OnClientClicked="SetMemberType" Width="80px">
                                </telerik:RadButton>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <telerik:RadButton ID="btnConfirmNo" runat="server" EnableEmbeddedSkins="False" Skin="AlSkin"
                                    CssClass="RadButton RadButton_AlSkin rbSkinnedButton" OnClick="ConfirmNo" Width="80px">
                                </telerik:RadButton>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </telerik:RadWindow>
    </windows>
</telerik:radwindowmanager>

There are two buttons and those are calling two different javascript functions. this rad window is called by another javascript function. once a button is clicked it will lead to that function then the rad window will appear. Now my question is I want to change this rad window as a div with relevant buttons and labels. so how can I call that div in the same function for the rad window by replacing the rad window? Is that possible to call a div by button click?

 function ChangeUserType() {
        var windowManager = $find('<%= RadWindowManager2.ClientID %>');
        var oWnd = windowManager.GetWindowByName('RadWindow2'); 
        var Caption = '<%= GetlocalResourceObject("ConfirmHeader").ToString() %>';

        oWnd.set_title(Caption);
        oWnd.Show();
        oWnd.setSize(680, 150);           
        oWnd.center();
    }  

above code is the onclick function to call the rad window

      btnType.Visible = True
            btnType.Attributes.Add("onclick", "javascript:ChangeUserType(); return false;")

this is for the button

Answers

Related