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

modal popup not showing on edit item click

1 Answer 285 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 04 Jun 2013, 06:29 PM
I am trying to show the same modal popup that I show when  I insert an item into my grid but the modalpup will not show when I click the edit linkbutton, I tried changing hte defualt insert button from radgrid to command template link button and it also would not pull up the popup.

So at this point I am lost as to what to do.  I tried taking the modalpop out of the updatepanel and it still would not call the popup.
This used to work in telerik grids.  This works like I said it loads the popup on and insert new record but not on my edit linkbutton.

<telerik:RadGrid ID="myRadGrid" runat="server" Width="80%" Skin="Web20" CssClass="dvGridWrapper">
                <MasterTableView AutoGenerateColumns="false" Font-Size="10" DataKeyNames="intRecruiterId" CommandItemDisplay="Top">
                    <HeaderStyle ForeColor="White" Font-Bold="true" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center"/>
                    <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" />
                    <Columns>
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%# bind("intRecruiterId") %>' CommandName="EditRec" Text="Edit"></asp:LinkButton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
 
 Protected Sub myRadGrid_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles myRadGrid.ItemCommand
        If (e.CommandName = RadGrid.InitInsertCommandName) Then
            ddlRecItems()
        End If
 
        If (e.CommandName = "EditRec") Then
            Dim RecId As Integer = CInt(e.CommandArgument)
            HFEditRec.Value = RecId
            FillPopup(RecId)
            pnlRecruiter_MPE.Show()
        End If
    End Sub
 
 
 
1st piece of the modalpopup
 <asp:UpdatePanel ID="udp1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="lnkSubmit" />
            <asp:AsyncPostBackTrigger ControlID="lnkCancel" />
        </Triggers>
        <ContentTemplate>
            <asp:panel ID="pnlRecruiter" runat="server" Style="display:none" CssClass="RecruiterWindow">
                <table style="width:100%">




























































1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 07 Jun 2013, 04:24 PM
Hello Kevin,

Can you provide a live URL where the described problem can be observed, so we can inspect it locally?

Regards,
Pavlina
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
Kevin
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or