Skip to main content
Solved

Clear and Refresh the screen after save.


Forum|alt.badge.img

Hi All,

I need to clear the grid and refresh the screen once all the grid data saved to the DB. Can someone help me out?

Thanks

Best answer by rakshandad31

Hi @bhagyat25 ,

You can write it into ViewDelegate,

Please refer below sample code-

View Name -TestView       

                     protected virtual IEnumerable testView()
                     {
                        TestView.Cache.Clear();
                        TestView.View.RequestRefresh();
                       

                        //your logic

                     }
 

View original
Did this topic help you find an answer to your question?

3 replies

  • Jr Varsity I
  • 7 replies
  • November 2, 2023

Hi @bhagyat25 ,

You can try by using below line,

  Viewname.View.RequestRefresh();

eg-

  Base.Transactions.View.RequestRefresh();

Hope this helps!!


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 51 replies
  • November 2, 2023
rakshandad31 wrote:

Hi @bhagyat25 ,

You can try by using below line,

  Viewname.View.RequestRefresh();

eg-

  Base.Transactions.View.RequestRefresh();

Hope this helps!!

Hi @rakshandad31 ,

In which event


  • Jr Varsity I
  • 7 replies
  • Answer
  • November 2, 2023

Hi @bhagyat25 ,

You can write it into ViewDelegate,

Please refer below sample code-

View Name -TestView       

                     protected virtual IEnumerable testView()
                     {
                        TestView.Cache.Clear();
                        TestView.View.RequestRefresh();
                       

                        //your logic

                     }
 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings