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

Opening radWindow In Ragrid

1 Answer 39 Views
Window
This is a migrated thread and some comments may be shown as answers.
Yong
Top achievements
Rank 2
Yong asked on 14 Oct 2008, 03:26 AM
Hi,

I have the following code in my Web User Control

    <telerik:RadGrid ID="ProdTable" runat="server" Width="100%" AutoGenerateColumns="False" GridLines="None" Skin="Office2007" AllowPaging="True" PageSize="5" OnDeleteCommand="ProdTable_DeleteCommand">
        <MasterTableView>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridButtonColumn HeaderText="Serial No. History" Text="View" UniqueName="ProdSerialHist">
                </telerik:GridButtonColumn>
                <telerik:GridBoundColumn DataField="ProdSerialNo" HeaderText="Serial No." UniqueName="ProdSerialNo">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdSerialRemark" HeaderText="Serial No. Remarks" UniqueName="ProdSerialRemark">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdType" HeaderText="Product" UniqueName="ProdType">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdUnitUser" HeaderText="Unit(s) / User(s)" UniqueName="ProdUnitUser">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdCost" HeaderText="Cost" UniqueName="ProdCost" >
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdTotalAmt" HeaderText="Total Amount" UniqueName="ProdTotalAmt" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridButtonColumn CommandName="Delete" ConfirmText="1 Record Will Be Deleted, Confirm?" ConfirmTitle="Deleting record" Text="Delete" UniqueName="ProdTableDelete">
                </telerik:GridButtonColumn>
            </Columns>
        </MasterTableView>
        <FilterMenu EnableTheming="True" Skin="Office2007">
            <CollapseAnimation Duration="200" Type="OutQuint" />
        </FilterMenu>
    </telerik:RadGrid>

<telerik:RadWindow ID="SerialHistoryWindow" runat="server" Width="400px" OpenerElementID="Button 1">
                <telerik:RadGrid id="SerialNoTable" runat="server" AutoGenerateColumns="False" GridLines="None" Width="400px" Skin="Office2007" OnNeedDataSource="SerialNoTable_NeedDataSource">
                    <mastertableview>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="ProductSerialNo" HeaderText="Serial No." UniqueName="ProductSerialNo"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ProductSerialRemarks" HeaderText="Remarks" UniqueName="ProductSerialRemarks"></telerik:GridBoundColumn>
</Columns>
</mastertableview>
                    <filtermenu enabletheming="True" Skin="Office2007">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</filtermenu>
                </telerik:RadGrid></telerik:RadWindow>


How do i open the RadWindow from the radgrid and from this column

<telerik:GridButtonColumn HeaderText="Serial No. History" Text="View" UniqueName="ProdSerialHist">

using codebehind









1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 16 Oct 2008, 10:34 AM
Hello Yong,

You can open RadWindow from codebehind by setting its VisibleOnPageLoad property to true. For more information on RadWindow server-side, please check documentation, section Controls / RadWindow / Programming / Setting Server-Side Properties.



Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Yong
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question
or