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

stackpanel in a webpart?

3 Answers 47 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 20 Nov 2008, 09:41 PM
I am using a wrappanel but the wraping is not desired.  How can I use a wrappanel in a webpart?

3 Answers, 1 is accepted

Sort by
0
Bob
Top achievements
Rank 1
answered on 20 Nov 2008, 09:44 PM

Tried this, but d/n work 

Dim stackPanel As New Telerik.Web.UI.RadAjaxPanel

 

stackPanel.ID =

"Panel1"

 

 

 

 

 

stackPanel.Wrap =

False

 

 

 

 

 

0
Maria Ilieva
Telerik team
answered on 21 Nov 2008, 12:12 PM
Hello Bob,

Could you please elaborate a little bit more on the exact functionality you need the achieve? Also please let me know what do you mean by "I am using a wrappanel but the wrapping is not desired"? More information on your scenario will help us to provide accurate solution for your requirements.

Thank you.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Bob
Top achievements
Rank 1
answered on 21 Nov 2008, 03:14 PM

I have a web part that is constructed like this:

 

Dim stackPanel As New panel 'Telerik.Web.UI.RadPanelBar

 

stackPanel.ID =

"Panel1"

 

 

 

stackPanel.EnableAjaxSkinRendering =

True

 

stackPanel.PersistStateInCookie =

True

 

 

Me.Controls.Add(stackPanel)

 

m_RadTreeFolderHierarchy.ID =

"MJNavTree" ' this name is referenced in client side javascript

 

 

 

stackPanel.Controls.Add(m_RadTreeFolderHierarchy)'  telerik tree control

stackPanel.Controls.Add(_statusText)

' add label to panel

 

stackPanel.Controls.Add(_debuggingTxt)

' add label to panel

 

 

The problem is that by definition a panel control will flow each control based  on the width of the web part.  I want each control to be stacked vertically but can't seem to control this.

I may have to insert multiple panel controls to make this work.

 

Tags
Sharepoint Integration
Asked by
Bob
Top achievements
Rank 1
Answers by
Bob
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or