Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Splitter > set scroll position of a RadSlidingPane?

Not answered set scroll position of a RadSlidingPane?

Feed from this thread
  • Michel avatar

    Posted on Jan 17, 2012 (permalink)

    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
    Attached files

    Reply

  • Michel avatar

    Posted on Jan 19, 2012 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Splitter > set scroll position of a RadSlidingPane?
Related resources for "set scroll position of a RadSlidingPane?"

ASP.NET Splitter Features   |  Documentation   |  Demos  |  Telerik TV   |  Self-Paced Trainer   |  Step-by-step Tutorial  ]