set scroll position of a RadSlidingPane?

2 posts, 0 answers
  1. Michel
    Michel avatar
    11 posts
    Member since:
    Oct 2011

    Posted 17 Jan 2012 Link to this post

    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
  2. Michel
    Michel avatar
    11 posts
    Member since:
    Oct 2011

    Posted 19 Jan 2012 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top