Solved

sharepoint 2010 formfield diabled dropdown loosing value on postback

Posted on 2012-04-03
1
956 Views
Last Modified: 2012-04-18
Hi I have a diabled dropdown(formfield) in sharepoint. When I submit the form on postback it is loosing it's values. I disable it on client-side using JQuery.

My case is I want to disable a section on form, so using Jquery i apply css readonly on textboxes and add attribute .attr("disabled","disabled") to dropdown.

After post back I see blank dropdown(disabled). May be it has values but Index is set to zero. It should retain the first time binded  selection as form is in Edit Mode.
0
Comment
Question by:tangoboy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
ivan_vagunin earned 500 total points
ID: 37802807
I guess dropdownlist value is not posted on server, since it is disabled, that's why it gets lost.
I would advise to use server side code to change FormField mode to Display.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question