Accessing Page control

4 posts, 0 answers
  1. y_farhan
    y_farhan avatar
    4 posts
    Member since:
    Jul 2011

    Posted 30 Sep 2011 Link to this post

    i have a usercontrol placed in a pageview and this pageview is contained by an aspx page
    Page ->PageView ->Usercontrol

    i want to access "Page" textbox value from "Usercontrol" in Javascript function

    Please guide me how can i access this

    Thanks & Regards
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Sep 2011 Link to this post

    Hello Farhan,

    Here is a sample code to access the PageView content in Javascript from an external button click.

    Javascript:
    <script type="text/javascript">
        function buttonClick()
       {
            var multiPage = $find("<%=RadMultiPage1.ClientID %>");
            var pageView1 = multiPage.get_pageViews().getPageView(0); //accessing pageview with index.
            var combo=multiPage.get_pageViews().getPageView(0).get_element("combo1")
       }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. y_farhan
    y_farhan avatar
    4 posts
    Member since:
    Jul 2011

    Posted 30 Sep 2011 Link to this post

    thanks Shinu for your response.
    But i m getting this error

    Line 54:     function AskForTempPeriod() {
    Line 55: 
    Line 56: var multiPage = $find("<%=RadMultiPage1.ClientID %>");Line 57:         var pageView1 = multiPage.get_pageViews().getPageView(0); //accessing pageview with index.
    Line 58:         varcombo = multiPage.get_pageViews().getPageView(0).get_element("License")

    let me clear it again
    1-i have a page
    2-i have radmultipage on it
    3-dynamically i have attached usercontrol to radmultipage via pageviewContents

    I want to access a textbox value placed at The "Page" in usercontrol through javascript function

    Please help me to do this

    I will really appreciate ur support

    thanks  & regards
  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 03 Oct 2011 Link to this post

    Hi Y_Farhan,

    I've already responded to your support ticket regarding this issue so I'm closing this thread for now.

    Regards,
    Dimitar Terziev
    the Telerik team
    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 their blog feed now
Back to Top