Hi Team,
i have a grid which is having some rows in it.I need to implement editing functionality for each row in the grid.
i am using the editmode=batch properity for this to achieve.
once edit has completed i need to update the changes in the database when i click on the save changes button.
and also cancel changes by clicking on the cancel button.
i am also need to implement add a new record and update the new record in to the database.
ASPX File:
<telerik:RadGrid ID="RadGrid1" OnItemDataBound="RadGrid1_OnItemDataBound"
runat="server" AutoGenerateColumns="false" CssClass="TransferGridPanel" Height="375px"
Width="500px" OnNeedDataSource="RadGrid1_NeedDataSource" AllowAutomaticUpdates="True" AllowAutomaticInserts="True" onItemUpdated="RadGrid1_ItemUpdated"
OnBatchEditCommand="RadGrid1_BatchEditCommand" OnItemInserted="RadGrid1_ItemInserted"
OnItemCommand="RadGrid1_ItemCommand" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged">
<MasterTableView ShowHeadersWhenNoRecords="true" CommandItemDisplay="Top" EditMode="Batch">
<BatchEditingSettings EditType="Cell" />
<Columns>
<telerik:GridBoundColumn UniqueName="Id" DataField="Loading_ID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="TerminalId" DataField="Plant_ID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="TerminalName" DataField="TerminalName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="StartTime" dataField="LoadingStartTime">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="EndTime" DataField="LoadingEndTime">
</telerik:GridBoundColumn>
</Columns>
How to achieve the above operations in codebehind file.
i have a grid which is having some rows in it.I need to implement editing functionality for each row in the grid.
i am using the editmode=batch properity for this to achieve.
once edit has completed i need to update the changes in the database when i click on the save changes button.
and also cancel changes by clicking on the cancel button.
i am also need to implement add a new record and update the new record in to the database.
ASPX File:
<telerik:RadGrid ID="RadGrid1" OnItemDataBound="RadGrid1_OnItemDataBound"
runat="server" AutoGenerateColumns="false" CssClass="TransferGridPanel" Height="375px"
Width="500px" OnNeedDataSource="RadGrid1_NeedDataSource" AllowAutomaticUpdates="True" AllowAutomaticInserts="True" onItemUpdated="RadGrid1_ItemUpdated"
OnBatchEditCommand="RadGrid1_BatchEditCommand" OnItemInserted="RadGrid1_ItemInserted"
OnItemCommand="RadGrid1_ItemCommand" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged">
<MasterTableView ShowHeadersWhenNoRecords="true" CommandItemDisplay="Top" EditMode="Batch">
<BatchEditingSettings EditType="Cell" />
<Columns>
<telerik:GridBoundColumn UniqueName="Id" DataField="Loading_ID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="TerminalId" DataField="Plant_ID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="TerminalName" DataField="TerminalName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="StartTime" dataField="LoadingStartTime">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="EndTime" DataField="LoadingEndTime">
</telerik:GridBoundColumn>
</Columns>
How to achieve the above operations in codebehind file.