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

[Solved] Splitter with embedded PanelBar resizing

6 Answers 182 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gerard
Top achievements
Rank 1
Gerard asked on 13 Jun 2011, 09:08 AM
Hi,

I have a horizontal Spliter with two panes in a Razor layout page. The left pane contains a PanelBar and is used as a menu. The right pane contains the @RenderBody. Whenever I click on an item in the PanelBar, the Splitter's left pane fills the whole page for about half a second before going back to its 180 px width. This is a very anoying flickering effect. Would anybody have a solution to avoid it?

Here is the code:

        <div id="main">
  
            @{Html.Telerik().Splitter().Name("MainSplitter")
                .Orientation(SplitterOrientation.Horizontal)
                .Panes(pane =>
                {
                    pane.Add().Size("180px").Collapsible(true)
                        .Content(() =>
                            @*** Left menu ***@
                            Html.Telerik().PanelBar().Name("leftmenu")
                            .ExpandMode(PanelBarExpandMode.Single)
                            .Items(bar => 
                            {
                                bar.Add().Text("Produits")
                                    .Items(subItem =>
                                    {
                                        subItem.Add().Text("Produits").Action("ProduitListe", "Produit");
                                        subItem.Add().Text("Cartouches").Action("CartoucheListe", "Produit");
                                        subItem.Add().Text("Carcasses").Action("CarcasseListe", "Produit");
                                        subItem.Add().Text("Séries").Action("SerieListe", "Serie");
                                    })
                                    ;
(other menu items omitted)
                            }
                            )
                            .Render()
                          
                    );
                    pane.Add()
                        .Content(
                        @*** Main content ***@
                        @<div id="content">
                            @RenderBody()
                        </div>
                    );
            }).Render();
        }
            @*** Footer ***@
            <div id="footer">
            </div>
        </div>

Thanks

6 Answers, 1 is accepted

Sort by
0
Paulo de Tarso
Top achievements
Rank 1
answered on 14 Jun 2011, 12:54 PM
i have the same issue

Tks
0
Paulo de Tarso
Top achievements
Rank 1
answered on 20 Jun 2011, 01:48 PM
Alguém poderia ajudar?

Tks
0
Paulo de Tarso
Top achievements
Rank 1
answered on 20 Jun 2011, 01:48 PM
Can anyone help?

Tks
0
Michael
Top achievements
Rank 1
answered on 09 Feb 2012, 06:17 PM
I have the same issue too. Has this been resolved?
0
Dimo
Telerik team
answered on 10 Feb 2012, 02:44 PM
Hello,

I am not able to reproduce the described issue with the current official version. Feel free to send a runnable demo for local inspection.

Regards,
Dimo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ali Mehrpour
Top achievements
Rank 1
answered on 15 Nov 2012, 09:47 PM
Hi all,
you can use PartialView and using Ajax for load that into RightPanel.
please find this link : 
http://www.telerik.com/community/code-library/aspnet-mvc/general/using-panelbar-to-load-partial-views-in-splitter-s-pane.aspx


bye.
Tags
Splitter
Asked by
Gerard
Top achievements
Rank 1
Answers by
Paulo de Tarso
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Dimo
Telerik team
Ali Mehrpour
Top achievements
Rank 1
Share this question
or