.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Converting the complex dropdown to a simple dropdown using SPServices

Posted By:Sagar Pardeshi       Posted Date: October 28, 2013    Points: 200    Category: SharePoint    URL: http://www.dotnetspark.com  

Converting the complex dropdown to a simple dropdown using SPServices in sharepoint 2010
 

Introduction

The SPComplexToSimpleDropdown function lets you convert a "complex" dropdown rendered by SharePoint in a form to a "simple" dropdown. It can work in conjunction with SPCascadeDropdowns; call SPComplexToSimpleDropdown. SharePoint Lookup Column renders dropdowns differently in Internet Explorer depending on whether they have fewer than 20 options or 20+ options.

Object

 

 

<script language="javascript" src="/_layouts/Server/NewScript/jquery.min.js"type="text/javascript"></script>

<script language="javascript" src="/_layouts/Server/NewScript/jquery.SPServices-0.7.1a.min.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">

$(document).ready(function (){

  $().SPServices.SPComplexToSimpleDropdown({

            columnName: "City"

        });

    });</script>

 

The complex dropdown (as shown in the image above) is converted to a simple dropdown

 

Summary

In this Article We achieve if the parent list has more than 20 entries. SharePoint 2010 changes from a dropdown to an ajaxy-style 'type ahead'-field.Using SPServices SPComplexToSimpleDropdown We convert into simple dropdown.


 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend