Images not displaying

2 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    22 posts
    Member since:
    Apr 2013

    Posted 22 May 2013 Link to this post

    Hi All,

    I am using RadTreeList, in which i have a TreeListSelectColumn and a template column for image , I am binding the treelist and it displays it correctly but when I click on any checkbox the image dissappear. could anybody help on this .

    Regards,
    Sandeep
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 May 2013 Link to this post

    Hi,

    I have tried to replicate the issue and the below code worked as expected on my end.
    ASPX:
    <telerik:RadTreeList ID="RadTreeList1" runat="server" DataSourceID="SqlDataSource1" DataKeyNames="EmployeeID" AutoGenerateColumns="false" ParentDataKeyNames="ReportsTo">
    <Columns>
      <telerik:TreeListSelectColumn HeaderText="Select">
      </telerik:TreeListSelectColumn>
      <telerik:TreeListTemplateColumn HeaderText="image">
         <ItemTemplate>
          <asp:ImageButton ID="ImageButton 1" runat="server" ImageUrl="~/Images/admin.PNG" AlternateText="img" />
         </ItemTemplate>
      </telerik:TreeListTemplateColumn>
      <telerik:TreeListBoundColumn DataField="EmployeeID" UniqueName="EmployeeID" HeaderText="EmployeeID"/>
      <telerik:TreeListBoundColumn DataField="LastName" UniqueName="LastName" HeaderText="LastName" />
      <telerik:TreeListBoundColumn DataField="FirstName" UniqueName="FirstName" HeaderText="FirstName" />
      <telerik:TreeListBoundColumn DataField="ReportsTo" UniqueName="ReportsTo" HeaderText="Reports To" />
    </Columns>
    </telerik:RadTreeList>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top