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

[Solved] prometheus RadPane Get\SetWidth not working

1 Answer 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
jtby
Top achievements
Rank 1
jtby asked on 04 Apr 2008, 03:52 PM
Hi - I am trying to set the width of a radpane from javascript;

var splitter = $find("RadSplitter1");
var pane = splitter.GetPaneById("RadPane1");
var w = pane.GetWidth();

... but GetWidth() does not work as shown in the example above.  Neither does SetWidth(200).

pane.Resize(400) works fine, as does pane.Collapse() and pane.Expand(pane).

But resize just adds to the current width.  So to resize to exactly the width I need, I either need GetWidth() to work, or SetWidth() to work. 

It must be simple right?  What do you think?

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 07 Apr 2008, 11:47 AM
Hello jtby,

The RadSplitter "Prometheus" has a different client-side API than the Classic RadSplitter. You should use get_Height, set_Width and resize methods instead of GetHeight, SetWidth and Resize which are form the Classic RadSplitter's API.

You can find more information about this in the online "Prometheus" help, in the Controls/RadSplitter section. For your convenience I provide you with some useful links form the above mentioned help documentation:

http://www.telerik.com/help/radcontrols/prometheus/?splitter_MigrationFromRadSplitterClassictoRadSplitterPrometheus

http://www.telerik.com/help/radcontrols/prometheus/?splitter_ClientObject.html



Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
jtby
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or