stackpanel in a webpart?

4 posts, 0 answers
  1. Bob
    Bob avatar
    55 posts
    Member since:
    Apr 2008

    Posted 20 Nov 2008 Link to this post

    I am using a wrappanel but the wraping is not desired.  How can I use a wrappanel in a webpart?
  2. Bob
    Bob avatar
    55 posts
    Member since:
    Apr 2008

    Posted 20 Nov 2008 Link to this post

    Tried this, but d/n work 

    Dim stackPanel As New Telerik.Web.UI.RadAjaxPanel

     

    stackPanel.ID =

    "Panel1"

     

     

     

     

     

    stackPanel.Wrap =

    False

     

     

     

     

     


  3. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 21 Nov 2008 Link to this post

    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.
  4. Bob
    Bob avatar
    55 posts
    Member since:
    Apr 2008

    Posted 21 Nov 2008 Link to this post

    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.

     

Back to Top