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

Custom Jscript in RadSliding

3 Answers 52 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Dip
Top achievements
Rank 1
Dip asked on 22 Sep 2008, 07:27 PM
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

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 23 Sep 2008, 02:09 PM
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.
0
Dip
Top achievements
Rank 1
answered on 23 Sep 2008, 02:43 PM
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
0
Accepted
Svetlina Anati
Telerik team
answered on 26 Sep 2008, 09:27 AM
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.
Tags
Splitter
Asked by
Dip
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Dip
Top achievements
Rank 1
Share this question
or