My development environtment
OS: WinXP
Browser: IE 7.0.5731
RadTools: Version=2008.2.826.20
.Net: 2.0
I am trying to edit information in a nested radgrid. I want to make Line 22-23 a DropDownlist box, that will allow a user to choose a different Assigned User upon Edit. The page runs fine when it is just a GridBoundColumn as you can see in this image:
Sample of my Nested Grid
Here is the code that is running the nested grid on the bottom:
When I add a GridDropDown Column such as:
It won't load up the nested grid for me to edit and test to make sure I am putting the correct control in there.
Have I set up my nested grids correctly? If so, what else do I need to do to get my nested grid to allow an editable dropdown list?
OS: WinXP
Browser: IE 7.0.5731
RadTools: Version=2008.2.826.20
.Net: 2.0
I am trying to edit information in a nested radgrid. I want to make Line 22-23 a DropDownlist box, that will allow a user to choose a different Assigned User upon Edit. The page runs fine when it is just a GridBoundColumn as you can see in this image:
Sample of my Nested Grid
Here is the code that is running the nested grid on the bottom:
| <telerik:RadGrid ID="rgGroupInformation" runat="server" AutoGenerateColumns="False" | |
| GridLines="None" Skin="Office2007" OnDetailTableDataBind="rgGroupInformation_DetailTableDataBind" | |
| OnEditCommand="rgGroupInformation_EditCommand" OnItemCreated="rgGroupInformation_ItemCreated"> | |
| <MasterTableView EditMode="InPlace" DataKeyNames="BatchGroupId"> | |
| <DetailTables> | |
| <telerik:GridTableView runat="server" DataKeyNames="BatchId" DataMember="GroupDetails"> | |
| <ParentTableRelation> | |
| <telerik:GridRelationFields DetailKeyField="BatchGroupId" MasterKeyField="BatchGroupId" /> | |
| </ParentTableRelation> | |
| <RowIndicatorColumn> | |
| <HeaderStyle Width="20px" /> | |
| </RowIndicatorColumn> | |
| <ExpandCollapseColumn> | |
| <HeaderStyle Width="20px" /> | |
| </ExpandCollapseColumn> | |
| <Columns> | |
| <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Edit"> | |
| </telerik:GridButtonColumn> | |
| <telerik:GridBoundColumn DataField="CustodianName" HeaderText="Custodian" ReadOnly="True" | |
| UniqueName="Custodian"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="AssignedUser" HeaderText="Assigned User" UniqueName="AssignedUser"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="Priority" HeaderText="Priority" UniqueName="Priority"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridCheckBoxColumn DataField="OnHold" HeaderText="On Hold" UniqueName="OnHold"> | |
| </telerik:GridCheckBoxColumn> | |
| <telerik:GridBoundColumn DataField="StartDocRange" HeaderText="Start Doc Range" ReadOnly="True" | |
| UniqueName="StartDocRange"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="EndDocRange" HeaderText="End Doc Range" ReadOnly="True" | |
| UniqueName="EndDocRange"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="DocumentCount" HeaderText="Document Count" UniqueName="DocCount"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridTemplateColumn UniqueName="TemplateColumn1"> | |
| <ItemTemplate> | |
| <asp:LinkButton ID="imgBtnDelete" runat="server" CausesValidation="False" CommandArgument="" | |
| CommandName="Delete" ForeColor="#044A7E" OnClientClick="javascript:if(!confirm('This action will delete the selected batch. Are you sure?')){return false;}" | |
| Text="Delete" /> | |
| </ItemTemplate> | |
| <HeaderStyle Width="8%" /> | |
| </telerik:GridTemplateColumn> | |
| </Columns> | |
| </telerik:GridTableView> | |
| </DetailTables> | |
| <RowIndicatorColumn> | |
| <HeaderStyle Width="20px" /> | |
| </RowIndicatorColumn> | |
| <ExpandCollapseColumn Visible="True"> | |
| <HeaderStyle Width="20px" /> | |
| </ExpandCollapseColumn> | |
| <Columns> | |
| <telerik:GridTemplateColumn UniqueName="TemplateColumn"> | |
| <ItemTemplate> | |
| <asp:LinkButton ID="imgBtnEdit" runat="server" CommandName="" ForeColor="#044A7E" | |
| Text="Edit" /> | |
| </ItemTemplate> | |
| <HeaderStyle Width="7%" /> | |
| </telerik:GridTemplateColumn> | |
| <telerik:GridBoundColumn DataField="CriteriaValue" HeaderText="Criteria Value" ReadOnly="True" | |
| UniqueName="CriteriaValue"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="BatchCount" HeaderText="Batch Count" ReadOnly="True" | |
| UniqueName="BatchCount"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="Priority" HeaderText="Priority" ReadOnly="True" | |
| UniqueName="Priority"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="OnHold" HeaderText="On Hold" ReadOnly="True" | |
| UniqueName="OnHold"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridTemplateColumn UniqueName="TemplateColumn1"> | |
| <ItemTemplate> | |
| <asp:LinkButton ID="imgBtnDelete" runat="server" CausesValidation="False" CommandArgument="" | |
| CommandName="Delete" ForeColor="#044A7E" OnClientClick="javascript:if(!confirm('This action will delete the selected batch. Are you sure?')){return false;}" | |
| Text="Delete" /> | |
| </ItemTemplate> | |
| <HeaderStyle Width="8%" /> | |
| </telerik:GridTemplateColumn> | |
| </Columns> | |
| </MasterTableView> | |
| <FilterMenu EnableTheming="True"> | |
| <CollapseAnimation Duration="200" Type="OutQuint" /> | |
| </FilterMenu> | |
| </telerik:RadGrid> |
When I add a GridDropDown Column such as:
| <telerik:GridDropDownColumn UniqueName="DropDownListColumn" |
| ListTextField="AssignedUser" ListValueField="AssignedUser" |
| HeaderText="Assigned User" DataField="AssignedUser" > |
| </telerik:GridDropDownColumn> |
It won't load up the nested grid for me to edit and test to make sure I am putting the correct control in there.
Have I set up my nested grids correctly? If so, what else do I need to do to get my nested grid to allow an editable dropdown list?