Hello!
I have a problem with horizontal scroll in grid. I generete programmatically columns with fixed width in HeaderStyle.Width on OnInit event, and this grid
<
div
style
=
"width: 100%; display: block;"
>
<
telerik:RadGrid
ID
=
"gvMain"
Width
=
"100%"
runat
=
"server"
OnNeedDataSource
=
"gvMain_OnNeedDataSource"
OnBatchEditCommand
=
"gvMain_OnBatchEditCommand"
AutoGenerateColumns
=
"False"
AllowPaging
=
"True"
PageSize
=
"100"
AllowSorting
=
"True"
AllowFilteringByColumn
=
"True"
Skin
=
"Metro"
Culture
=
"ru-Ru"
>
<
MasterTableView
CommandItemDisplay
=
"TopAndBottom"
AllowAutomaticUpdates
=
"True"
EditMode
=
"Batch"
AllowAutomaticDeletes
=
"False"
AllowAutomaticInserts
=
"False"
DataKeyNames
=
"PersonId"
TableLayout
=
"Fixed"
>
<
BatchEditingSettings
EditType
=
"Cell"
></
BatchEditingSettings
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldAlias
=
"FacultyName"
HeaderText
=
"Факультет"
FieldName
=
"FacultyName"
/>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"FacultyName"
/>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"False"
SaveChangesText
=
"Сохранить"
CancelChangesText
=
"Отменить изменения"
RefreshText
=
"Обновить"
></
CommandItemSettings
>
</
MasterTableView
>
<
PagerStyle
AlwaysVisible
=
"True"
></
PagerStyle
>
<
ClientSettings
AllowKeyboardNavigation
=
"True"
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
FrozenColumnsCount
=
"5"
></
Scrolling
>
</
ClientSettings
>
</
telerik:RadGrid
>
</
div
>
When sum of columns width exceed the page width, I have the Page horizontal scroll instead grid scrolling. How can I fit Grid into parent div? (It's normally work with PivotGrid, but not with a Grid)