Bonjour , dans un controle RADGrid (Telerik ) j'essaye d'ouvrir un popup quand je clique sur un LinkButton.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
               <telerik:GridButtonColumn Text="Button" UniqueName="column" CommandName="View"/>

Voici mon code ASPX:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" DataSourceID="SqlDataSource2"
        GridLines="None" OnItemCommand="RadGrid1_ItemCommand">
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="idRDV" DataSourceID="SqlDataSource2">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="objet" HeaderText="objet" SortExpression="objet"
                    UniqueName="objet">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="debut" DataType="System.DateTime" HeaderText="debut"
                    SortExpression="debut" UniqueName="debut">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="description" HeaderText="description" SortExpression="description"
                    UniqueName="description">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="lieu" HeaderText="lieu" SortExpression="lieu"
                    UniqueName="lieu">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="idRDV" DataType="System.Int32" HeaderText="idRDV"
                    SortExpression="idRDV" UniqueName="idRDV" ReadOnly="True">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="fin" DataType="System.DateTime" HeaderText="fin"
                    SortExpression="fin" UniqueName="fin">
                </telerik:GridBoundColumn>
               <telerik:GridButtonColumn Text="Button" UniqueName="column" CommandName="View"/>
            </Columns>
        </MasterTableView>
        <HeaderContextMenu EnableAutoScroll="True">
        </HeaderContextMenu>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:IntranetConnectionString %>"
        SelectCommand="SELECT * FROM [rendezvous]"></asp:SqlDataSource>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="pnlview" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <asp:Panel ID="pnlwiew" runat="server">
 
        <asp:LinkButton ID="lnkCopyDummy" runat="server"></asp:LinkButton>
        <cc1:ModalPopupExtender ID="mpview" runat="server" PopupControlID="pnlCopyContainer"
            TargetControlID="lnkCopyDummy" />
 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
 
        <asp:Panel ID="pnlviewContainer" runat="server" Style="display: none;">
        </asp:Panel>
 
    </asp:Panel>
</asp:Content>

Code behind :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
        protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName.ToString() == "View")
            {
                mpview.Show();
            }
        }
Si quelqu'un voit une erreur !
Merci d'avance