<ClientSettings EnablePostBackOnRowClick="True" EnableRowHoverStyle="True">
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" ScrollHeight="295px" />
<ClientEvents OnScroll="SetScrollPosition" />
<Resizing AllowColumnResize="True" />
</ClientSettings>
<
script type="text/javascript">
function
SetScrollPosition() {
var y = DBSearch1_RadGrid1_GridData.scrollTop;
document.cookie =
"divPos=!^^->" + y + "<-^^!";
}
window.onload =
function() {
var cook = document.cookie;
if (cook.indexOf("!^^->") != 0) {
var start = cook.indexOf("!^^->");
var end = cook.indexOf("<-^^!");
var pos = cook.substring(start + 5, end);
window.setTimeout(
function() {
DBSearch1_RadGrid1_GridData.scrollTop.scrollTop = pos;
}, 0);
}
}
</
script>
The problem I am encountering is that the scroll bar does get set to the value of 'pos' but within a split second it gets reset and is at the first record in the datagrid after a postback. I was wondering if any one has encountered similar issues. Thx