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

Modalpopup with Radgrid

1 Answer 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 09 Oct 2013, 08:57 PM
Is it possible to put an entire radgrid within modalpopupextender? If so, does anyone have a simple example on how to do this?

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 14 Oct 2013, 12:48 PM
Hello Brad,

Please refer to the code snippet bellow that shows how to display RadGrid in ModalPopupExtender:
<ajaxToolkit:ToolkitScriptManager EnablePartialRendering = "true" runat = "Server" ID = "ScriptManager1" />
 
<asp:Button ID="Button1" runat="server" Text="Button" />
 
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
    CancelControlID="btnCancel" OkControlID="btnOkay"
    TargetControlID="Button1" PopupControlID="Panel1"
    PopupDragHandleControlID="PopupHeader"
    BackgroundCssClass="ModalPopup">
</ajaxToolkit:ModalPopupExtender>
 
<asp:Panel ID="Panel1" Style="display: none" runat="server">
    <div>
        <div class="PopupHeader" id="PopupHeader">Header</div>
        <div class="PopupBody">
            <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"></telerik:RadGrid>
        </div>
        <div class="Controls">
            <input id="btnOkay" type="button" value="Done" />
            <input id="btnCancel" type="button" value="Cancel" />
        </div>
    </div>
</asp:Panel>

Hope that helps.

 

Regards,
Konstantin Dikov
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
Grid
Asked by
Brad
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or