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

Forums / Developing with Sitefinity / View Controls and Dynamic Forms

View Controls and Dynamic Forms

2 posts, 0 answered
  1. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    15 Jul 2009
    Link to this post
    Hi, I am developing a module with slightly more complicated content item that can have a number of options. These options change what other information is required.

    Dropdown with option A or B
    MultiPage with 2 views

    If A then View1 else View2

    On any other system this is a trival matter, but in a view I am having problems with this.

    I am having 2 problems with this:
    1. When I change the value of the drop down, and the post back occurs, the page comes back in the default blank state.
    2. Viewstate doesn't seem to exist on views, is there any work around for this?
    3. Linked to 2, inputs are not persisting through a post back
    4 Ajax panels or managers do not seem to work in views.

    This is being implemented in a plugagble module.

    I  could do this throught javascript and DHTML, but I would like to see if there is a server side solution as more complicated problems may come up. For example, I will be allowing the selection of mulitply thumbnails, and I will need to keep track of this in a 'viewstate' or worse case session.

    Thanks
  2. Dido
    Dido avatar
    149 posts
    Registered:
    24 Sep 2012
    21 Jul 2009
    Link to this post
    Hi Nigel,

    The old-style architecture used MultiPage-es, which meant postback for every action. We did not have any problems with ViewState using that approach. However, in the new architecture (introduced with 3.6), we use redirects. Every action has a View (somewhat like ASP.NET MVC), and you can pass parameters to it.

    Your problem with the ViewState seems strange to me, because I do not remember ever encountering something like that. If you insist on using MultiPage, please send me the source, so that I can track the problem down locally.

    My advice, however, is for you to get familiar with the new approach. The less post-backs you use, the easier it is for search engines can handle your site.

    There are some sample modules using the new architecture:
    Kind regards,
    Dido
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered