We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Column Header Template

Thread ID:

Created:

Updated:

Platform:

Replies:

118646 Mar 27,2015 12:02 PM Mar 30,2015 09:04 AM ASP.NET MVC 1
loading
Tags: TreeGrid
Andrea Perazzolo
Asked On March 27, 2015 12:02 PM

Hi,
I will ask if there is a way to customize a Column Header like Wrapping Text and centering the text?

    Thanks in advance

    Andrea Perazzolo

John Rajaram [Syncfusion]
Replied On March 30, 2015 09:04 AM

Hi Andrea,

Thanks for using Syncfusion products.

We would like to let you know that, currently there is no support for customizing column header of TreeGrid. Hence we have logged a feature request regarding this.

A support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

But at present by workaround we can center align the header text of the column by modifying it’s CSS using the following code snippets.

Code snippet:

<html>

<head>

//...

<style>

.e-headercelldiv {

text-align: center !important;

}

</style>

</head>

<body style="position: static; margin: 0px; padding: 2px">

@(Html.EJ().TreeGrid("Tree")

//...

.Datasource((System.Collections.IEnumerable)ViewBag.datasource)

)

@(Html.EJ().ScriptManager())

</body>

</html>

We have also prepared a sample based on this and you can find the sample under the following location:

Sample: http://www.syncfusion.com/downloads/support/forum/118646/TreeGridSampleMVC425913212.zip

Please let us know if you need more information on this.

Regards,
John. R


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;