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

Rad Panel height modify

7 Answers 128 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Mahendra s
Top achievements
Rank 1
Mahendra s asked on 09 Sep 2009, 03:04 PM
Hi

I would like to change the height of RAD Pane using javascript

is there any code that i can use


thanks
MS

7 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 10 Sep 2009, 02:54 PM
Hi Mahendra,

Yes, you can easily change the width of a RadPane on the client by using its client API and the set_width method in particular which is listed below:

http://www.telerik.com/help/aspnet-ajax/splitter_clientsideradpane.html

All you should do is to obtain a reference to the particular RadPane either by using the $find method or through the splitter client object and call the set_width method. Note, however, that you can change the width of a RadPane only if it is in  a splitter which is with vertical orientation because when it is horizontal, you should change the width of the whole splitter.

In case you need further assistance or have additional questions, do not hesitate to contact us again.


Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Prashanth
Top achievements
Rank 1
answered on 05 Jun 2013, 10:43 AM
Hi,

The original poster has asked to set the "HEIGHT" and not the "WIDTH".
This can be done using a javascript function:

function resizeUI() {
        var pane= $find('<%= radPane.ClientID %>');
        pane.set_height(500);
    }


It is funny that the support team replied about setting the width. It is even funnier that the list of client side API functions does not list set_height function at all.

Hope this helps someone.
Regards

0
J2K
Top achievements
Rank 1
answered on 27 Apr 2014, 08:10 PM
Thanks Prashanth, was having trouble finding the correct way of setting a pane's height using the client api.  
0
Tom
Top achievements
Rank 1
answered on 10 May 2016, 08:46 PM
The set_height() client side function still is not documented in the online help.
0
Vessy
Telerik team
answered on 13 May 2016, 03:32 PM
Hi Tom,

The set_height() method of the RadPane object is documented in its client-side API reference here:
http://docs.telerik.com/devtools/aspnet-ajax/api/client/Telerik.Web.UI.RadPane#methods-set_height

Let me know in case I can be of any further assistance on the matter.

Regards,
Vessy
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Tom
Top achievements
Rank 1
answered on 13 May 2016, 03:54 PM

Thanks for the pointer, Vessy. I had expected to find it in the Splitter Controls client-side documentation here: http://docs.telerik.com/devtools/aspnet-ajax/controls/splitter/client-side-programming/radpane-object

but I understand this to be a list of "most important"--and that definition is subjective.

Perhaps one of the See Also links should be to the page you reference to remind us where to find the full list.

Thanks again.

0
Vessy
Telerik team
answered on 14 May 2016, 12:58 PM
Hi,

Thank you for the feedback, Tom. I cannot help but agree that adding links to the API reference of the corresponding Splitter objects will be really useful and will add them the "See also" resources.

Have a great day!

Regards,
Vessy
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Splitter
Asked by
Mahendra s
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Prashanth
Top achievements
Rank 1
J2K
Top achievements
Rank 1
Tom
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or