This is a migrated thread and some comments may be shown as answers.

Hide extra column for hierarchy indicator

3 Answers 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pawel
Top achievements
Rank 1
Pawel asked on 24 Apr 2014, 10:17 AM

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.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 28 Apr 2014, 07:45 AM
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.
 
0
Pawel
Top achievements
Rank 1
answered on 28 Apr 2014, 07:57 AM
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?
0
Dimitrina
Telerik team
answered on 28 Apr 2014, 09:56 AM
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.
 
Tags
GridView
Asked by
Pawel
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Pawel
Top achievements
Rank 1
Share this question
or