Hi,
I am trying to show vertical scrollbars on a RadGrid and on initial pageload column headers squeeze to the left and leave large empty space on right. However, the columns render properly after postback. How can I render the coloumns correctly even on initail page load. Given below is my mark up.
If I use Fixed Table layout, all columns headers render properly and Fixed layout shows problem when you try to group records by field name. When grouped in fixed layout, edge of column headers and items do not align. In grouped mode, all records squeeze to left.
Any help is appreciated.
Thanks,
Prava
I am trying to show vertical scrollbars on a RadGrid and on initial pageload column headers squeeze to the left and leave large empty space on right. However, the columns render properly after postback. How can I render the coloumns correctly even on initail page load. Given below is my mark up.
<
telerik:RadGrid
ID
=
"TicketsGrid"
runat
=
"server"
EnableEmbeddedSkins
=
"false"
AllowPaging
=
"True"
PageSize
=
"20"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
ShowGroupPanel
=
"True"
ClientSettings-ClientEvents-OnRowClick
=
"gridClick"
EnableHeaderContextFilterMenu
=
"True"
EnableHeaderContextMenu
=
"True"
GridLines
=
"None"
oncolumncreated
=
"rgTicketsGrid_ColumnCreated"
ondatabound
=
"rgTicketsGrid_DataBound"
ongroupschanging
=
"rgTicketsGrid_GroupsChanging"
onsortcommand
=
"rgTicketsGrid_SortCommand"
onpageindexchanged
=
"rgTicketsGrid_PageIndexChanged"
onpagesizechanged
=
"rgTicketsGrid_PageSizeChanged"
>
<
mastertableview
allowfilteringbycolumn
=
"False"
GroupLoadMode
=
"Server"
Height
=
"95%"
TableLayout
=
"Auto"
>
</
mastertableview
>
<
SortingSettings
EnableSkinSortStyles
=
"false"
/>
<
clientsettings
allowdragtogroup
=
"True"
allowrowsdragdrop
=
"True"
enablerowhoverstyle
=
"True"
>
<
selecting
allowrowselect
=
"True"
/>
<
clientevents
onrowdropping
=
"rowDropping"
/>
<
clientevents
onrowcontextmenu
=
"RowContextMenu"
/>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
SaveScrollPosition
=
"true"
>
</
Scrolling
>
</
clientsettings
>
<
activeitemstyle
borderstyle
=
"Solid"
font-bold
=
"True"
/>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
></
PagerStyle
>
<
GroupingSettings
ShowUnGroupButton
=
"true"
/>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
/>
<
AlternatingItemStyle
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
/>
</
telerik:RadGrid
>
If I use Fixed Table layout, all columns headers render properly and Fixed layout shows problem when you try to group records by field name. When grouped in fixed layout, edge of column headers and items do not align. In grouped mode, all records squeeze to left.
Any help is appreciated.
Thanks,
Prava