Maintaining a Minimum Width of a RadListBox

2 posts, 0 answers
  1. Robert
    Robert avatar
    253 posts
    Member since:
    Aug 2007

    Posted 02 Dec 2011 Link to this post

    I have a scenario where I have two RadSlidingPanes side by side.  In point of fact, they're nested in the sense that one is on the parent Web Content Form and the other is inside a User Control that is loaded into the form.

        <telerik:RadPane ID="radPaneLeft" runat="server" Scrolling="None" MaxWidth="200"><br>      <telerik:RadSlidingZone ID="radSlidingZone" runat="server" Width="22" Height="0" ClickToOpen="true" DockedPaneId="radSlidingPane"><br>        <telerik:RadSlidingPane ID="radSlidingPane" runat="server" BackColor="#F0F8FF" CssClass="slidingPane" TabView="TextAndImage" IconUrl="~/Images/hierarchy.gif" DockOnOpen="true"><br>          <telerik:RadListBox ID="radListBoxStopes" runat="server" Width="100%" Height="100%" AutoPostBack="true" OnItemCreated="radListBoxStopes_ItemCreated" OnSelectedIndexChanged="radListBoxStopes_SelectedIndexChanged"><br>            <ItemTemplate><br>              <asp:Panel runat="server"><br>                <asp:Label ID="labelStope" runat="server" Text='<%# Eval("Description") %>' CssClass="muckListPrimary" /><br /><br>                <asp:Label ID="labelUnits" runat="server" Text='<%# Eval("Units", "{0:0 units}") %>' CssClass="muckListSecondary" /><br>                <asp:HiddenField ID="hidFieldMaterial" runat="server" Value='<%# Eval("Material").ToString() %>' /><br>              </asp:Panel><br>            </ItemTemplate><br>          </telerik:RadListBox><br>        </telerik:RadSlidingPane><br>      </telerik:RadSlidingZone><br>    </telerik:RadPane><br>

    Please take a look at the first screen capture.  That's the way everything appears when the left sliding pane is collapsed.  Note how the RadListBox displays with a nice width.  But when I expand the left sliding pane the width of the right sliding pane (and the listbox within it) are shrunk down in width.

    I've tried several things but cannot figure out how to maintain a suitable width for the right sliding pane and its child listbox.

    Any advice on what to do?

    Robert



  2. Robert
    Robert avatar
    253 posts
    Member since:
    Aug 2007

    Posted 02 Dec 2011 Link to this post

    Problem solved.  Sorry for bothering you.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top