Monday, October 24, 2011

Custom width for columns in CRM Views

When you want to change width of a column in CRM view, CRM lets you to select the width from parameter set. These are the values you get.

25px, 50px, 75px, 100px, 125px, 150px, 200px, 300px

But sometimes, you have to give your own width.
Ex.
1.If there are only one or two columns in your width, you may need to give may be 500px for one column.
2. If you want to show many columns and if you are not like to show the horizontal scroll bar, instead of 200px and 300px, you may need to give 250px.

There is a solution for this.

Steps.
1. Publish your CRM solution.
2. Export the unmanaged solution.
3. Unzip the solution.
4. Open the Custermization.xml file (using XML viewable editor ex. Visual Studio).
5. Navigate to your entity Entities -> Entity -> SavedQueries -> savedqueries.
6. Find your view from the savedqueries.
7. Navigate to layoutxml -> grid
8. Now you can give any custom width to your columns
(
cell width="125" name="accountnumber"
cell width="500" name="name"
)

9. Save the Xml File

10. Zip the package

11. Import the solution

No comments:

Post a Comment