<
div
class
=
"border"
id
=
"D1"
onmouseover
=
"ShowIcon('Div1','true');"
onmouseout
=
"ShowIcon('Div1','false');"
style
=
"height: 110px;"
>
<
a
href
=
"#"
title
=
"Famili Account Setup + Edit"
>
<
telerik:RadBinaryImage
runat
=
"server"
ID
=
"Thumbnail"
ResizeMode
=
"Crop"
Width
=
"100"
Height
=
"115"
ImageUrl
=
"~/Images/image-1.png"
CssClass
=
"binary-image"
/>
</
a
>
<
div
id
=
"Div1"
style="position: relative; top: -50px; left: 0px; z-index: 10000;
display: block;">
<
div
class
=
"qsf-demo-canvas upload-panel"
>
<
div
class
=
"upload"
>
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"AsyncUpload1"
MaxFileInputsCount
=
"1"
OnClientFileUploaded
=
"fileUploaded"
OnFileUploaded
=
"AsyncUpload1_FileUploaded"
AllowedFileExtensions
=
"jpeg,jpg,gif,png,bmp"
OnClientValidationFailed
=
"validationFailed"
CssClass
=
"ru Browse"
Style
=
"display: block"
OnClientFileUploadFailed
=
"fileUploadedFailed"
>
<
Localization
Select
=
"Edit"
/>
</
telerik:RadAsyncUpload
>
</
div
>
<
hr
class
=
"qsf-clear-float"
style
=
"display: none"
/>
<
div
class
=
"invalid"
>
</
div
>
</
div
>
</
div
>
</
div
>
<
script
type
=
"text/javascript"
>
function ShowIcon(arg1, arg2) {
var img1 = document.getElementById(arg1);
if (arg2 == 'true') {
if (img1 != null) {
img1.style.display = "block";
}
}
else {
img1.style.display = "none";
}
}
</
script
>
Hi all,
I'm trying to freeze the first two columns of the grid. I'm not able to freeze it. Below is the code that I've used. Any help on this would be highly appreciated.
<
telerik:RadGrid ID="rgSupervisorDataEntry" runat="server" AllowMultiRowSelection="True"
SkinID="grdDynamic" ClientSettings-Scrolling-ScrollHeight="40%" AllowPaging="True"
PageSize="15" OnNeedDataSource="rgSupervisorDataEntry_NeedDataSource" Width="100%">
<headerstyle wrap="true" Width="10%" />
<mastertableview headerstyle-wrap="true" width="150%" TableLayout="Auto">
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Width="100%" />
<Columns>
<telerik:GridClientSelectColumn UniqueName="CheckSelected" HeaderStyle-Width="10">
</telerik:GridClientSelectColumn >
</Columns>
</mastertableview>
<clientsettings allowkeyboardnavigation="true" allowcolumnsreorder="false" reordercolumnsonclient="false">
<Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
<Scrolling AllowScroll="true" FrozenColumnsCount="2" UseStaticHeaders="true" ScrollHeight="300px" />
<Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="true"
ClipCellContentOnResize="true" EnableRealTimeResize="true" />
<ClientEvents OnRowSelecting="RadGrid_RowSelecting" OnRowDeselecting="RadGrid_RowDeselecting" />
</clientsettings>
</telerik:RadGrid>
Thanks in advance!!
<
telerik:RadGrid
ID
=
"grdLineManagement"
runat
=
"server"
AllowFilteringByColumn
=
"true"
AllowCustomPaging
=
"true"
EnableEmbeddedSkins
=
"false"
Skin
=
"eMod"
AllowPaging
=
"true"
PageSize
=
"10"
Width
=
"926"
GridLines
=
"None"
AllowSorting
=
"true"
OnInit
=
"grdLineManagement_Init"
>
<
ClientSettings
AllowColumnsReorder
=
"false"
ReorderColumnsOnClient
=
"true"
>
<
DataBinding
Location
=
"../Services/ManageLinesService.asmx"
SelectMethod
=
"GetChassisPoolLines"
/>
<
Resizing
AllowResizeToFit
=
"true"
AllowColumnResize
=
"true"
/>
<
ClientEvents
OnCommand
=
"grdLineManagement_Command"
OnRowDataBound
=
"grdLineManagement_RowDataBound"
/>
<
Scrolling
AllowScroll
=
"true"
ScrollHeight
=
""
UseStaticHeaders
=
"true"
FrozenColumnsCount
=
"1"
/>
</
ClientSettings
>
<
PagerStyle
AlwaysVisible
=
"True"
PageButtonCount
=
"5"
/>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
<
MasterTableView
TableLayout
=
"Fixed"
CommandItemDisplay
=
"Top"
HierarchyLoadMode
=
"Client"
ExpandCollapseColumn-Visible
=
"false"
>
<
CommandItemTemplate
>
<
div
class
=
'fr tm10 bm10'
>Export: <
asp:ImageButton
ID
=
"btnExcel"
runat
=
"server"
ImageUrl
=
"~/IMAGES/CONTROLS/ExcelExport.jpg"
onclick
=
"btnExcel_Click"
/>
<
asp:ImageButton
ID
=
"btnPdf"
runat
=
"server"
ImageUrl
=
"~/IMAGES/CONTROLS/ExportPDF.jpg"
onclick
=
"btnPdf_Click"
/></
div
>
</
CommandItemTemplate
>
<
Columns
>
<
telerik:GridButtonColumn
UniqueName
=
"Edit"
HeaderStyle-Width
=
"50"
Text
=
"Edit"
CommandName
=
"Edit"
>
</
telerik:GridButtonColumn
>
<
telerik:GridBoundColumn
HeaderStyle-Width
=
"180"
FilterControlWidth
=
"68px"
DataField
=
"ChassisPoolLineId"
HeaderText
=
"ChassisPoolLineId"
UniqueName
=
"ChassisPoolLineId"
FilterListOptions
=
"VaryByDataType"
Visible
=
"false"
>
</
telerik:GridBoundColumn
>
.
.
.
.
.
.
<
telerik:GridBoundColumn
HeaderStyle-Width
=
"125"
HeaderStyle-Font-Bold
=
"true"
FilterControlWidth
=
"85px"
DataField
=
"SalesTaxRate"
DataType
=
"System.Decimal"
HeaderText
=
"Sales Tax Rate"
UniqueName
=
"SalesTaxRate"
FilterListOptions
=
"VaryByDataType"
ItemStyle-HorizontalAlign
=
"Right"
HeaderStyle-HorizontalAlign
=
"Right"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
NestedViewTemplate
>
</
NestedViewTemplate
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"false"
ShowRefreshButton
=
"false"
ShowExportToExcelButton
=
"true"
/>
</
MasterTableView
>
</
telerik:RadGrid
>