radwindow model not working with telerik grid editform

4 posts, 0 answers
  1. Swapnil
    Swapnil avatar
    96 posts
    Member since:
    Aug 2013

    Posted 20 Sep 2013 Link to this post

    Hi
    i am having grid in which i am using editmode , i want to show rad window model on delete button click but window is not opening on button click
    but by using same window it will open on page load ,i also used debuggeer it is going through that line but model is not coming

      radwindowPopup.VisibleOnPageLoad = true;

    Thanks
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 20 Sep 2013 Link to this post

    Hi Swapnil,

    The most likely reason for this behavior is that you are using AJAX (at least in the edit form), so the server property you change for the RadWindow does not make it to the browser.
    What I would advise is that you examine the following sticky thread and use the JavaScript approach shown there to open the RadWindow:
    http://www.telerik.com/community/forums/aspnet-ajax/window/opening-radwindow-from-the-server.aspx


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Swapnil
    Swapnil avatar
    96 posts
    Member since:
    Aug 2013

    Posted 20 Sep 2013 Link to this post

    yes it works for me but i am not able to provide the label text from code
    which i can provide in normal radwindow

    <telerik:RadWindow ID="radwindowPopup" runat="server" Animation="FlyIn" CssClass="modalPopup" IconUrl="~/Images/Title Bar.ico"
        DestroyOnClose="true" EnableShadow="true" KeepInScreenBounds="true" Width="420px"
        Height="150px" MaxHeight="150px" MaxWidth="420px" MinHeight="150px" MinWidth="420px"
        Modal="true" RenderMode="Classic" VisibleTitlebar="true" VisibleStatusbar="false"
        Behaviors="Move,Close" Title="Manifest-BI" Skin="Web20">
        <ContentTemplate>
            <center>
                <div style="padding: 20px">
                     <asp:Label ID="lblMsg" runat="server" ></asp:Label>
                     
                    <br />
                    <br />
                    <telerik:RadButton ID="btnOk" runat="server" Text="Yes" Width="70px"
                        Skin="Web20" />
                    <telerik:RadButton ID="btnCancel" runat="server" Text="No" Width="70px"
                        Skin="Web20" />
                </div>
            </center>
        </ContentTemplate>
    </telerik:RadWindow>
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 24 Sep 2013 Link to this post

    Hello Swapnil,

    Once again, the reason is most likely AJAX - the RadWindow contents are not updated with the partial postback you have. I suggest you examine the following help article on using RadWindow with AJAX: http://www.telerik.com/help/aspnet-ajax/radwindow-ajaxifying.html. I would suggest adding an ASP:UpdatePanel in the ContentTemplate of the RadWindow so it gets updated. If you set its UpdateMode to Conditional you would need to call its Update() method from the code-behind when needed as well.


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top