Contectmenuclick gets null for column

Hi, 

I have column on which i show contextmenu on its header. To restrict the context men on column header I am using 'target:e-headercontent' in contextmenu items. I have a requirement to show add new column on the contextmenu , so that when the user click on that a new column is generated on the right side of the column where I clicked. So i need to get from which column I clicked the contextmenu. But when i click it from the column header, in the console of the event of contextmenuclick I am getting column as null. But if the click is from any other places other than the header on the column, I am getting the proper values for column. 

Is it a bug or am I missing something?

Thanks in advance


3 Replies

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team February 1, 2022 04:39 PM UTC

Hi Pran, 

Query#:- But when i click it from the column header, in the console of the event of contextmenuclick I am getting column as null. But if the click is from any other places other than the header on the column, I am getting the proper values for column. 
 
We have checked your reported problem by preparing sample but we are unable to replicate the problem at our end. Refer to the sample link:- 

Screenshot:- 
 

We need some more additional details to find the cause of the issue. Share us the following details. 

  1. Complete Tree Grid code example(app.Component.html and ts page)
  2. Screenshot/Video Demo to replicate the issue.
  3. If possible replicate it in the above sample and revert us back.
  4. TreeGrid package version details.

Regards, 
Farveen sulthana T 



PR Pran RV February 3, 2022 01:22 PM UTC

Thanks Farveen,


I will compare my code with this



FS Farveen Sulthana Thameeztheen Basha Syncfusion Team February 4, 2022 01:51 PM UTC

Hi Pran, 

Thanks for your update. Please get back to us if you need any further assistance. 

Regards, 
Farveen sulthana T 


Loader.
Up arrow icon