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.

How to overwrite cssclass of column?

Thread ID:

Created:

Updated:

Platform:

Replies:

89100 Aug 18,2009 05:32 AM Aug 20,2009 09:15 AM ASP.NET MVC (Classic) 1
loading
Tags: Grid
Benno Eiwen
Asked On August 18, 2009 05:32 AM

Hello,

I have set AutoFormat to Office Silver but would like to overwrite a few cells. I tried this:

GridPropertiesModel gridModel = (GridPropertiesModel)this.ViewData["GridModel"];
gridModel.QueryCellInfo += (sender, args) =>
{
if (args.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || args.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{
if (args.TableCellIdentity.ColIndex == 1)
{
args.Style.CssClass = "RowHeader";
args.Handled = true;
}
}
};

Unfortunately the class is not set.

Kind regards
Benno

Balaji M [Syncfusion]
Replied On August 20, 2009 09:15 AM

Hi Benno,

Thank you for your interest in Syncfusion products.

The issue "QueryCellInfo: set properties show no result" reported by you is suspected to be a defect. We have forwarded this to our Developement team for further analysis. We will update you with our Development team's reponse in two business days.

Please follow up the Direct-Trac incident#59250 for more further.

Regards,
M. Balaji

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.

;