Here is how the site looks under 2010.3.1110, using the webblue theme:
http://oi52.tinypic.com/2m3h73p.jpg
Here is the site again from debug mode under 2011.1.315, with the detail section hidden:
http://oi56.tinypic.com/mbn7fl.jpg
now expanded:
http://i51.tinypic.com/2iu3odl.jpg
I've narrowed it down to the long text string. Removing all the CSS from the detail section and just displaying the raw text still causes the grid columns to shift. If the string is shorter then the columns shift less. I compared the old and new common css file and couldn't find any differences in the tags for the grid header, so I'm not sure what has changed to cause this issue.
8 Answers, 1 is accepted
I have since tried the beta for v2011.2.629 and I'm still having the same problem. I've also tried wrapping the grid control in a table and setting table-layout to fixed, but that didn't do anything.
I've been able to convert my app to MVC3 using the razor view engine and this is the last thing holding me up from a release.
I am afraid I cannot reproduce such an issue locally, based on the screenshots, so I am unable to provide any advice at the moment. Can you please send a simple runnable demo, which shows the unexpected behavior? Thank you in advance.
Greetings,
Dimo
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Expand the details in a row and/or click on the detail tabs and you can see the column headers of the topmost grid change in size. This didn't happen before.
I am afraid I do not observe the described behavior on our online demos. What browser are you using? I tested with Firefox 5, IE7, IE9 and Chrome.
Best wishes,
Dimo
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
I have my doctype on my main layout page set to
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">and the doctype of the demos are using
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">so I'm not sure if changing my doctype will make a difference either.
The DOCTYPE does nto make any difference, because browsers behave the same when using XHTML 1.0 and XHTML 1.1.
Indeed, the header shifting is observed in IE8. It can be avoided by adding a table-layout:fixed style to the Grid table(s) that suffer from the issue. Use TableHtmlAttributes() or an external CSS style. On a side note, turning on Grid scrolling applies the fixed layout style automatically.
Best wishes,
Dimo
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
.TableHtmlAttributes(new { style = "table-layout: fixed;" })And that solved the weird column shift. Incidentally, adding the style to an external css file doesn't apply it to the grid control as I had previously tried that. I tried it again before using TableHtmlAttributes.
I also had to adjust my right most column because it was getting pushed out of view even though my middle columns don't have set widths. I have an edit button in the last column. I set the left margin to 0px and right to auto, then kept increasing the column width until my edit button came back into view. This also happens when I try to use grid scrolling.
If a given style is applied when it is an inline style, and is not applied when it is an external style, then you should look for conflicting styles with higher specificity. Firebug will show you what overrides the external table-layout:fixed style. Also, double-check that the CSS selector of the external CSS rule is correct.
Best wishes,
Dimo
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
