I am having some trouble using the repaint method??
The problem I am having is that the filter is a set of textboxes, drop-down, etc. When I hide them the grid moves up and expands to fill the available space, as I would like it to do. But the grid contents just move up and dont expand.
Here is my javascript code (I am able to access the grid, but the repaint method does not seem to exist):
Here is my Grid (scrolling and static headers are enabled, and it is nested inside a user control, which is nested inside a radpane, inside another container):
The problem I am having is that the filter is a set of textboxes, drop-down, etc. When I hide them the grid moves up and expands to fill the available space, as I would like it to do. But the grid contents just move up and dont expand.
Here is my javascript code (I am able to access the grid, but the repaint method does not seem to exist):
case
"tbrQueryPanel"
:
var
filter = contentWin.document.getElementById(
"filter"
);
if
(filter) {
if
(filter.style.display ==
''
) {
filter.style.display =
'none'
;
}
else
{
filter.style.display =
''
;
}
}
var
grid = contentWin.document.getElementById(
"Grid_RadGrid"
);
grid.repaint();
break
;
Here is my Grid (scrolling and static headers are enabled, and it is nested inside a user control, which is nested inside a radpane, inside another container):
<
telerik:RadScriptManager
ID
=
"ScriptManager"
runat
=
"server"
/>
<
telerik:RadGrid
ID
=
"RadGrid"
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
Font-Names
=
"Verdana"
GridLines
=
"Horizontal"
AllowSorting
=
"True"
ShowGroupPanel
=
"True"
Skin
=
"Office2007"
AllowPaging
=
"True"
PageSize
=
"50"
AutoPostBack
=
"True"
>
<
MasterTableView
>
<
HeaderStyle
Wrap
=
"false"
/>
</
MasterTableView
>
<
ClientSettings
AllowDragToGroup
=
"True"
>
<
Scrolling
UseStaticHeaders
=
"true"
AllowScroll
=
"True"
SaveScrollPosition
=
"True"
/>
<
Selecting
AllowRowSelect
=
"True"
/>
<
ClientEvents
OnRowDblClick
=
"RowDblClick"
/>
</
ClientSettings
>
<
PagerStyle
AlwaysVisible
=
"true"
/>
<
ExportSettings
ExportOnlyData
=
"true"
IgnorePaging
=
"true"
/>
</
telerik:RadGrid
>
...