Hello Telerik,
My Apologies, the thread title should read:
Dynamic GridBoundColumn Width During Development Time Renders Differently When Deployed To Web Server
I'm at a loss here. I have a static RadGrid "rgEventQuery". I successfully create the columns for this RadGrid dynamically and I also dynamically change the width of any of these columns. What I can't understand is why the width of these dynamic columns appears different when the grid is displayed during development time than when it is deployed to the web server.
The property I'm changing is the HeaderStyle.Width property. Below are some code snippets:
If you could create a sample website (that works on your end) that I can test on my end, that would be greatly appreciated.
Thank you.
Virgil
My Apologies, the thread title should read:
Dynamic GridBoundColumn Width During Development Time Renders Differently When Deployed To Web Server
I'm at a loss here. I have a static RadGrid "rgEventQuery". I successfully create the columns for this RadGrid dynamically and I also dynamically change the width of any of these columns. What I can't understand is why the width of these dynamic columns appears different when the grid is displayed during development time than when it is deployed to the web server.
The property I'm changing is the HeaderStyle.Width property. Below are some code snippets:
fld = "DEPARTMENT"
fldWidth = "55:T"
gbc = New GridBoundColumn gbc.DataField = fld rgEventQuery.MasterTableView.Columns.Add(gbc) gbc.UniqueName = fld gbc.SortExpression = fld gbc.HeaderButtonType = GridHeaderButtonType.LinkButton If fldWidth <> "" Then If fldWidth.Contains(":") Then If IsNumeric(fldWidth.Split(":")(0)) Then gbc.HeaderStyle.Width = fldWidth.Split(":")(0) End If Else If IsNumeric(fldWidth) Then gbc.HeaderStyle.Width = fldWidth.Split(":")(0) End If End IfEnd Ifgbc.AllowSorting = TruergEventQuery.MasterTableView.SortExpressions.AddSortExpression(gbc.SortExpression)
If you could create a sample website (that works on your end) that I can test on my end, that would be greatly appreciated.
Thank you.
Virgil