$get instance of extender client side?

Last post 02-10-2009 1:48 PM by tmorris. 3 replies.

Sort Posts:

  • $get instance of extender client side?

    11-22-2006, 4:43 AM
    • Participant
      951 point Participant
    • Fredrik K
    • Member since 03-21-2004, 6:14 PM
    • Norway
    • Posts 161

    Previously, I could do $object('myExtenderProperties')._hide(); from client script to hide a ModalPopupExtender which had a ModalPopupProperties object with ID 'myExtenderProperties'.

    I've just upgraded to beta 2, and $object no longer exists and neither do extenders have the properties collection anymore so I figure I should use the ID of the extender itself instead with $get?

    But $get('myExtender') just returns null... what's the correct way to do this now?

    Cheers,
    Fredrik 

    Blog: http://iridescence.no
    Filed under:
  • Re: $get instance of extender client side?

    11-22-2006, 7:46 AM
    • Contributor
      7,416 point Contributor
    • Garbin
    • Member since 09-17-2004, 12:35 PM
    • Sassari, Italy
    • Posts 1,506
    • ASPInsiders
      TrustedFriends-MVPs

    Hi,

    what I suggest is setting the BehaviorID property of the extender and then using $find to retrieve the behavior instance. $find() accepts the id of a component and returns a reference to it. 

    Alessandro Gallo | Blog | My book: ASP.NET AJAX In Action
  • Re: $get instance of extender client side?

    11-22-2006, 8:20 AM
    • Participant
      951 point Participant
    • Fredrik K
    • Member since 03-21-2004, 6:14 PM
    • Norway
    • Posts 161
    perfect, thanks :)
    Blog: http://iridescence.no
  • Re: $get instance of extender client side?

    02-10-2009, 1:48 PM
    • Member
      23 point Member
    • tmorris
    • Member since 05-18-2007, 2:45 PM
    • Posts 52

    I cannot for the life of me get a handle on my modal?  Could you post your solution?

Page 1 of 1 (4 items)