Hello,
I have a telerik radgrid with two item templates. Categories are appeared at the left item template and related categories at the right. I would like every time i choose one item at the left side , only one item (one row) to be appeared and not all. Thank you very much.
This is the aspx code:
<
telerik:RadGrid ID="cr" runat="server" AutoGenerateColumns="false" Skin="Vista" EnableViewState="false">
<MasterTableView>
<Columns>
<telerik:GridTemplateColumn HeaderText="">
<ItemTemplate>
<asp:HyperLink runat="server" Text='<%# Eval("sDescr") %>' NavigateUrl='<%# String.Format("CategoryRelations2.aspx?fromCategoryID={0}", Eval("lRow_Id")) %>'></asp:HyperLink>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="">
<ItemTemplate>
<asp:Repeater ID="RelatedCategories" runat="server" DataSource="<%# GetRelatedCategories(Container.DataItem as Category) %>">
<ItemTemplate>
<asp:HyperLink runat="server" Text='<%# Eval("sDescr") %>' NavigateUrl='<%# String.Format("CategoryRelations2.aspx?fromCategoryID={0}&toCategoryID={1}", DataBinder.Eval(Container, "Parent.Parent.Parent.DataItem.lRow_Id"), Eval("lRow_Id")) %>'></asp:HyperLink>
</ItemTemplate>
<SeparatorTemplate>
,
</SeparatorTemplate>
</asp:Repeater>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>