Inspirating Tips About How To Reduce Viewstate Size
You have several options to reduce the viewstate:
How to reduce viewstate size. Just drag the widget to somewhere on your page, change the site property to true, and everytime you load your page you'll be able to quickly see on your screen the compressed. A page with a lot of controls & content will have a lot more viewstate. A new tab should be opened in the developer console that is called “view state inspector”.
Disable view state if you do not need it. There is a data type called transient but instead of that there are some other options we have to reduce the view state in vf pages 1. Optimize the way your application uses view state by following these recommendations:
Use filters and pagination to reduce data requiring state. You can reduce its size by setting the enableviewstate property to false. I was working on my local machine, so i never cared about the size of the page.
Minimize the number of objects you. What's acceptable, depends on the bandwidth limitations you have. It depends on a lot of factors.
We have several ways to reduce the page size, the following are two of them: If you can, disable the viewstate for whole datagrid (set property enableviewstate to false), or better. User933406816 posted i've been working on an asp.net project for over 2 months now.
The simplest and the most logical way is to keep the size of the vf page as small as possible. This will force the datagrid to go to the datasource for its data with each request, which of course. For this purpose, transient variables are used as.