In my application I have 2 RadGrids, both have the same width.
Now I need to synchronize the scrollbars in a mirror way, that means if I move the scrollbar of the second RadGrid to the right, the Scrollbar of the first RadGrid shall move to the left.
Here is my code which doesn't work exactly (there is a differenz of 40px):
Does someone see the fault?
thanks
Christian
Now I need to synchronize the scrollbars in a mirror way, that means if I move the scrollbar of the second RadGrid to the right, the Scrollbar of the first RadGrid shall move to the left.
Here is my code which doesn't work exactly (there is a differenz of 40px):
function Scroll2(sender, eventArgs) |
{ |
var RadGrid1 = $find("<%= RadGrid1_ClientID %>"); |
if(RadGrid1 != null) |
{ |
var scrollArea = RadGrid1.GridDataDiv; |
scrollArea.scrollTop = eventArgs.get_scrollTop(); |
scrollAreascrollArea.scrollLeft = scrollArea.offsetWidth-eventArgs.get_scrollLeft(); |
} |
} |
Does someone see the fault?
thanks
Christian