Stuck on Collapsed

3 posts, 0 answers
  1. Dave Myers
    Dave Myers avatar
    47 posts
    Member since:
    Sep 2008

    Posted 23 Jan 2009 Link to this post

    I have two panels set up that toggle their visiblility.  The first panel contains a splitter with two panes and a split bar in between.  If the first panel is visible, i can expand/collapse my pane's without a problem (initially).  If i collapse the a pane, then make the first panel visible=false....then make it visible=true, the panes are "stuck" in collapse mode.  I cannot resize or expand.  any ideas?
    <asp:Panel ID="BudgetPnl" runat="server"
                                        <table width="100%"
                                            <tr> 
                                                <td colspan="2"
                                                    <telerik:RadSplitter ID="ScheduleBudgetSplitter" runat="server" Height="450" Width="100%"
                                                        <telerik:RadPane ID="SchedulePane" Scrolling="Both" Width="50%" PersistScrollPosition="true" runat="server"
                                                            <des:popupcalendar id="ScheduleCalendar" runat="server" /> 
                                                            <asp:Panel ID="ProjectBudgetProjectsPanel" runat="server"
                                                                <telerik:RadGrid ID="ProjectGrid" runat="server"
                                                                    <ClientSettings AllowRowsDragDrop="true" > 
                                                                        <Selecting AllowRowSelect="true" /> 
                                                                        <Scrolling AllowScroll="false" /> 
                                                                        <ClientEvents OnRowDropping="onProjectRowDropping"/> 
                                                                    </ClientSettings> 
                                                                    <MasterTableView Width="100%" AutoGenerateColumns="false" ClientDataKeyNames="Level,BaseID,StateMode" DataKeyNames="ID" HeaderStyle-Wrap="false"
                                                                        <Columns> 
                                                                            <telerik:GridTemplateColumn HeaderText="&nbsp;" UniqueName="ControlColumn" ItemStyle-Wrap="false"
                                                                                <ItemTemplate> 
                                                                                    <asp:imagebutton id="AddProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_add.gif" OnCommand="AddProjectBtn_Command" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Add A Child Task" runat="server" /> 
                                                                                    <asp:imagebutton id="DeleteProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_delete.gif" OnCommand="DeleteProjectBtn_Command" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Delete Task" runat="server" /> 
                                                                                    <asp:imagebutton id="CancelDeleteProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_reject.gif" OnCommand="CancelDeleteProjectBtn_Command" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Cancel Delete Task" runat="server" />                                                                                 
                                                                                    <asp:imagebutton id="OutdentProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_left.gif" OnCommand="DentProjectBtn_Command" CommandName="outdent" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Outdent Task" runat="server" /> 
                                                                                    <asp:imagebutton id="IndentProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_right.gif" OnCommand="DentProjectBtn_Command" CommandName="indent" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Indent Task" runat="server" /> 
                                                                                </ItemTemplate> 
                                                                            </telerik:GridTemplateColumn> 
                                                                            <telerik:GridTemplateColumn HeaderText="&nbsp;" UniqueName="ProjectColumn" ItemStyle-Wrap="false"
                                                                                <ItemTemplate> 
                                                                                    <input type="hidden" id="ID" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.ID")%>'
                                                                                    <input type="hidden" id="ParentID" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.ParentID")%>'
                                                                                    <input type="hidden" id="Level" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.Level")%>'
                                                                                    <input type="hidden" id="Lineage" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.Lineage")%>'
                                                                                    <input type="hidden" id="HasChildren" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.HasChildren")%>'
                                                                                    <span style="text-decoration:none;"><%#DataBinder.Eval(Container, "DataItem.Padding")%></span
                                                                                    <asp:ImageButton ID="OpenCloseBtn" OnCommand="ProjectOpenCloseBtn_OnCommand" CommandName='<%# DataBinder.Eval(Container,"DataItem.ID")%>' CausesValidation="true" runat="server" /> 
                                                                                    <asp:LinkButton ID="ProjectSelectBtn" OnCommand="ProjectSelectBtn_OnCommand" Text='<%# "(" & DataBinder.Eval(Container,"DataItem.Code") & ")"%>' CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' CausesValidation="true" runat="server"></asp:LinkButton> 
                                                                                    <des:LabelTextBox ID="ProjectNameTxt" Text='<%#DataBinder.Eval(Container, "DataItem.Name")%>' Columns="60" runat="server"></des:LabelTextBox> 
                                                                                    <des:DSRequiredFieldValidator ID="ReqProjectNameTxt" ControlToValidate="ProjectNameTxt"  runat="server"></des:DSRequiredFieldValidator> 
                                                                                </ItemTemplate> 
                                                                            </telerik:GridTemplateColumn> 
                                                                            <telerik:GridTemplateColumn HeaderText="Start Date" UniqueName="StartDateColumn" ItemStyle-Wrap="false"
                                                                                <ItemTemplate> 
                                                                                    <des:LabelDateBox ID="StartDateTxt" SharedCalendarID="ScheduleCalendar" Columns="9" Text='<%# DataBinder.Eval(Container,"DataItem.StartDate","{0:d}")%>' runat="server"></des:LabelDateBox> 
                                                                                    <des:DSRegularExpressionValidator ID="RegStartDateTxt" ControlToValidate="StartDateTxt" ValidationExpressionType="DateType" runat="server"></des:DSRegularExpressionValidator> 
                                                                                </ItemTemplate> 
                                                                            </telerik:GridTemplateColumn> 
                                                                            <telerik:GridTemplateColumn HeaderText="End Date" UniqueName="EndDateColumn" ItemStyle-Wrap="false"
                                                                                <ItemTemplate> 
                                                                                    <des:LabelDateBox ID="EndDateTxt" SharedCalendarID="ScheduleCalendar" Columns="9" Text='<%# DataBinder.Eval(Container,"DataItem.EndDate","{0:d}")%>' runat="server"></des:LabelDateBox> 
                                                                                    <des:DSRegularExpressionValidator ID="RegEndDateTxt" ControlToValidate="EndDateTxt" ValidationExpressionType="DateType" runat="server"></des:DSRegularExpressionValidator> 
                                                                                </ItemTemplate> 
                                                                            </telerik:GridTemplateColumn> 
                                                                            <telerik:GridTemplateColumn HeaderText="Start Date (Actual)" UniqueName="StartDateActualColumn" ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="center"
                                                                                <ItemTemplate> 
                                                                                    <des:LabelDateBox ID="StartDateActualTxt" SharedCalendarID="ScheduleCalendar" Columns="9" Text='<%# DataBinder.Eval(Container,"DataItem.StartDateActual","{0:d}")%>' runat="server"></des:LabelDateBox> 
                                                                                    <des:DSRegularExpressionValidator ID="RegStartDateActualTxt" ControlToValidate="StartDateActualTxt" ValidationExpressionType="DateType" runat="server"></des:DSRegularExpressionValidator> 
                                                                                </ItemTemplate> 
                                                                            </telerik:GridTemplateColumn> 
                                                                            <telerik:GridTemplateColumn HeaderText="End Date (Actual)" UniqueName="EndDateActualColumn" ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="center"
                                                                                <ItemTemplate> 
                                                                                    <des:LabelDateBox ID="EndDateActualTxt" SharedCalendarID="ScheduleCalendar" Columns="9" Text='<%# DataBinder.Eval(Container,"DataItem.EndDateActual","{0:d}")%>' runat="server"></des:LabelDateBox> 
                                                                                    <des:DSRegularExpressionValidator ID="RegEndDateActualTxt" ControlToValidate="EndDateActualTxt" ValidationExpressionType="DateType" runat="server"></des:DSRegularExpressionValidator> 
                                                                                </ItemTemplate> 
                                                                            </telerik:GridTemplateColumn> 
                                                                        </Columns> 
                                                                    </MasterTableView> 
                                                                </telerik:RadGrid> 
                                                            </asp:Panel> 
                                                        </telerik:RadPane> 
                                                        <telerik:RadSplitBar ID="ScheduleBudgetSplitBar" CollapseMode="Both" EnableResize="True" runat="server" /> 
                                                        <telerik:RadPane ID="BudgetPane" Scrolling="X" Width="50%" PersistScrollPosition="true" runat="server"
                                                            <table width="100%"
                                                                <tr> 
                                                                    <td class="NormalBold">Budget Summary</td> 
                                                                </tr> 
                                                                <tr> 
                                                                    <td class="DisplayPanel"
                                                                        <asp:Panel ID="ProjectBudgetSummaryPanel" runat="server"
                                                                            
                                    </asp:Panel> 

  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 26 Jan 2009 Link to this post

    Hello Dave,
    I was able to reproduce the problem and forwarded it to our developers. We will fix it for the next update of the suite.

    For the time being, the only workaround that I can offer you is the following:
    protected void Button1_Click(object sender, EventArgs e) 
        // The Splitter is about to become invisible 
        if (BudgetPnl.Visible) 
        { 
            Session["ExpandedSize"] = this.SchedulePane.GetExpandedSize(); 
        } 
        // The Splitter is about to become visible 
        else 
        { 
            if (Session["ExpandedSize"] != null
            { 
                this.SchedulePane.SetExpandedSize(Unit.Parse(Session["ExpandedSize"].ToString())); 
            } 
        } 
        BudgetPnl.Visible = !BudgetPnl.Visible; 

    I have updated your Telerik points for bringing this issue to our attention.

    Sincerely yours,
    Tsvetie
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dave Myers
    Dave Myers avatar
    47 posts
    Member since:
    Sep 2008

    Posted 26 Jan 2009 Link to this post

    thanks for the work around.
Back to Top