context menu problem with virtualization

i have an ejGrid  with virtualization enabled, and i use context menu to send row data to another component.
the problem is that after a few pages of virtualizing the data , context menu doesn't capture the row data and returns empty data .
how can i fix this ?

3 Replies 1 reply marked as answer

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team April 5, 2021 04:14 PM UTC

Hi Moorat,  

Thanks for contacting Syncfusion Support. 

Query#:- the problem is that after a few pages of virtualizing the data , context menu doesn't capture the row data and returns empty data . 

We have checked your reported problem and we have get the rowData on clicking the context Menu but we are unable to reproduce the problem at our end. Refer to the sample Link:- 

 


While on Custom contextMenu click we have retrieved the rowdata using getSelectedRecords method of the Grid. After following the above suggestion still faced issue share us the following details. 

  1. Complete Grid code example.
  2. Share Video Demo to replicate the issue.
  3. By how you have get the row details with Context click. Share us the details.
  4. If possible replicate it in the above sample and revert us back.


Regards, 
Farveen sulthana T 


Marked as answer

MO Moorat April 7, 2021 08:26 AM UTC

thanks a lot, looks like using getselectedrecords has solved the problem , but now when testing the feature , once i saw that two rows where selected , is it a good practice to use clearSelection method before every click to make sure there's only one record selected ?


FS Farveen Sulthana Thameeztheen Basha Syncfusion Team April 8, 2021 04:49 PM UTC

Hi Moorat,  

By default when right click on the selected row(without pressing Ctrl or shift key), already selected record gets clear.  So we need some more additional details about your requirement. Share us the following details. 

  1. Complete Grid code example.
  2. Video demo to replicate the problem.
  3. Have you faced the issue on enabling multiple selection(share replication steps).
  
Based on your provided details we will provide you solution earlier 
Note:- You can also use clearSelection to clear the selected records. 

Regards, 
Farveen sulthana T 


Loader.
Up arrow icon