Hi ,
I want to use TreeList on a page. I have some questions about the TreeList control.
1. I want to add a filter for the treelist,just like the filter for RadGrid. How to achieve that?
2. I put a TemplateColumn in the treelist, and I want to display a hyper link in for a column, as
<telerik:radtreelist id="EntityGrid" runat="server" autogeneratecolumns="false" datakeynames="RecordID"
parentdatakeynames="ParentID">
<Columns>
<telerik:TreeListTemplateColumn UniqueName="ImageHLColHeader" HeaderText="">
<ItemTemplate>
<asp:HyperLink ID="imageHLCol" runat="server" NavigateUrl=<%# Eval("NavURL") %> ImageUrl=<%# Eval("NavImageURL") %> ></asp:HyperLink>
</ItemTemplate>
<HeaderStyle Width="35px" />
</telerik:TreeListTemplateColumn>
</Columns>
</telerik:radtreelist>
But the column could not be displayed. It always show empty column in the UI. No hyperlink is shown up. Seems like the hyperlink is ignored. I even try:
<ItemTemplate>
<%# Eval("RecordID") %>
</ItemTemplate>
But still could not see anything shown up in the UI. What's wrong?
3. I changed the itemTemplate as
<asp:HyperLink ID="imageHLCol" runat="server"></asp:HyperLink>
and I want to set the navigateURL and ImageURL when the event ItemDataBound is triggered. But I could not find the hyperLink control in that event.
TryCast(e.Item, TreeListDataItem)("ImageHLColHeader").FindControl("imageHLCol") always return nothing. What's wrong?
Need urgent help. Thank you very very very much.
I want to use TreeList on a page. I have some questions about the TreeList control.
1. I want to add a filter for the treelist,just like the filter for RadGrid. How to achieve that?
2. I put a TemplateColumn in the treelist, and I want to display a hyper link in for a column, as
<telerik:radtreelist id="EntityGrid" runat="server" autogeneratecolumns="false" datakeynames="RecordID"
parentdatakeynames="ParentID">
<Columns>
<telerik:TreeListTemplateColumn UniqueName="ImageHLColHeader" HeaderText="">
<ItemTemplate>
<asp:HyperLink ID="imageHLCol" runat="server" NavigateUrl=<%# Eval("NavURL") %> ImageUrl=<%# Eval("NavImageURL") %> ></asp:HyperLink>
</ItemTemplate>
<HeaderStyle Width="35px" />
</telerik:TreeListTemplateColumn>
</Columns>
</telerik:radtreelist>
But the column could not be displayed. It always show empty column in the UI. No hyperlink is shown up. Seems like the hyperlink is ignored. I even try:
<ItemTemplate>
<%# Eval("RecordID") %>
</ItemTemplate>
But still could not see anything shown up in the UI. What's wrong?
3. I changed the itemTemplate as
<asp:HyperLink ID="imageHLCol" runat="server"></asp:HyperLink>
and I want to set the navigateURL and ImageURL when the event ItemDataBound is triggered. But I could not find the hyperLink control in that event.
TryCast(e.Item, TreeListDataItem)("ImageHLColHeader").FindControl("imageHLCol") always return nothing. What's wrong?
Need urgent help. Thank you very very very much.