Hi,
I have a grid placed inside Div. I am displaying about 15 columns so when it goes long, Div displays Scrollbar to move right.
The problem is that somehow Grid displays a Vertical line exactly where Div's right border ends. I mean when we move scrollbar to right, it displays one Vertical line in between of column, as soon as we move scrollbar.
If I change my Div width to 1500 or more then grid fits inside Div so does not display this Vertical line but when div displays scrollbar and have to scroll to right, it displays a vertical line exactly from where scroll starts on right side.
But I cannot increase my Div width because of my screen size.
Please let me know what settings do I need to add for this?
Here is my code.
Thanks in advance,
I have a grid placed inside Div. I am displaying about 15 columns so when it goes long, Div displays Scrollbar to move right.
The problem is that somehow Grid displays a Vertical line exactly where Div's right border ends. I mean when we move scrollbar to right, it displays one Vertical line in between of column, as soon as we move scrollbar.
If I change my Div width to 1500 or more then grid fits inside Div so does not display this Vertical line but when div displays scrollbar and have to scroll to right, it displays a vertical line exactly from where scroll starts on right side.
But I cannot increase my Div width because of my screen size.
Please let me know what settings do I need to add for this?
Here is my code.
.Scrollgrid
{
position: static;
OVERFLOW: scroll; border:2px; border-style:solid;
}
.panelStyle
{
width:100%;
}
<
asp:Panel
runat
=
"server"
ID
=
"pnlOverview"
CssClass
=
"panelStyle"
>
<
table
width
=
"100%"
>
<
tr
align
=
"center"
>
<
td
>
<
div
class
=
"Scrollgrid"
style
=
"width: 1100px; height: 600px;"
>
<
telerik:RadGrid
ID
=
"RadGridAllRequests"
runat
=
"server"
AllowPaging
=
"true"
AllowSorting
=
"true"
AllowFilteringByColumn
=
"true"
AutoGenerateColumns
=
"False"
GridLines
=
"Both"
OnNeedDataSource
=
"RadGridAllRequests_needdatasource"
OnItemDataBound
=
"RadGridAllRequests_ItemDataBound"
OnItemCreated
=
"RadGridAllRequests_ItemCreated"
OnItemCommand
=
"RadGridAllRequests_ItemCommand"
AllowMultiRowSelection
=
"true"
SelectedItemStyle-CssClass
=
"SelectedItem"
Width
=
"100%"
Skin
=
"WebBlue"
>
<
PagerStyle
Mode
=
"NextPrevNumericAndAdvanced"
Position
=
"TopAndBottom"
AlwaysVisible
=
"true"
/>
<
ClientSettings
EnableRowHoverStyle
=
"true"
EnablePostBackOnRowClick
=
"true"
>
<
Selecting
AllowRowSelect
=
"true"
/>
</
ClientSettings
>
<
MasterTableView
ShowHeadersWhenNoRecords
=
"true"
AllowFilteringByColumn
=
"true"
DataKeyNames
=
"RequestInfoID"
>
<
Columns
>
<!-- I am displaying about 15 columns here -->
</
Columns
>
<
EditFormSettings
>
<
PopUpSettings
ScrollBars
=
"None"
/>
</
EditFormSettings
>
<
ExpandCollapseColumn
Resizable
=
"False"
Visible
=
"False"
>
<
HeaderStyle
/>
</
ExpandCollapseColumn
>
<
RowIndicatorColumn
Visible
=
"False"
>
<
HeaderStyle
/>
</
RowIndicatorColumn
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
div
>
</
td
>
</
tr
>
</
table
>
</
asp:Panel
>
Thanks in advance,