Skip to main content
Solved

Clear and Refresh the screen after save.

  • 2 November 2023
  • 3 replies
  • 269 views

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

3 replies

Userlevel 3

Hi @bhagyat25 ,

You can try by using below line,

  Viewname.View.RequestRefresh();

eg-

  Base.Transactions.View.RequestRefresh();

Hope this helps!!

Userlevel 3
Badge

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

Userlevel 3

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