Hyperlink Click on Row Header

I have a row header that is setup to have a hyperlink click.  I'm only seeing the option of getting the name that is displayed for the row header.  I need to have a value behind that name.  Is  there anyway to access the full dataset for the row on any of the click events. Or even an index number that corresponds to the index row from the original dataset.


For example you have a list of people's names as row header to the left, the column header on top is dates over a year.  The values are miles ran for each person over the course of the year.

I need to be able to click a person's name to pull up more information about that person.  The dataset contains a personID.  I need to pass that info when the person's name is clicked.


1 Reply

MM Manikandan Murugesan Syncfusion Team February 16, 2022 03:23 PM UTC

Hi Jason, 
 
You can get the data set by using the "Index" property in the "HyperlinkCellClicked" event. Please see the code example below.  
Code Example: 
    public void hyperlink(HyperCellClickEventArgs args) 
    { 
        var index = (args.Data as AxisSet).Index; 
        for (var i = 0; i < index.Count; i++) 
        { 
            Console.WriteLine(this.dataSource[index[i]].Products); 
        } 
    } 
 
Meanwhile, we have prepared a sample for your reference. Please find it from below link. 
 
  
Please let us know if you have any concerns. 
 
Regards, 
Manikandan 
 


Loader.
Up arrow icon