Navbar loads with a delay

This post has 4 replies

Top 500 Contributor
Posts: 24
Nibbler Posted: Tue Aug 28, 2007 @ 7:53 AM
Hi,

the navbar always renders with a delay of up to 1 second.

Is there any way to reduce the time?

Chris
Top 25 Contributor
Posts: 336
sadat Posted: Tue Aug 28, 2007 @ 1:33 PM
How big is the NavBar? How many items and levels?
Top 500 Contributor
Posts: 24
Nibbler Posted: Tue Aug 28, 2007 @ 11:41 PM
Hi Sadat,

The navbar is not very big. Toplevel, 1 Sublevel and about 9 items in all.



There a calls for some dialogs in the navbar. If I remove the dialogs it is a bit better.

What is the best practice for the use of dialogs.
I have the feeling, that they delay the rendering in the browser.

For now it works fine and I'm hooked about the ComponentArt controls but I'm afraid if I include more dialogs, that it is getting slower.
Does it matter where I place (inside/outside of the content-table) etc.

Thanks,
Chris

 

<ComponentArt:NavBar ID="NavBar1" 
	Width="200" CssClass="NavBar" 
	DefaultItemLookId="TopItemLook"
	SiteMapXmlFile="~/navData.xml" 
	ExpandSinglePath="true" 
	FullExpand="false" 
	CollapseDuration="50"
	ExpandDuration="50" 
	DefaultSelectedItemLookId="Level2SelectedItemLook" 
	runat="server">
	<ItemLooks>
		<ComponentArt:ItemLook LookId="TopItemLook" CssClass="TopItem" HoverCssClass="TopItemHover"
			ActiveCssClass="TopItemActive" RightIconUrl="arrow.gif" ExpandedRightIconUrl="arrow_expanded.gif"
			LabelPaddingLeft="15" />
		<ComponentArt:ItemLook LookId="Level2ItemLook" CssClass="Level2Item" HoverCssClass="Level2ItemHover"
			LabelPaddingLeft="15" />
		<ComponentArt:ItemLook LookId="Level2SelectedItemLook" CssClass="Level2ItemSelected"
			HoverCssClass="Level2ItemHover" LabelPaddingLeft="15" />
	</ItemLooks>
</ComponentArt:NavBar>





<code>
<items>
<item Text="Taskmanager" Look-LeftIconUrl="navTasks.gif" DefaultSubItemLookId="Level2ItemLook" SelectedLookId="TopItemLook" SubGroupCssClass="Level2Group" Expanded="true">
<item Text="Task-Liste" Look-LeftIconUrl="navListe.gif" ClientSideCommand="taskListDialog.show()" />
<item Text="Neuer Datenimport-Task" Look-LeftIconUrl="navNew2.gif" NavigateUrl="~/Taskmanager/TaskmanagerImportProcess.aspx"/>
<item Text="Messages" Look-LeftIconUrl="navMessages.gif" ClientSideCommand="messageListDialog.show()" />
</item>

<item Text="Input-Mapping" Look-LeftIconUrl="navInput.gif" DefaultSubItemLookId="Level2ItemLook" SelectedLookId="TopItemLook" SubGroupCssClass="Level2Group" >
<item Text="Import-Schema-Liste" Look-LeftIconUrl="navListe.gif" ClientSideCommand="inputSchemaListDialog.show()" />
<item Text="Neues Import-Schema" Look-LeftIconUrl="navnew2.gif" NavigateUrl="~/Mapping/newInputSchema.aspx" />

</item>

<item Text="Output-Mapping" Look-LeftIconUrl="navOutput.gif" DefaultSubItemLookId="Level2ItemLook" SelectedLookId="TopItemLook" SubGroupCssClass="Level2Group" >
<item Text="Export-Schema" Look-LeftIconUrl="navListe.gif" ClientSideCommand="outputSchemaListDialog.show()" />
<item Text="Neues Export-Schema" Look-LeftIconUrl="navnew2.gif" NavigateUrl="~/Mapping/newOutputmapping.aspx" />

</item>
</items>

</code>
Top 25 Contributor
Posts: 336
sadat Posted: Thu Aug 30, 2007 @ 1:30 PM
Yes, dialogs can be placed anywhere in the page, and can be called from NavBar.
You can also try setting EnableViewState="false" to see if that speeds up anything.
Also make sure you are running the application in debug mode.
Top 500 Contributor
Posts: 24
Nibbler Posted: Thu Aug 30, 2007 @ 9:35 PM
thanks sadat ... the enableViewstat=false helps!

Chris
Page 1 of 1 (5 items)