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

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

2 Answers 23 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Brent Hetland
Top achievements
Rank 1
Brent Hetland asked on 19 Sep 2013, 01:48 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Slav
Telerik team
answered on 24 Sep 2013, 09:59 AM
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.
0
Brent Hetland
Top achievements
Rank 1
answered on 24 Sep 2013, 10:58 AM
Thanks Much!  I had quickly looked through the object's methods while debugging, but I must have missed it....
Tags
Dock
Asked by
Brent Hetland
Top achievements
Rank 1
Answers by
Slav
Telerik team
Brent Hetland
Top achievements
Rank 1
Share this question
or