Custom Jscript in RadSliding

4 posts, 1 answers
  1. Dip
    Dip avatar
    68 posts
    Member since:
    Jun 2008

    Posted 22 Sep 2008 Link to this post

    I need to make some changes on the RadSlidingZone.js....Therefore
    1) .aspx page in <telerik:RadSlidingZone     ID="RadSlidingZone1"     EnableEmbeddedScripts="false"..../>

    2) I copied/Cut the script from "C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Scripts\Splitter\RadSlidingZone.js"

    3) I paste the script to a .js file in my Visual Studio.

    4) I make the necessary changes to the scripts.

    5) now to import that .js file I would do
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
        <asp:ScriptReference Path="~/JScript.js" />
        </Scripts>
        </asp:ScriptManager>

    I thought that it might works but it doesn't .what am i doing wrong?
    Is there a portion on documentation that Ican follow an example?

    thanks,
    DIP

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 23 Sep 2008 Link to this post

    Hi Dip,

    Would you please provide a more detailed explanation on your requirements and the behavior you want to achieve?  You can use for example the RadSlidingPane's OnClientBeforeExpand and  OnClientExpanded properties and assign them to the desired handlers. Another option is to ovveride only the code you need to change. Once we have a better understanding on your exact scenario, we will do our best to help.

    Sincerely yours,
    Svetlina
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Dip
    Dip avatar
    68 posts
    Member since:
    Jun 2008

    Posted 23 Sep 2008 Link to this post

    I am sorry ....Let me go again...I have a main menu on the top of the page. Now when I click on it I want the sub menu sliding from the side of the window . 


                                        Home       Product         Market                              
     (0)  |
            |
            |    
            |
            |
            |

    Click on "HOME" the sliding menu is suppose to come out from the position (0)
    I hope that is explainatory...

    Thanks,
    DIP
  4. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 26 Sep 2008 Link to this post

    Hi Dip,

    You can find how you can disable the RadSplitter's embedded scripts here. Please, note that we do not support client custom code which means that if you change the default scripts of a control and you experience problems with it later you should examine your custom code and resolve the issue on your own.

    As far as I understood your scenario, you want to have some buttons on the top of the page but you the RadSlidingPanes to expand as they are in the left area of the screen. If so, you can achieve this without overriding the default scripts. What I can suggest in this case is to put the RadSlidingZone along with the RadSlidingPanes in the left area and hide the Tabs. After that you can expand and collapse the RadSlidingPanes by using their client-side API and perform the needed operation in client handlers of your buttons.

    Kind regards,
    Svetlina
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top