GridTemplate Column with LinkButton not firing OnItemCommand

2 posts, 0 answers
  1. Rodney
    Rodney avatar
    54 posts
    Member since:
    Mar 2015

    Posted 03 Oct 2017 Link to this post

    I've done this several times in the past, but the one I just added will not work. I have a GridTemplateColumn with several LinkButtons with various CommandNames and CommandArguments. When you click on the link nothing happens, the OnCommandItem code is never hit. I'm not sure what I'm missing, I even have another one on t


    Heres the code and the markup


    protected void rgTCDashboard_ItemCommand(object sender, GridCommandEventArgs e)
        if (e.Item is GridDataItem)
            GridDataItem item = (GridDataItem)e.Item;
            switch (e.CommandName)
                case "E2IAdd":
                    PageHelper.rwShowOpen(rwCERActivities.ClientID, this.Page);
                case "VREAdd":
                    PageHelper.rwShowOpen(rwCERActivities.ClientID, this.Page);
                case "VREPending":
                    PageHelper.rwShowOpen(rwCERActivities.ClientID, this.Page);


    <telerik:GridTemplateColumn HeaderText="VR&E 1-on-1" UniqueName="VRE" AllowSorting="false" AllowFiltering="false" 
        ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
            <asp:Image ID="imgVRE" runat="server" Visible='<%# (string)Eval("VRE") == "Done" %>' ImageUrl="../../Images/CheckMarkMedium.png"  />
            <asp:LinkButton ID="lkbVREAdd" runat="server" Text="Add" Visible='<%# (string)Eval("VRE") == "Add" %>' CommandArgument='<%# "CerId" %>' CommandName="VREAdd" />
            <asp:LinkButton ID="lkbVREPending" runat="server" Text="Pending" Visible='<%# (string)Eval("VRE") == "Pending" %>' CommandArgument='<%# "CerId" %>' CommandName="VREPending" />


  2. Eyup
    Eyup avatar
    4079 posts

    Posted 06 Oct 2017 Link to this post

    Hello Rodney,

    I've already replied to your query in the official support thread for the same matter. I suggest that we continue our technical conversation on the mentioned thread.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top