This is a migrated thread and some comments may be shown as answers.

set scroll position of a RadSlidingPane?

1 Answer 129 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Michel
Top achievements
Rank 1
Michel asked on 17 Jan 2012, 04:51 PM
Hey,

I have a RadSplitter with RadPanes, RadSplitBars, ...
Is it possible to set scroll position of a RadSlidingPane when I'm scrolling an another RadPane?

For exemple, when I click a node in the first RadPane : the same node is clicked in the RadSlidingPane.
When I expand a node in the first RadPane...

But I'd like to have the same rendering when I scroll the first pane and I can't move the content of the RadSlidingPane.

I hope you understand me

Thanks

    Michel

1 Answer, 1 is accepted

Sort by
0
Michel
Top achievements
Rank 1
answered on 19 Jan 2012, 02:28 PM
A solution...

In code-behind :
protected const string constRadSlidingPaneContent = "RAD_SLIDING_PANE_CONTENT_";
protected const string constRadSplitterPaneContent = "RAD_SPLITTER_PANE_CONTENT_";

In javascript :
<script type="text/javascript">
     /* <![CDATA[ */
      $(document).ready(function () {
      $('#<%= constRadSplitterPaneContent + MyFirstPane.ClientID %>').scroll(function() {
         $('#<%= constRadSlidingPaneContent + MyRadSlidingPane.ClientID %>').scrollTop($('#<%= constRadSplitterPaneContent + MyFirstPane.ClientID %>').scrollTop());
          });
 
        $('#<%= constRadSlidingPaneContent + MyRadSlidingPane.ClientID %>').scroll(function() {
               $('#<%= constRadSplitterPaneContent + MyFirstPane.ClientID %>').scrollTop($('#<%= constRadSlidingPaneContent + MyRadSlidingPane.ClientID %>').scrollTop());
        });
     });
     /* ]]> */
</script>

It's work fine for me.

      Michel
Tags
Splitter
Asked by
Michel
Top achievements
Rank 1
Answers by
Michel
Top achievements
Rank 1
Share this question
or