This is a migrated thread and some comments may be shown as answers.

radwindow model not working with telerik grid editform

3 Answers 29 Views
Window
This is a migrated thread and some comments may be shown as answers.
Swapnil
Top achievements
Rank 1
Swapnil asked on 20 Sep 2013, 05:29 AM
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

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 20 Sep 2013, 10:02 AM
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.
0
Swapnil
Top achievements
Rank 1
answered on 20 Sep 2013, 10:13 AM
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>
0
Marin Bratanov
Telerik team
answered on 24 Sep 2013, 12:22 PM
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.
Tags
Window
Asked by
Swapnil
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Swapnil
Top achievements
Rank 1
Share this question
or