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.

CSS: white-space

Thread ID:

Created:

Updated:

Platform:

Replies:

92848 Feb 8,2010 01:48 PM Feb 22,2010 05:28 AM ASP.NET Web Forms (Classic) 5
loading
Tags: GridGroupingControl
Matthias Max
Asked On February 8, 2010 01:48 PM

Hi,

in the header cells (TDs) of a syncfusion grid the CSS tag "white-space" is added to the TD tag. I can not overwrite this via a CSS class. Where can I set that this attribute is not written to the td style tag?

Thanks!

Matthias Max
Replied On February 9, 2010 09:59 AM

I posted the code that is created as header cell of a grid. Why is there another div AND a whole table in every header cell ? That's a lot of unnecessary code.

CODE:





AUTHOR



Apart from that I want to remove the white-space: nowrap;

How can I do that?

Thank you

Matthias Max
Replied On February 9, 2010 10:02 AM

Find attached a illustrating image of the above mentioned problem.

Thank you



Unbenannt_26446576.zip

Bharath M [Syncfusion]
Replied On February 10, 2010 03:43 AM

Hi Matthias,

Thank you for your interest in Syncfusion products.

1.overwrite "white-space" via a CSS class

We suggest you to use the WrapText property for HeaderCell to remove it from style. The code snippet to explain this is as follows.

[CS]

// The default value of WrapText is true.(You might override this by AnyCell property)

this.GridGroupingControl1.Appearance.AnyHeaderCell.WrapText = true;


To override inline styles, we suggest you to use "!important" attribute with CSS style definition.

2. Why is there another div AND a whole table in every header cell?

We have used this structure of HTML tag for more usability. For example easy insertion of images, ItemTemplates, Sorting direction image, GroupButton image in HeaderCell.

Let me know if you have any concerns.

Regards,
Bharath

Matthias Max
Replied On February 17, 2010 11:18 AM

Hi Barath,

I have tried your code-behind solution and it works.

The only problem is that align="right" seems not to work correctly. Not sure if its a browser problem though. See attached file. When I change align to "left" manually in FireBug the "Service ID" aligns left.

Any advice?

Thank you,
Matthias



alignment_a40949.zip

Bharath M [Syncfusion]
Replied On February 22, 2010 05:28 AM

Hi Matthias,

Thank you for your interest in Syncfusion products.

The reported issue "Alignment not working" is a known issue. We have already fixed It and included in our latest release of Essential Studio 2010 Vol1. To resolve the alignment issue, We suggest you to download and use our latest version from the link below

http://www.syncfusion.com/downloads/latest-version

Let me know if you have any concerns.

Regards,
Bharath .M

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.

;