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

Accessing Page control

3 Answers 67 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
y_farhan
Top achievements
Rank 1
y_farhan asked on 30 Sep 2011, 06:07 AM
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

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Sep 2011, 06:36 AM
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.
0
y_farhan
Top achievements
Rank 1
answered on 30 Sep 2011, 07:00 AM
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
0
Dimitar Terziev
Telerik team
answered on 03 Oct 2011, 03:07 PM
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
Tags
TabStrip
Asked by
y_farhan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
y_farhan
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or