Hi,
In this example, instead of the label, if I have a dropdown list, how do I databind it?
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplatedeclarativerelations/defaultcs.aspx
Here's my code:
I have got it to work, the data is returned by the datalayer, but it is not getting bound to the dropdownlist.
Thanks in advance!
In this example, instead of the label, if I have a dropdown list, how do I databind it?
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplatedeclarativerelations/defaultcs.aspx
Here's my code:
<NestedViewSettings DataSourceID="odsContactDetails"> |
<ParentTableRelation> |
<telerik:GridRelationFields DetailKeyField="CrmEntityId" MasterKeyField="CrmEntityId" /> |
</ParentTableRelation> |
</NestedViewSettings> |
<NestedViewTemplate> |
<asp:Panel ID="pnlContactInfo" runat="server"> |
<asp:DropDownList ID="ddlPhones" runat="server" DataTextField="Phone" DataValueField="Phone"/> |
<asp:DropDownList ID="ddlEmails" runat="server" DataTextField="Email" DataValueField="Email"/> |
</asp:Panel> |
</NestedViewTemplate> |
..... |
<asp:ObjectDataSource ID="odsContactDetails" runat="server" |
SelectMethod="GetContactInfo" TypeName="FVS.ControllerCRM.CRMDataControl"> |
<SelectParameters> |
<asp:Parameter Name="crmEntityId" Type="String" /> |
</SelectParameters> |
</asp:ObjectDataSource> |
I have got it to work, the data is returned by the datalayer, but it is not getting bound to the dropdownlist.
Thanks in advance!