Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

sharepoint 2010 formfield diabled dropdown loosing value on postback

Posted on 2012-04-03
1
Medium Priority
?
964 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 1000 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

704 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