Hi,
In my aspx page I defined radgrid which has 3 static template columns:
The rest of the columns is added at run-time from C# code behind.
Now the problem is that those 3 first columns are not frozen and move to the left when I scroll to the right.
Please, help.
Thanks,
Alex
In my aspx page I defined radgrid which has 3 static template columns:
<
telerik:RadGrid
ID
=
"radgrdDocumentsNew"
AllowSorting
=
"true"
AllowPaging
=
"true"
AllowFilteringByColumn
=
"false"
AutoGenerateColumns
=
"false"
PageSize
=
"50"
runat
=
"server"
OnDataBound
=
"radgrdDocuments_DataBound"
OnItemDataBound
=
"radgrdDocuments_ItemDataBound"
OnDetailTableDataBind
=
"radgrdDocuments_DetailTableDataBind"
GridLines
=
"Vertical"
Width
=
"100%"
OnSortCommand
=
"radgrdDocuments_SortCommand"
OnPageIndexChanged
=
"radgrdDocuments_PageIndexChanged"
OnPageSizeChanged
=
"radgrdDocuments_PageSizeChanged"
OnColumnCreated
=
"radgrdDocuments_ColumnCreated"
OnItemCommand
=
"radgrdDocuments_ItemCommand"
EnableViewState
=
"false"
>
<
MasterTableView
BorderStyle
=
"None"
DataKeyNames
=
"Paperclip"
BorderWidth
=
"0"
TableLayout
=
"Auto"
Width
=
"100%"
>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"TemplateColumnSelect"
Groupable
=
"False"
ItemStyle-HorizontalAlign
=
"Center"
HeaderStyle-HorizontalAlign
=
"Center"
>
<
HeaderTemplate
>
<
asp:CheckBox
ID
=
"chkSelectAll"
ToolTip
=
"Select All"
runat
=
"server"
OnCheckedChanged
=
"docSelectedAll_CheckedChanged"
AutoPostBack
=
"True"
/>
</
HeaderTemplate
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"chkSelect"
runat
=
"server"
OnCheckedChanged
=
"docSelected_CheckedChanged"
AutoPostBack
=
"True"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"TemplateColumnPaperclipIcon"
Groupable
=
"False"
HeaderStyle-HorizontalAlign
=
"Center"
ItemStyle-HorizontalAlign
=
"Center"
>
<
ItemTemplate
>
<
asp:ImageButton
ID
=
"ibtnPaperclip"
runat
=
"server"
ImageUrl
=
"~/Images/clip.gif"
ToolTip
=
"Paperclip"
AlternateText
=
"Paperclip"
CommandName
=
"ExpandCollapse"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"TemplateColumnAction"
HeaderText
=
"Action"
Groupable
=
"False"
HeaderStyle-HorizontalAlign
=
"Center"
ItemStyle-HorizontalAlign
=
"Left"
ItemStyle-Wrap
=
"False"
>
<
ItemTemplate
>
<
div
style
=
"width: 100%; float: left;"
>
<
asp:HyperLink
ID
=
"lnkViewEditMetadata"
runat
=
"server"
ImageUrl
=
"~/Images/editicon.gif"
ToolTip
=
"Metadata"
AlternateText
=
"Metadata"
/>
<
asp:ImageButton
ID
=
"ibtnViewDocument"
runat
=
"server"
ImageUrl
=
"~/Images/document.gif"
ToolTip
=
"View Document"
AlternateText
=
"View Document"
/>
</
div
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
<
HeaderContextMenu
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
></
CollapseAnimation
>
</
HeaderContextMenu
>
<
PagerStyle
Mode
=
"NextPrevNumericAndAdvanced"
AlwaysVisible
=
"True"
/>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"True"
FrozenColumnsCount
=
"3"
ScrollHeight
=
"200px"
UseStaticHeaders
=
"true"
SaveScrollPosition
=
"True"
>
</
Scrolling
>
</
ClientSettings
>
<
FilterMenu
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
></
CollapseAnimation
>
</
FilterMenu
>
</
telerik:RadGrid
>
The rest of the columns is added at run-time from C# code behind.
Now the problem is that those 3 first columns are not frozen and move to the left when I scroll to the right.
Please, help.
Thanks,
Alex