GridEditCommandColumn Not Allowing Click

2 posts, 0 answers
  1. infoweshanney
    infoweshanney avatar
    9 posts
    Member since:
    Aug 2014

    Posted 11 Aug 2015 Link to this post

    Hey Guys,

    So I setup a basic RadGrid (see below) with a few columns only to discover that both the GridEditCommandColumn, PerformInsertButton and CancelButton don't do anything when clicked. Any ideas?

     ASPX

    <telerik:RadGrid ID="rgIssuers" runat="server" AutoGenerateColumns="False">
        <MasterTableView DataKeyNames="ID" EditMode="InPlace" CommandItemDisplay="Top">
            <CommandItemSettings
                ShowAddNewRecordButton="true"
                ShowRefreshButton="true"                        
                ShowExportToExcelButton="false"
                ShowExportToWordButton="false"
                ShowExportToPDFButton="false"
                ShowExportToCSVButton="false"
                AddNewRecordText="Add New Issuer" />
            <Columns>
     
                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn" >
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle Width="35px" />
                </telerik:GridEditCommandColumn>
                         
                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                    UniqueName="DeleteColumn" ConfirmText="Delete this Issuer?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" >
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle Width="35px" />
                </telerik:GridButtonColumn>
     
                <telerik:GridBoundColumn DataField="Name" UniqueName="Name" DataType="System.String" HeaderText="Name"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="AccessCode" UniqueName="AccessCode" DataType="System.String" HeaderText="Access Code"></telerik:GridBoundColumn>
                <telerik:GridTemplateColumn DataField="SupportedAssertions" UniqueName="SupportedAssertions" DataType="System.Int32" HeaderText="Supported Assertions">
                    <ItemTemplate>
                        <asp:Label id="lblSupportedAssertions" runat="server"></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadListBox ID="lbSupportedAssertions" runat="server" SelectionMode="Multiple"></telerik:RadListBox>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Target">
                    <ItemTemplate>
                        <asp:Label id="lblTarget" runat="server"></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
     
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

    ASPX.VB

    Protected Sub rgIssuers_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs) Handles rgIssuers.NeedDataSource
     
        'get our issuers
        rgIssuers.DataSource = Issuer.FindByCLC(_csAC, _strCLC)
     
    End Sub

  2. infoweshanney
    infoweshanney avatar
    9 posts
    Member since:
    Aug 2014

    Posted 12 Aug 2015 Link to this post

    Ok. So the issue turned out to be something with the application itself. Adding an empty custom validator to the page allowed the PostBack as expected.
Back to Top