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

Grid + RadWindow problems

3 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kirk Potter
Top achievements
Rank 1
Kirk Potter asked on 20 May 2010, 05:02 PM
Hi,

I have a radGrid and I want to implement the following functionality:

1. When a single left click is performed on a row a postback occurs so I can enable a toolbar.

2. When the toolbar button is clicked a radWindow is opened with some parameters relating to the currently selected row.

In the main this all works fine however there is an issue - after the first postback and the window is opened and then closed any subsequent postbacks reopens the previously closed window.

I've set DestroyOnClose to true for the window but this doesn't seem to make any difference.

Thanks in advance for any assistance,

Kirk

3 Answers, 1 is accepted

Sort by
0
Phil
Top achievements
Rank 2
answered on 20 May 2010, 05:48 PM
Hi Kirk:
User to user...
I use 'Context Menus' on my grids.  See:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx?product=menu

Phil

PS For Windows, you need to use Ajax, not code behind to launch you windows.  That gets rid of the postback reloading the window.
0
Kirk Potter
Top achievements
Rank 1
answered on 21 May 2010, 09:24 AM
Hi Phil,

Thanks for your reply - I'm trying to avoid using Context Menus - I'm implementing a "Ribbon Bar" as an alternative.

I'm not sure what you mean about using Ajax rather than code behind to launch the windows.  How would I launch the window using Ajax?

Thanks,

Kirk
0
Phil
Top achievements
Rank 2
answered on 06 Mar 2011, 09:17 PM
<telerik:RadWindowManager ID="orderMaintenanceRadWindowManager" runat="server"
        EnableViewState="False" onclientclose="refreshGrid">
    <Windows>
        <telerik:RadWindow ID="orderDetailsEditOpenWindow" runat="server"
            Modal="true" VisibleOnPageLoad="false" Height="380" Width="580" VisibleStatusbar="False" />
    </Windows>
</telerik:RadWindowManager>
 
    <script type="text/javascript">
        //<![CDATA[
        function orderDetailsEditOpenWindow(orderNbr, priceMethod, priceDate, systemLine) {
            var winurl = "OrderDetailsEdit.aspx?orderNbr='" + orderNbr + "'";
            // alert(winurl);
            var oWnd = radopen(winurl, "orderDetailsEditOpenWindow");
            return false;
        }
        //]]>
    </script>
Tags
Grid
Asked by
Kirk Potter
Top achievements
Rank 1
Answers by
Phil
Top achievements
Rank 2
Kirk Potter
Top achievements
Rank 1
Share this question
or