Hey,
I call a method OnItemDatabound that loads a Control for the ItemTemplate. This works fine, however always at the top of the list the default ItemTemplate from the Markup shows?
Why is my default ItemTemplate showing in my list??
I always see the default "
If I remove the <ItemTemplate> Then I see the contents of the EmptyDataTemplate only, and If I remove that my list becomes empty all together?
I call a method OnItemDatabound that loads a Control for the ItemTemplate. This works fine, however always at the top of the list the default ItemTemplate from the Markup shows?
Why is my default ItemTemplate showing in my list??
I always see the default "
THIS IS THE DEFAULT TEMPLATE" at the top of my list and then the real list items display below that.If I remove the <ItemTemplate> Then I see the contents of the EmptyDataTemplate only, and If I remove that my list becomes empty all together?
<telerik:RadListView ID="rlvJobsListPage" runat="server" ItemPlaceholderID="phJobsList" DataSourceId="objJobList" OnItemDataBound="rlvJobsListPage_ItemDataBound" AllowCustomPaging="true" AllowPaging="true" PageSize="20" AllowSorting="True"> <LayoutTemplate> <div id="searchList"> <div id="phJobsList" runat="server"> </div> </div> </LayoutTemplate> <EmptyDataTemplate> No records found </EmptyDataTemplate> <ItemTemplate> THIS IS THE DEFAULT TEMPLATE<br /> </ItemTemplate> </telerik:RadListView>protected void rlvJobsListPage_ItemDataBound(object sender, Telerik.Web.UI.RadListViewItemEventArgs e){ // Set each bound item to status "Loaded" if (e.Item is RadListViewDataItem) { RadListViewDataItem thisDataItem = (RadListViewDataItem)e.Item; Job thisListing = (Job)thisDataItem.DataItem; //Determine which template to get from cache Templating listingTemplate = Templating.GetTemplateForListing(thisListing.ListingTemplate); rlvJobsListPage.ItemTemplate = Templating.Render_ITemplate(listingTemplate.TemplatePath, TemplateType.Summary, this); e.Item.DataBind(); }}