Masterpage with content page under different folder js not working

6 posts, 1 answers
  1. Daniel
    Daniel avatar
    36 posts
    Member since:
    Apr 2009

    Posted 26 Apr 2011 Link to this post

    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.
          

  2. Answer
    Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 27 Apr 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Daniel
    Daniel avatar
    36 posts
    Member since:
    Apr 2009

    Posted 27 Apr 2011 Link to this post

    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?
  5. Daniel
    Daniel avatar
    36 posts
    Member since:
    Apr 2009

    Posted 27 Apr 2011 Link to this post

    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
    
  6. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 28 Apr 2011 Link to this post

    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.

  7. Sunit
    Sunit avatar
    1 posts
    Member since:
    Aug 2014

    Posted 12 Aug 2014 in reply to Daniel Link to this post

    thnks Sir
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017