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

How to get column of the selected cell

4 Answers 129 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 28 Oct 2015, 01:38 PM

Hello support,

how can I get the selected cell within a TreeListView?

With TreeListView.SelectedItem I get the whole row (mark yellow in attached image), but how can I get the column of the selected cell (see image)?

I need this information to display a summary of the selected column.

 Thanks in advance

Marcus

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Oct 2015, 04:58 PM
Hello Marcus,

The column of each cell can be found through its Column (or DataColumn if it is of type GridViewDataColumn) property. For example:
var column = this.clubsGrid.CurrentCell.Column;

If you want to get always the column to which the current cell belongs, you can work directly with CurrentColumn property of RadTreeListView. 


Regards,
Maya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Marcus
Top achievements
Rank 1
answered on 16 Nov 2015, 03:42 PM

Hello Maya,

your post helps me.

But now the next problem: I use "TreeListView.SelectionChanged" for recognizing changes in selction. But this event is not fired when I click on cells in the same selcted row one after another. How can I solve this?

Regards

Marcus

0
Accepted
Maya
Telerik team
answered on 17 Nov 2015, 07:26 AM
Hello Marcus,

You can try working with CurrentCellChanged event in this case. Please give it a try and let me know whether it meets your requirements. 


Regards,
Maya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Marcus
Top achievements
Rank 1
answered on 17 Nov 2015, 02:53 PM

Hello Maya,

 this works as expected.

Thanks a lot.

Marcus

Tags
TreeListView
Asked by
Marcus
Top achievements
Rank 1
Answers by
Maya
Telerik team
Marcus
Top achievements
Rank 1
Share this question
or