How can I get the UniqueName of the RadDock, from within a Custom Close comm

3 posts, 1 answers
  1. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 19 Sep 2013 Link to this post

    Hi,

    I'm using 2013.2.717 of the ASP.NET for AJAX controls.

    I'm using the RadDock control and I have implemented a custom DockCommand for Closing a Dock.

    Q.  In my javascript function that runs when the user closes a Dock, how can I get the dock's UniqueName property?

    The only thing I see that gets it is:  sender._uniqueName

    While that works for now, it seems like since that is a "private field", Telerik could change it without notice and break my application...  So, using that line of code seems dangerous.

    Isn't there a way "more supported way" to get the Dock object's UniqueName property from javascript?

    Thanks,
    Brent
  2. Answer
    Slav
    Admin
    Slav avatar
    1356 posts

    Posted 24 Sep 2013 Link to this post

    Hi Brent,

    There is a getter function get_uniqueName() that will allow you to retrieve the UniqueName of the docks without using the private field. It appears that this function is missing from the client-side API help article of RadDock. It will be included with the next updates of the documentation.

    Regards,
    Slav
    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. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 24 Sep 2013 Link to this post

    Thanks Much!  I had quickly looked through the object's methods while debugging, but I must have missed it....
Back to Top