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

The height of a docked slidingpane?

4 Answers 55 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 12 Nov 2007, 05:42 AM
Hello,

I tried several ways, but i do not managed to get the height of a docked slidingpane, at the client side.

i.e. the slidingpane.offSetHeight doesn't work when i try to get the height by that way.
Beside that... at client side when i use get_Docked, to see if the slidingpane is docked, he always return true?
 
What i want to do is to see if the slidingzone is docked, and then get the height of the docked slidingpane.
if (pane.Docked)
{
    var paneheight = pane.height;
}
Maybe i'am missing something, but how can i do this?

Thanks

4 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 12 Nov 2007, 06:16 PM
Hello Marco,
You can get the height of the RadSlidingPane the following way:

pane.GetHeight()

and you can check whether the pane is docked the following way:

pane.IsDocked()

For more information on the clientside api of the RadSplitter, please refer to our online documentation.

Regards,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Marco
Top achievements
Rank 1
answered on 13 Nov 2007, 05:25 PM
Hello Tsvetie,

This doesn't work.
Maybe i'am wrong but the documentation url you mentioned, is pointing to the RadControls for Asp.net Splitter.
I using the Prometheus splitter, and in those documention the propertie to see if the pane is docked is 'get_Docked'.
Also a propertie to get the docked height is missing.

I have tried youre solution but this didn't work, but if you can tell me what propertie i must use for sure (.get_Docked or .IsDocked) , i can figure this maybe out in my code.

Thanks

0
Marco
Top achievements
Rank 1
answered on 14 Nov 2007, 12:50 AM
Well... with alot of experimenting (and time), i have found the solution.

To see if the slidingpane is docked you must use
pane._isDocked

To get the height for the docked pane, you must use:
pane._height

(didn't figure out the underscore, normaly you use that only for private functions?)

p.s.
This was nowhere found, not in the examples or docs.
Without proper docs, JS is very time consuming... in VS2005.

Marco
0
Tsvetie
Telerik team
answered on 14 Nov 2007, 12:04 PM
Hi Marco,
I overlooked the fact that you are using the Prometheus version of the RadSplitter. In case you need information about the clientside api of the Prometheus version of the control, please follow this link.

The methods that you need are the following:

pane1.get_Docked() or pane1.get_docked()

and

pane1.get_Height() and pane1.get_height()

Greetings,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Splitter
Asked by
Marco
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Marco
Top achievements
Rank 1
Share this question
or