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

GridEditCommandColumn Not Allowing Click

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
infoweshanney
Top achievements
Rank 2
infoweshanney asked on 11 Aug 2015, 07:31 PM

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

1 Answer, 1 is accepted

Sort by
0
infoweshanney
Top achievements
Rank 2
answered on 12 Aug 2015, 03:21 PM
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.
Tags
Grid
Asked by
infoweshanney
Top achievements
Rank 2
Answers by
infoweshanney
Top achievements
Rank 2
Share this question
or