Access parent page control from tab strip content url page

3 posts, 0 answers
  1. VIJESH
    VIJESH avatar
    13 posts
    Member since:
    Oct 2012

    Posted 01 Aug 2013 Link to this post

    Hi,

    I have one user control which contains radtabstrip. For this I set ContentUrl property of RadPageView to one of the aspx page. This user control I placed in another aspx page. Now I want to access control & client side method of parent page(aspx) from my child page(RadPageView contenturl page). It is urgent. 

    Thanks 
    Vijesh
  2. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 02 Aug 2013 Link to this post

    Hello VIJESH,

    Since the RadPageView is loaded in an iFrame, when its ContentUrl property is used, I would suggest you to implement the following logic : You could expose the needed control with a javascript method and access it from the child page, using window.parent.MethodName(). I have prepared a sample for you, implementing the above suggestion. Please find it attached and let me know if the problem still persist.

    Hope this would help.

    Regards,
    Nencho
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. VIJESH
    VIJESH avatar
    13 posts
    Member since:
    Oct 2012

    Posted 02 Aug 2013 Link to this post

    Thank you so much, it is working fine for me.
Back to Top