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

Masterpage with content page under different folder js not working

5 Answers 479 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 2
Daniel asked on 26 Apr 2011, 02:20 PM
I have searched the forums and google to try and figure this out but I am at a loss, any help is much
appriciated.

Problem is when the content page is not in the same folder as the masterpage, the rad controls stop working

Folder structure
WebApplication
       Site1.Master  - contains radtreeview
Admin
    WebForm1.aspx  - blank content page
In this example the radtreeview in master page stops working, the javascript seems to be the problem,
no client side features work, not even just the default expand collapse

If I put the master page and the content page in the same directory all works as expected.

An example page that is not working can be viewed here
http://simplyfundraising.ageektech.com/webapplication/admin/webform1.aspx

Thank you.
      

5 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 27 Apr 2011, 01:45 PM
Hi Daniel,

We haven't faced such issue before. Even in different folders there must be no reason for the RadTreeView to work normally. Could you please send me your code so I can inspect it and help you?

Thank you!

Kind regards,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Daniel
Top achievements
Rank 2
answered on 27 Apr 2011, 06:30 PM
Thank you for the reply, I have prepared a sample demo illustrating the problem but the forum attachment limits file and size type
uploading, where should I send the sample?
0
Daniel
Top achievements
Rank 2
answered on 27 Apr 2011, 07:33 PM
I found the problem.  With masterpages you should use resolveclienturl ie.
   <script src="<%=ResolveClientUrl("~/webapplication/js/utils.js")%>" type="text/javascript"></script>
This fixed my problem, I had a function call for OnRowDblClick which was unable to find the function using the
normal src path for js includes, once updated with ResolveClientUrl, all worked fine.  Also may need
to put the scripts inside a RadCodeBlock

 Thanks again
0
Veronica
Telerik team
answered on 28 Apr 2011, 07:25 AM
Hi Daniel,

I'm glad that you found the solution to the issue.

Please let me know if you have further questions.

Kind regards,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Sunit
Top achievements
Rank 1
answered on 12 Aug 2014, 05:48 AM
thnks Sir
Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Daniel
Top achievements
Rank 2
Sunit
Top achievements
Rank 1
Share this question
or