Skip to main content

Posts

Showing posts from 2013

IE 9 and IE 10 Issue for Dropdown list with many items...Sharepoint 2010

Issue $(document).ready(function () {             // Country column             var _countyName = "Country";             //State Column             var _stateName = "State";             // Override the Country             OverrideDropDownList(_countyName);             //Set first value of the country as default.             updateOriginalField(_countyName, "tempDDLName_" + _countyName);             //Override for State             OverrideDropDownList(_stateName);             // Main Function             function OverrideDropDownList(columnName) {                 // Construct a drop down list object                 var lookupDDL = new DropDownList(columnName);                 // Do this only in complex mode...                 if (lookupDDL.Type == "C") {                     // Hide the text box and drop down arrow                     lookupDDL.Obj.css('display', 'none');                     lookup

Create Managed Property for Search Service Application.

Function for Create Managed property for Search Service Application. private static void CreateManagedProperty( Schema schema, string managedPropertyName, string crawledPropertyCategory, string crawledPropertyName)         {             if (!schema.AllManagedProperties.Contains(managedPropertyName))             {                              Category category = schema.AllCategories[crawledPropertyCategory];                 var crawledProps = category.QueryCrawledProperties(crawledPropertyName, 1, Guid .NewGuid(), String .Empty, true ).Cast< CrawledProperty >();                 var crawledProp = crawledProps.FirstOrDefault();                 if (crawledProp != null )                 {                     ManagedDataType managedPropertyType = GetManagedPropertyType(crawledProp);                                  ManagedProperty managedProperty = schema.AllManagedProperties.Create(managedPropertyName,