Friday, December 18, 2015

Telerik Controls : Hiding PageSize functionality in Telerik RadGrid Control


Hiding the “PageSize” Option under RadGrid not to change the Page Size in RadGrid
 

Want to share the code snippet to hide the same.

 

protected void rgContractorsListAll_ItemDataBound(object sender, GridItemEventArgs e)

{

            #region GridPagerItem

            if (e.Item is GridPagerItem)

            {

                GridPagerItem pager = (GridPagerItem)e.Item;

                Label lblPageSize = (Label)pager.FindControl("ChangePageSizeLabel");

                if(lblPageSize != null)

                    lblPageSize.Visible = false;

 

                RadNumericTextBox txtPageSize = (RadNumericTextBox)pager.FindControl("ChangePageSizeTextBox");

                if (txtPageSize != null)

                    txtPageSize.Visible = false;

 

                Button btnChangePageSize = (Button)pager.FindControl("ChangePageSizeLinkButton");

                if (btnChangePageSize != null)

                    btnChangePageSize.Visible = false

            }

            #endregion

}

Wednesday, December 2, 2015

Visual Studio : Templates are missing while creating a new project

Missing templates in Visual Studio installed templates

1. Close All the Visual Studio Instances.
2.  Open visual studio command prompt.
2.  Run below command on the prompt.
 
 
devenv /installvstemplates
 
 
After finishing the command, if you will open Visual Studio, your missing templates would be available.
 


Tuesday, July 14, 2015

Migrate SharePoint 2010 Site Collection in SharePoint 2013


First thing to do -
Create new web application on SP2013 Server where we are going to migrate the site collection.

After that
1. Backup and restore SharePoint 2010 Content DB in SharePoint 2013 farm

2. Run "Test-SPContentDatabase" command to make sure that new environment has all components that SP2010 is using.

3. Database Attach: Run "Mount-SPContentDatabase"  to attach the database to the web application in SP2013.

4. After successful mounting the content DB to web application, the site will be accessible in 14 mode.

5. Next, to upgrade the ite to 15 hive, navigate to SiteUpgrade.aspx page in Site Setting of your site collection.

6. Click on "Upgrade the Site Collection" button.

7. During upgrade, the progress bar will be displayed.

8. After completing the progress bar, site collection must be accessible in 15 mode.