﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Lounge - First WebNavBarItem should load by default when clicked on Nav bar</title><link>http://www.intersoftsolutions.com/Community/Lounge/First-WebNavBarItem-should-load-by-default-when-clicked-on-Nav-bar/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>First WebNavBarItem should load by default when clicked on Nav bar</title><link>http://www.intersoftsolutions.com/Community/Lounge/First-WebNavBarItem-should-load-by-default-when-clicked-on-Nav-bar/</link><pubDate>Sun, 03 Aug 2014 22:52:18 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;br&gt;&lt;br&gt;I’m glad to hear that this workaround suitable for your current scenario.&lt;br&gt;&lt;br&gt;Should you have further question, please do not hesitate to contact us.&lt;br&gt;&lt;br&gt;Thank you.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.&lt;br&gt;&lt;/p&gt;</description></item><item><title>First WebNavBarItem should load by default when clicked on Nav bar</title><link>http://www.intersoftsolutions.com/Community/Lounge/First-WebNavBarItem-should-load-by-default-when-clicked-on-Nav-bar/</link><pubDate>Thu, 31 Jul 2014 09:03:43 GMT</pubDate><dc:creator>jig214@yahoo.com</dc:creator><description>Thanks Hans....It worked fine.</description></item><item><title>First WebNavBarItem should load by default when clicked on Nav bar</title><link>http://www.intersoftsolutions.com/Community/Lounge/First-WebNavBarItem-should-load-by-default-when-clicked-on-Nav-bar/</link><pubDate>Wed, 30 Jul 2014 05:15:19 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;br&gt;&lt;br&gt;Thank you for the question.&lt;br&gt;&lt;br&gt;I have a work around that you might try.&lt;br&gt;I add a couple line of JavaScript code in “OnInitialize” &amp;amp; “OnBarClick” WebNavPane’s client side event.&lt;br&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebDesktop:WebNavPane ID="WebNavPane1" runat="server" Height="100%" Width="100%" OnInitialize="WebNavPane1_OnInitialize" OnBarClick="WebNavPane1_OnBarClick"&amp;gt;&amp;lt;/ISWebDesktop:WebNavPane&amp;gt;&lt;/pre&gt;&lt;p&gt;In those client side events, I add JavaScript code to active the first NavBar item.&lt;br&gt;&lt;/p&gt;&lt;pre&gt;function WebNavPane1_OnBarClick(id, navbar) {
    // To load/active the first NavBarItem
    navbar.Items[0].Click();
}

function WebNavPane1_OnInitialize(id) {
    var navPane = ISGetObject("WebNavPane1");
    var navBar = navPane.GetActiveBar();
    
    // To load/active the first NavBarItem
    navbar.Items[0].Click();
}&lt;/pre&gt;&lt;p&gt;With this workaround, it wills load/active the first NavBar item on the WebNavPane first load or NavBar click.&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.&lt;br&gt;&lt;/p&gt;</description></item><item><title>First WebNavBarItem should load by default when clicked on Nav bar</title><link>http://www.intersoftsolutions.com/Community/Lounge/First-WebNavBarItem-should-load-by-default-when-clicked-on-Nav-bar/</link><pubDate>Mon, 28 Jul 2014 14:16:05 GMT</pubDate><dc:creator>jig214@yahoo.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 11pt;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 11pt;"&gt;I have a query in WebDesktop's Web navigation pane. I have designed my UI as shown in the attached snapshot.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 11pt;"&gt;Everything works and have no issues. &lt;b&gt;But my only requirement is to have the first webnav &amp;nbsp;bar item loaded by default on right hand side when i click on any bar.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;(Currently it just shows options in that bar, but loads none unless you click it)&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 11pt;"&gt;I tried to make use of WebNavPane1_ActiveBarChanged event but it doesn't work if i keep the AutoPostBack &amp;nbsp; &amp;nbsp; &amp;nbsp; property to false and it wont load the first item anyway if i make &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; autopost back=true.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 11pt;"&gt;I just want to load the first bar item to load by default on the righthand side, if i click any bar in the web nav pane. Please help me how can i achieve this.&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>