1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / RadControls and ViewState problem upgrade

RadControls and ViewState problem upgrade

6 posts, 0 answered
  1. John
    John avatar
    22 posts
    Registered:
    14 Jan 2011
    27 May 2011
    Link to this post
    Hi,

    I'm still having troubles with Rad controls viewstate in 4.1 SP1.

    RadTabStrip, RadMultipage and RadGrid behave consistently (doing what I want) using SF4.0 but after upgrade to SF4.1 SP1 some of them behave in differents ways.
    So I enabled viewstate on the page settings and RadGrid is not displaying at all !

    I would like if anyone is still having problems with the viewstate...

    I've upgraded directly from sf 4.0 to 4.1 SP1. Is that correct or I need to upgrade first to 4.1 before 4.1 SP1?
    I'm using the RadControls inside user controls that display in frontpages. 

    Thanks!

    John.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    30 May 2011
    Link to this post
    Hi John,

    If you create a new project through the project manager and add the same control can you see the RadGrid? I was not able to replicate this issue locally.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. John
    John avatar
    22 posts
    Registered:
    14 Jan 2011
    31 May 2011
    Link to this post
    Hi,

    After spend some time with this, this solve my problem:

    I made a new user control with the RadControls on it. But this worked (viewstate and all the stuff) ONLY adding a Script Manager on the user control template. I enabled the viewstate on the page settings too. Everything is fine now.

    PD: I've tried to enable RadScriptManager from the  page settings but this didn't work for me. What this property is suppose to do ? 

    Thanks,

    John.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    02 Jun 2011
    Link to this post
    Hi John,

    Actually, if you don't have script manger on a page we add  it, so you must have a script manager on the page event if you don't reference it.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Joel
    Joel avatar
    40 posts
    Registered:
    30 Nov 2010
    30 Jun 2011
    Link to this post
    I'm still struggling with the same issue.

    I enable viewstate on a page, this is a page that I have created from my own .master file (template), but I cannot keep complex objects (marked as serializable) within viewstate.

    I seem to lose viewstate after I use a usercontrol that has a RadGrid using advanced data binding and SEO paging.

    My initial query to fill my radgrid works perfectly, however, calls to paging in my radgrid seem to dispose viewstate.

    I'm at a loss as to how to go about debugging this, I've checked the log files and the server's event logs as well as my dev box's events and logs, to no avail.

    Sitefinity Product version: 4.1.1339.0
    Telerik.web.ui.dll 2011.1.413.40

    Do I have a version mismatch?

    Thank you!
    Joel
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    01 Jul 2011
    Link to this post
    Hi Joel,

    You should register a custom route

    protected void Application_Start(object sender, EventArgs e)
            {

                Bootstrapper.Initialized += new EventHandler<Telerik.Sitefinity.Data.ExecutedEventArgs>(this.AfterInit);
            }

            private void AfterInit(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs args)
            {
                ObjectFactory.Container.RegisterType<IVirtualFileResolver, SitefinityPageResolverCustom>("PageResolver",
                 new ContainerControlledLifetimeManager(), new InjectionConstructor());

                if (args.CommandName == "RegisterRoutes")
                {
                    RouteTable.Routes.MapPageRoute("RadGridSEOPaging",
                    "ui/{RouteParameterName}",
                    "~/Default.aspx",
                    true,
                    new RouteValueDictionary { { "RouteParameterName", "1" } });
                }
            }

    but indeed there are some issues related to this scenario that we have to investigate further.


    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
6 posts, 0 answered