<telerik:RadGrid ID="TelerikRadGrid1" runat="server" ....> <MasterTableView ....> <Columns>
<telerik:GridBoundColumn DataField="CustomerID1DataField" HeaderText="CustomerID1HeaderText" UniqueName="Customer1UniqueName" Visible="false" /> </Columns> <NestedViewTemplate> <div> <telerik:RadGrid ID="TelerikRadGrid2" runat="server" ..... > <MasterTableView> <Columns>
<telerik:GridTemplateColumn HeaderText="Update" ColumnGroupName="Action" AllowFiltering="false"><HeaderStyle Width="40px" />
<ItemTemplate>
<asp:LinkButton ID="MatchButton" runat="server" Text="Match" OnClientClick="MatchConfirm()" OnClick="MatchButton_Click" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="CustomerID2DataField" HeaderText="CustomerID2Text" UniqueName="CustomerID2Unique" Display="false"></telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </div> </NestedViewTemplate> </MasterTableView></telerik:RadGrid>public void MatchButton_Click(object sender, EventArgs e){
// How do I access the "CustomerID1DataField" in TelerikRadGrid1, from this event?
}I am trying to use the “Allow Automatic Updates” option on the Telerik RadGrid control in ASP.net. I thought this would be the easiest way to go but it isn’t working for me. I have a single table with all of the data that needs to be edited and I was going to just turn on the filtering for a quick and easy administrative console for this table. I am using a SQLDataSource as my data source for the grid. This is a single table so none of the hierarchy stuff applies.
Whenever I click edit, change some data and hit update the changes are removed from the form and nothing is updated. Any idea what I am doing wrong? I also don’t see a way to log or see any errors so this is all the info I have.
The sql query is a basic select * from table. No joins or anything.
