currentViewRecords

Hello,

I have been facing issue regarding the refresh view when dataSource change .
That is when dataSource change dataSource is updated but not currentViewRecords donot update.

currentViewRecords updated when explicitly click change button event function .

I need to automatically update currentViewRecord when dataSource changed automatically.

Regards
Wilma Hills
     

7 Replies

TS Thavasianand Sankaranarayanan Syncfusion Team March 20, 2020 06:17 AM UTC

Hi Wilma, 

Thanks for contacting Syncfusion support. 

Based on your we suspect that when you change the Tree Grid dataSource, it will not affected in the current view records in Tree Grid. We have prepared a sample with your mentioned requirement but we are unable to reproduce it from our end.  

We used to change the Tree Grid dataSource in an external button click event. It is in the following stackblitz link. 


Please provide the following details that would be more grateful for us to provide better assistance from our end. 

  1. Share the complete Tree Grid code and changing dataSource code snippets.
  2. Whether you have also update dataSource in an external button click event or any other ways. If so, please share those details.
  3. If possible try to reproduce the issue in the attached sample.
  4. Whether the changed dataSource have same fields of previous dataSource.
  5. Share the stack trace details if you face any script error in console window.

Regards, 
Thavasianand S. 



WH Wilma Hill March 23, 2020 10:38 AM UTC

Hello Thavasianand,

Thanks for the response.

Whether you have also update dataSource in an external button click event or any other ways. If so, please share those details.
Ans- I have button click also while button click viewrecord update while changing dataSource.

Whether the changed dataSource have same fields of previous dataSource.
Ans- yes.

what happening is 
treegrid is generic and i need to update treegrid with routerpath in angular rather than creating each component.

what i did is
  1. created a columns and use [columns]=created column in treegrid. not in <e-column>
  2. sometime it changes as per my objective but sometime it donot change, it still show previous record in UI rather than changed one.
  3. when clicking external button then it updated (which is not dynamic as user need to click button when route path changes.)
  4. user should get the changed data if he/she navigate the route in same generic component

Note: dataSource is updated in each path changed,column also hide/show according to path .only not  in Ui  view data is changing.

Regards
Wilma Hill






GL Gowri Loganathan Syncfusion Team March 24, 2020 07:32 AM UTC

Hi Wilma, 
 
Thanks for the details. 
 
We have prepared a sample based on the shared details but we are unable to reproduce the reported issue at our end. We are able to update the changed columns and dataSource in UI level through button click. 
 
Kindly refer the below sample 
 
 
If you still facing issue after referring the above sample, kindly get back to us with the below details 
  1. Share the complete TreeGrid code and dataSource changing code snippets
  2. Share us the stacktrace details if you face any script error in console window
  3. Please share us the screenshot / video demonstrating the reported issue
  4. If possible share the issue reproduceable sample or reproduce the issue in the attached sample
 
Regards, 
Gowri V L.  



WH Wilma Hill March 25, 2020 03:46 AM UTC

Helllo Gowri ,

I think you got confusion.I had told in my requirements that I need to change dataSource according to route path parameter rather than button click which I had achieve (datasource do changes) but the currrentViewRecords donot get updated though dataSource is changed.


Regards,
Wilma Hill


GL Gowri Loganathan Syncfusion Team March 26, 2020 10:30 AM UTC

Hi Wilma, 
 
Thanks for the details 
 
Query :  I need to change dataSource according to route path parameter rather than button click 
 
In order to proceed further on your query, please get back to us with the below details which would be more helpful for us to provide you the solution as per your requirement. 
 
  1. Share us the routing details (i.e.) how you perform routing in your project.
  2. Share us the routing code snippets to update dataSource in your TreeGrid.
  3. Share us the stacktrace details if you face any script error in console window with your sample.
  4. Please share us the screenshot / video demonstrating the issue you faced.
  5. If possible share us the issue reproducible sample.
 
Regards, 
Gowri V L. 
 



AM amreen March 20, 2021 05:08 AM UTC

Hi Wilam,

I have simillar issue do you get any help from support team?


PS Pon Selva Jeganathan Syncfusion Team March 22, 2021 12:03 PM UTC

Hi amreen,   
 
Thanks for using syncfusion products. 

Query: currentViewRecords

Before we start proceeding your query  we request you to share us the below details in order to provide you the solution as early as possible.

  1. Whether you have also update dataSource in an external button click event or any other ways. If so, please share those details.
  2. Whether the changed dataSource have same fields of previous dataSource.
  3. If possible share us the issue reproducible sample
  4. Share us the stacktrace details if you face any script error in console window with your sample.
  5. Please share us the screenshot / video demonstrating the issue you faced.
  6. Kindly share the product detail version

Kindly get back to us for further assistance.

 
Regards,  
Pon selva   


Loader.
Up arrow icon