Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6199363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:10:30+00:00 2026-05-24T04:10:30+00:00

Maybe I’ve picked a totally inappropriate/bad example. What I have is a user control

  • 0

Maybe I’ve picked a totally inappropriate/bad example.
What I have is a user control that contains a bunch of dynamically created Telerik RadGrids.
My user control is added to a couple of Telerik RadPageViews that are part of a RadMultiPage that is used alongside a RadTabStrip.
What I need to do is call a Javascript function in my usercontrol to update it’s display whenever it’s parent RadPageView is selected.
So basically I have the following Javascript code:

function OnClientTabSelected(sender, args)
{
    // Get the MyControl that is on this tab
    var myControl = $find("whatever");

    // Call a method that updates the display
    myControl.doSomething();
}

Thanks,

David

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:10:30+00:00Added an answer on May 24, 2026 at 4:10 am

    You can add a wrapper div in your User Control and then extend that div using jQuery to add your desired methods and properties. The trick is to set the div’s id='<%=this.ID%>’ – that way the div has the same ID as the User Control (which is fine because the User Control doesn’t actually render anything – only its contents).

    Then back on your containing page, you can just reference your UserControl’s ID using $get(‘whatever’) – and you’ll actually select your extended div.. which will have all your methods and properties on it.

    The nice thing about this approach is that all of your methods and properties and neatly scoped and nothing is in the global namespace.

    I have a full demo solution and details here if you want more info:
    http://programmerramblings.blogspot.com/2011/07/clientside-api-for-aspnet-user-controls.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Maybe someone can help me out. I have created a simple web user control,
Maybe a silly question but here goes anyway. Example: Let's say I have one
Maybe I just don't know .NET well enough yet, but I have yet to
Maybe world peace would be easier, but I have a problem with the widths
Maybe this is a dumb question, but I have the following behavior in Visual
Maybe that's only possible with SQLITE but is there also a trick to let
Maybe I am out of my mind right now, but I have a question
Maybe someone that has experience with the Jquery Add to Calendar Widget (https://github.com/tardate/jquery.addtocalendar) can
maybe I am being stooped... but the fact is that I am a bit
Maybe I don't understand real purpose of asp mvc routing. I created an application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.