Reference fields on pageviews that are not currently selected in a tabstrip

2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Dec 2014

    Posted 18 Dec 2014 Link to this post

    I have several different pageviews within a multipage control that is within a tabstrip. My first tab/pageview contains fields that the each of the following pageviews needs access to. This is a multi-step, complex form that is not saved until the last step so I need to know what the values of the fields are currently on the unsaved form instead of say pulling them from a database.

    I can find no way to access the field values before the form is submitted. I cannot read the values client-side (using jQuery) for tabs/pageviews that are not active as the fields are not in the DOM.  I cannot get any data from the viewstate as it is encrypted no matter what my web.config says to the contrary.  I can get data from Request.Form, but only for the fields that are on the tab that immediately precedes the current one, not from the whole form.

    Is there some shadow copy of the DOM that is persisting the data across page loads? Or, better yet, some way to access the current form field values sever-side when the page reloads? 
     
    I cannot be the first person to encounter this issue....
  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 23 Dec 2014 Link to this post

    Hi Michael,

    There is not shadow copy of the DOM. Probably content of the mutltipages is loaded inside iframes. Inspect the output html. Please paste your code.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top