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
Our current WebMenuBar control is now being used to replace an old control. We need it on the right side of the page and for the items to be right justified and would prefer not to have the extra spacing where there are no menus. Essentially just the menu items.
Attached are examples of how it comes up currently (CurrentMenu), how we'd prefer it to come up (PreferredMenu) and how we'd prefer it without the extra spacing (PreferredMenuNoLeadSpacing).
Would you kindly provide an example of how to achieve what we prefer? Thank you.
[EDIT] I forgot to mention this. We also need to have the default menu item in bold but I can't seem to find how to configure the style of each menu item individually as I'm building the menu items dynamically.
Hi A Yousif,
To make the WebMenuBar right justified I suggest you to add code: dir = "rtl" in the div tag of the WebMenuBar. For extra spacing issue, we don't have any property to do this scenario for now. However, you can adjust the width. I believe, when create WebMenuBar programmatically, you can set the width to achieve this scenario.
You can set the bold property in:CommandStyle property > Active > Font > BoldCommandStyle property > Normal > Font > Bold.CommandStyle property > Over > Font > Bold.
Regards,Lili Khiung
Can you please provide specific steps? I don't see how to change the div tag on the server side. Why isn't this a simple property on the control? Please pass the request on to development that we need these features on this control as I'm sure it'll also benefit other users. Thank you.
Regarding the bolded item, we need only ONE item to be bolded as the default menu item, e.g.,
Menu1 Menu2 Menu3 Menu4
Correct me if I'm wrong, but I believe the CommandStyle property applies to all menu items does it not?
Here's how I'm getting around the right-justification issue on the menu. It's not ideal as it shows the menu "bounce" from left to right as the process below is executed. I'll have to try to hide it and then display it afterward.
var arRows = oMenuBar._HtmlObjH_tbl.getElementsByTagName("tr"); var arMenuColumns = oMenuBar._HtmlObjH_tbl.getElementsByTagName("td"); var iCols = arMenuColumns.length; var padCellClone = arMenuColumns[iCols - 1].cloneNode(true); arRows[0].removeChild(arMenuColumns[iCols - 1]); arRows[0].insertBefore(padCellClone, arMenuColumns[0]);
So basically, clone the "pad" cell on the end, remove it and then insert the clone at the beginning. This accomplishes what hopefully you can add to the control soon in a hot fix/patch/addition.
Regarding the bolding of our "default" menu item, I'm now using client-side JavaScript to set this using this:
oMenu.CommandStyle.Object.style.fontWeight = 'bold';
Why can't I do this, i.e., set the styles, for each individual menu item on the server side? Or if I can, would you show me how as I can't seem to figure it out. Thank you.
I am glad that you can find a work around for the right justified issue.
About the bold issue, for now, you can't set the styles for each individual menu item on server side. But we have made your request to be work item for us. Thank you for sharing with us.
Regards,
Lili Khiung
Hi Lili,
Has this been added to 2011 R1? We have tons of workarounds we're using for features we've requested and would like to know if this, among them, has been added to 2011. Thanks.
Hi,
Your feature request has been posted, we haven't got any update from the developer about your feature request. We will inform you if we get any update from the developer soon.
Lili
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