iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I have a query in WebDesktop's Web navigation pane. I have designed my UI as shown in the attached snapshot.
Everything works and have no issues. But my only requirement is to have the first webnav bar item loaded by default on right hand side when i click on any bar.
(Currently it just shows options in that bar, but loads none unless you click it)
I tried to make use of WebNavPane1_ActiveBarChanged event but it doesn't work if i keep the AutoPostBack property to false and it wont load the first item anyway if i make autopost back=true.
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.
Hello,Thank you for the question.I have a work around that you might try.I add a couple line of JavaScript code in “OnInitialize” & “OnBarClick” WebNavPane’s client side event.
<ISWebDesktop:WebNavPane ID="WebNavPane1" runat="server" Height="100%" Width="100%" OnInitialize="WebNavPane1_OnInitialize" OnBarClick="WebNavPane1_OnBarClick"></ISWebDesktop:WebNavPane>
In those client side events, I add JavaScript code to active the first NavBar item.
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(); }
With this workaround, it wills load/active the first NavBar item on the WebNavPane first load or NavBar click.Hope this helps.Regards,Hans K.
Hello,I’m glad to hear that this workaround suitable for your current scenario.Should you have further question, please do not hesitate to contact us.Thank you.Regards,Hans K.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname