Nested headers cant find feature for getting the precise column data

Hi

Nested Headers
https://docs.handsontable.com/pro/1.16.0/demo-nested-headers.html

Is there a way of using nested headers with the command

view.GTable.getDataAtRowProp(rowNumber, ‘ColName’)

i.e. defining two column names or something similar

view.GTable.getDataAtRowProp(rowNumber, ‘ColName1’, ‘ColName2’)

Thank you if you can help

Sorry @ben.warren

this method runs only for a single column. You’d need to call it twice and concat to get data from 2 columns.

Hi

I’m not after the ability to concat two column names. I would like to get to the data for a specific cell under a (column header and child header which wouldn’t be unique). i.e. It wouldn’t be unique because the parent header would be for the child header.

I take it this isn’t possible ?

I think handsontable is missing some key functionality if not.

Kind Regards

Ben

Nested headers are only a layer of a new Handsontable structure. Whenever you use nestedHeaders or not you still can use physical and visual incides to find a property/key of a cell or add custom cell meta that can be used as additional information for content detection.

Can you share any sample scenario that you would like to cover? I will check if it is possible by using API

Hi

This is about the best I can do with this word editor !

In the example below Columns A,B,C all have the same nested column Names

Column A -> nested Column H and Column I
Column B -> nested Column H and Column I
Column C -> nested Column H and Column I

I would like to get access to the data for Column I under the header Column B.

I cant use this “view.GTable.getDataAtRowProp(10, ‘Column I’)” as there is more than one column header called “Column I”.

Is there any functionality to get the data.

Kind Regards

Ben

Here is a demo that I can propose (with comments on how to use it) http://jsfiddle.net/jkko497k/

Let me know if I am missing anything or misunderstood the case. As in the title you say about column data and then in the comment about row data.