search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

CssClass property of BeforeCellRenderArgs doesn't add class name

Asked by XGC
10 years ago.

We are looking to put ASP.NET WebForms V7.4.2923 into our production app. Our current set-up (V7.2.2786) uses CssOnly=False and BeforeCellRenderArgs to add a class name using e.CssClass="classname" based on various conditions.

This is our code:

' is this a business cell or not
If e.IsBusiness = False Then
' this is not a business hours
e.CssClass = "nonBusiness"
Else
' this is business hours
e.CssClass = "Business"
End If

The problem is that the class name is no longer added to the cell but previously was. If we switch to CssOnly="True" then the class name IS now added. I found a similar issue for MVC which said that this was fixed in WebForms but this does not seem to be the case.

Surely the CSS class should be added when set using e.CssClass="XXXXX"?

Answer posted by Dan Letecky [DayPilot]
10 years ago.

This issue is fixed now in build 7.4.2950. The fix will be included in the next release.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.