So I've created a grid that has a number of template columns that should remain entirely in "edit mode" (I set this in my C# code) so that I can edit my grid "live" (Excel like). Below is just a portion of my grid. When I'm trying to do the update, however, I don't know how to read the values from each cell in the grid. I've tried to do loops such as Radgrid1.Items[i].Cells[j], and Radgrid1.Items[i].ExtractValues. I've also followed the batch update on this site but this doesn't work either. The question comes down to: How can I get data from each cell of the RadGrid. The cells can be anything from drop down menus to text boxes. Any help would be greatly appreciated
-Matt
-Matt
| <telerik:RadGrid ID="RadGrid1" runat="server" Width="70%" AllowPaging="True" |
| Height="400px" AllowMultiRowEdit="True" |
| BorderColor="Black" BorderWidth="1px" |
| onselectedindexchanged="RadGrid1_SelIndexChange" |
| onprerender="RadGrid1_PreRender" |
| OnItemCommand="RadGrid1_ItemCommand" |
| onNeedDataSource="RadGrid1_NeedDataSource1" onitemdatabound="RadGrid1_ItemDataBound" |
| AllowAutomaticUpdates="True" |
| > |
| <AlternatingItemStyle BackColor="#E8E8E8" Font-Bold="False" Font-Italic="False" |
| Font-Overline="False" Font-Strikeout="False" Font-Underline="False" |
| Wrap="True" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" /> |
| <MasterTableView AutoGenerateColumns="False" |
| Width="100%" BorderColor="Black" BorderWidth="0px" GridLines="None" |
| EditMode="InPlace" |
| CommandItemDisplay="TopAndBottom" > |
| <Columns> |
| <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" /> |
| <telerik:GridTemplateColumn UniqueName="DeleteColumn" HeaderStyle-Width="70px"> |
| <EditItemTemplate> |
| <asp:Button ID="DeleteButton" runat="server" Text="Delete" /> |
| </EditItemTemplate> |
| <HeaderStyle Width="70px"></HeaderStyle> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn DataField="role" HeaderText="Role" |
| SortExpression="role" UniqueName="role" HeaderStyle-Width="150px"> |
| <EditItemTemplate> |
| <asp:Label ID="roleLabel" runat="server" Text='<%# Eval("role") %>' Width="150px"></asp:Label> |
| </EditItemTemplate> |
| <HeaderTemplate> |
| <asp:Label ID="rol_label" runat="server" Text="Role"></asp:Label> |
| </HeaderTemplate> |
| </Columns> |
| <CommandItemTemplate> |
| <asp:Button runat="server" ID="UpdateAll" Text="Update All" CommandName="UpdateAll" /></CommandItemTemplate> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| <Scrolling ScrollHeight="100%" AllowScroll="True" /> |
| <resizing allowcolumnresize="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
