Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 436547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:29:19+00:00 2026-05-12T20:29:19+00:00

We have a Telerik Grid (i.e. enhanced version of ASP.Net vanilla grid). On some

  • 0

We have a Telerik Grid (i.e. enhanced version of ASP.Net vanilla grid). On some postbacks we perform major changes to the grid and we don’t want load the viewstate for the grid control for that one page load, but we want viewstate to be load to future loads. And in all cases we want to save the viewstate in case the user uses the same data source each time.

It basically goes like this:

  • Page initially loads.
  • Viewstate saved.
  • User manipulates control on page that isn’t the change datasource control.
  • Page posts back.
  • Controls created.
  • Viewstate loaded.
  • Events processed.
  • Viewstate saved.
  • User gets back page.
  • User manipulated datasource change control.
  • Page posts back.
  • Controls created.
  • Viewstate loaded (we don’t want the grid’s viewstate loaded, but it is anyways).
  • Events processed.
  • Viewstate saved (we want all viewstate saved including the new grid’s viewstate).
  • User gets back page.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:29:20+00:00Added an answer on May 12, 2026 at 8:29 pm

    You can derive from the grid control in question and then override the LoadViewState method to not load viewstate when you don’t want to.

    public class MyGrid : BaseGrid
    {
        public bool IsNew { get; set; }
    
        public override void LoadViewState(object viewState)
        {
            if (!this.IsNew)
            {
                base.LoadViewState(viewState);
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Server binding Telerik MVC grid, I want to change the background
I have a telerik rad grid with PageSize=10. The problem is if I have
I have been successful with creating a Telerik grid to display a list of
Hello Freinds I am new to this Asp.net MVC Control.. I have a page
I have a telerik grid, when I edit a row: but if i pressed
I have a Telerik Grid, with two columns I need to keep second column
I have a partial view that uses a Telerik MVC Grid, and it has
I have a grid that is currently using Telerik Grids, I would like to
I have a Telerik grid. For each row there is a details table. The
I have a telerik grid that shows a drop-down when editing. The problem is,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.