Hi
We are using Rad Grid in our application to perform inline Edit.
The issue we have with inline edit is that When I double click the row to perform edit the first and the second row does not return GridDataItem instead it returns GridTHead and GridTFoot.
To be clear we are not using any CommandItemTemplate and the mastertableview commandItemDisplay property is set to None.
Explanation:
After double clicking the first row the RaisepostBack event is invoked from the code Behind based on the eventtarget and eventargument we are passing the index of the row to fetch the GridDataItem
The above code always return GridTHead and GridTFoot for the first and second row by default.
Below is the code which for rad grid in the aspx page.
<telerik:RadGrid ID="rdGrid" runat="server" Width="100%" Height="100%" OnItemUpdated="rdGrid_ItemUpdated"
OnSortCommand="rdGrid_SortCommand" OnColumnCreated="rdGrid_ColumnCreated"
OnNeedDataSource="rdGrid_NeedDataSource" OnItemCommand="rdGrid_ItemCommand"
OnItemCreated="rdGrid_ItemCreated" OnItemDataBound="rdGrid_ItemDataBound" CommandItemDisplay="None" AllowAutomaticUpdates="true">
<PagerStyle Mode="NextPrevNumericAndAdvanced" ></PagerStyle>
<MasterTableView Width="100%" DataMember="col1" DataKeyNames="col2" CommandItemDisplay="None">
<Columns>
Controls
</columns>
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" />
</ClientSettings>
</telerik:RadGrid>
It would be helpful if you can give me some suggestion or with sample code to perform the double click inline edit from the RaisePostBack event.
Whatever sample provided in the Telerik URL for the help does not perform edit based on the RaisePostBack event.
I have already gone through the Telerik help for the Grid Inline edit with Rowdblclick and RowClick.
Bose Thirumalai
We are using Rad Grid in our application to perform inline Edit.
The issue we have with inline edit is that When I double click the row to perform edit the first and the second row does not return GridDataItem instead it returns GridTHead and GridTFoot.
To be clear we are not using any CommandItemTemplate and the mastertableview commandItemDisplay property is set to None.
Explanation:
After double clicking the first row the RaisepostBack event is invoked from the code Behind based on the eventtarget and eventargument we are passing the index of the row to fetch the GridDataItem
GridItem
item = ((rdGrid.MasterTableView.Controls[0] as Table).Rows[int.Parse(postBackEventArgumentData[1])] as GridItem);
The above code always return GridTHead and GridTFoot for the first and second row by default.
Below is the code which for rad grid in the aspx page.
<telerik:RadGrid ID="rdGrid" runat="server" Width="100%" Height="100%" OnItemUpdated="rdGrid_ItemUpdated"
OnSortCommand="rdGrid_SortCommand" OnColumnCreated="rdGrid_ColumnCreated"
OnNeedDataSource="rdGrid_NeedDataSource" OnItemCommand="rdGrid_ItemCommand"
OnItemCreated="rdGrid_ItemCreated" OnItemDataBound="rdGrid_ItemDataBound" CommandItemDisplay="None" AllowAutomaticUpdates="true">
<PagerStyle Mode="NextPrevNumericAndAdvanced" ></PagerStyle>
<MasterTableView Width="100%" DataMember="col1" DataKeyNames="col2" CommandItemDisplay="None">
<Columns>
Controls
</columns>
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" />
</ClientSettings>
</telerik:RadGrid>
It would be helpful if you can give me some suggestion or with sample code to perform the double click inline edit from the RaisePostBack event.
Whatever sample provided in the Telerik URL for the help does not perform edit based on the RaisePostBack event.
I have already gone through the Telerik help for the Grid Inline edit with Rowdblclick and RowClick.
Your earliest help is appreciated
RegardsBose Thirumalai