Freeze from contextmenu click is throwing error

I have a requirement to add freeze column option from contextmenuclick. But when I do treegrid.refreshColums() after setting the freeze property , it is throwing me error 'cannot read properties of null(reading 'queryselector'). But it will work fine if I give freeze property in e-column tab. Is there any way I can handle this without setting freeze property in e-column ?


5 Replies

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team January 25, 2022 01:57 PM UTC

Hi Pran, 

We have checked achieved your requirement by enabling/disabling Frozen column on external button click.  

If your requirement is different from above solution, share us the following details. 

  1. Share detailed Explanation of your requirement.
  2. Do you want to achieve this functionality in any specific scenario. If yes, please share details.

Regards, 
Farveen sulthana T 



PR Pran RV January 25, 2022 05:27 PM UTC

Hi Farveen,

Thanks for the reply. I need the freeze option in context menu, not in external button.

Context Menu 1 - Right-click (mouse) or long-press (mobile) a "Column Header", to pop-up menu items, which has FreezeCol ☑: Freeze all left-hand-side (including current) columns.


When i try to achieve this using contextmenuclick I am getting the above errors. After freezing the column and doing treegrid.refreshColums() using contextmenuclick has this issue (If i set any e-column with freeze value, this works fine). Is this not achievable using contextmenu without setting default freeze value in e-column?

Any help will be appreciated. Thanks in advance



PS Pon Selva Jeganathan Syncfusion Team January 26, 2022 02:30 PM UTC

  
Hi pran,  
   
We are working on your query with high priority and will update you the further information on or before January 28, 2022.  
  
Until then, we appreciate your patience.  
   
Regards,  
Pon selva  




PS Pon Selva Jeganathan Syncfusion Team January 28, 2022 04:15 PM UTC

Hi pran, 
  
Thanks for your patience. 
  
We are able to reproduce the issue(script error thrown dynamically set the column’s isFrozen property  ) at our end. 
  
On further validation,  we have confirmed it as a bug and logged the defect report A script error thrown while dynamically setting the column's isFrozen property ”. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our weekly release which is expected to be rolled out on 16th February 2022.   
      
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.      
      
Disclaimer: The feedback link is in review state and you can view it once it is validated 
  
Until then we value your patience 
  
Regards, 
Pon selva 



PS Pon Selva Jeganathan Syncfusion Team February 17, 2022 03:47 PM UTC

  
Hi Pran,   
 
Sorry for the inconvenience caused. 

Due to some internal complexities we could not include the fix as promised. We are currently working on it high priority and will include it in our
upcoming weekly patch release which is scheduled on 23rd February 2022. 
 
Until then we value your patience. 
     
Regards,   
Pon selva   


Loader.
Up arrow icon