Hide extra column for hierarchy indicator

4 posts, 0 answers
  1. Pawel
    Pawel avatar
    39 posts
    Member since:
    Apr 2014

    Posted 24 Apr 2014 Link to this post

    Hello

    I have grid something like in picture gridview.png (attach files) and I am loading data to it depending which action will be triggered by application user.

    I know there are two cases:

    • none of loading data have childrens 
    • all or some of loading data have childrens

    For first case gridview.HierarchyChildTemplate must be equal to null and ChildTableDefinitions should be empty (Count = 0).
    For second case I load DataTemplate for gridView.HierarchyChildTemplate and I add adequate GridViewTableDefinition. But when I am dealing again with first case I do:

    gridview.HierarchyChildTemplate = null<br>
    ChildTableDefinitions.Clear()
    and extra column for hierarchy indicator stays and it should be gone.

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 28 Apr 2014 Link to this post

    Hi,

    I checked the attached image and I can see there is just one column for the hierarchy.
    Would you please point me (mark clearly) where on the picture I can observe the issue?

    Regards,
    Didie
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. Pawel
    Pawel avatar
    39 posts
    Member since:
    Apr 2014

    Posted 28 Apr 2014 Link to this post

    Attached image is just a example of similar grid which I have in my application. Problem is when sometimes I want to load data with hierarchy structure and sometimes I won't. When I do
    gridview.HierarchyChildTemplate = null<br>
    ChildTableDefinitions.Clear()
    extra column for hierarchy indicator doesn't disappear.

    Do you want me to prepare a sample application?
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 28 Apr 2014 Link to this post

    Hello Pawel,

    It would be indeed very helpful if you can provide a sample application illustrating the issue. Having your exact setup I will be able to advise further.

    You can take a look at this blog post for a reference on how to isolate an issue. 

    Regards,
    Didie
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top