Hi,
I have a grid which is edited in a pop up window (edit form). One field that is edited should be an inner data list, that can be added with editable rows. Trying to define an inner asp datalist leads to confusion between the edit commands on the grid and on the datalist.
What is the recommended way to design an inner editable list (or grid) like the one mentioned above and can be seen in this link?
edit user EditFrom
my code:
Thanks in advanced,
Ruth
![]()
I have a grid which is edited in a pop up window (edit form). One field that is edited should be an inner data list, that can be added with editable rows. Trying to define an inner asp datalist leads to confusion between the edit commands on the grid and on the datalist.
What is the recommended way to design an inner editable list (or grid) like the one mentioned above and can be seen in this link?
edit user EditFrom
my code:
<asp:DataList ID="AgentsDataList2" runat="server" DataSourceID="UserAgentsDatasource" |
OnEditComman="DataList2_EditCommand" DataKeyField="UserId"> |
<EditItemTemplate> |
<telerik:RadTextBox ID="tbdlAgentId" runat="server" Text='<%# Bind("AgentId") %>'> |
</telerik:RadTextBox> |
<telerik:RadComboBox ID="cmbdlSwitches" runat="server" DataSourceID="SwitchesDatasource" |
DataTextField="Value" DataValueField="Key" Skin="Office2007"> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
</telerik:RadComboBox> |
<asp:LinkButton ID="LinkButton1" runat="server" CommandName="update"> |
</asp:LinkButton> |
|
<asp:LinkButton ID="LinkButton2" runat="server" CommandName="cancel"> |
</asp:LinkButton> |
</EditItemTemplate> |
<ItemTemplate> |
<asp:Label ID="lblAgentId" runat="server" Text='<%# Eval("AgentId") %>' /> |
|
<asp:Label ID="lblSwitches" runat="server" Text='<%# Eval("SwitchId") %>' /> |
|
<asp:LinkButton runat="server" ID="LinkButton1" CommandName="Edit"> Edit |
</asp:LinkButton> |
</ItemTemplate> |
</asp:DataList> |
</telerik:RadPageView> |
</telerik:RadMultiPage> |
<script runat="server"> |
protected void DataList2_EditCommand(object source, |
DataListCommandEventArgs e) |
{ |
//something here... |
int x = e.Item.ItemIndex; |
} |
</script> |
Thanks in advanced,
Ruth