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
Hello,
Does anyone know if it's possible to customize the appearance of the FieldList header in pivot charting? Suppose I don't want to display the table name in square brackets at all, or maybe display some other text value instead. How could that be done?
Currently, we do not have a feature to modify the text of the FieldList header. However, this could be achieved using a workaround.
If your grid will show Chart initially, we could use javascript to find the element and modify the inner HTML. Here is the snippet to modify the FieldList caption from Chart Field List [ Orders ] to Chart Field List ( Orders )
function WebGrid1_OnAfterInitialize(controlId) { ModifyDefaultText(controlId); }var t = null;function ModifyDefaultText(controlId) { var grid = ISGetObject(controlId); var containerId = grid.Id; var suffix = "TableFieldList"; var tblElem = document.getElementById(containerId + '_' + suffix); if (tblElem == null) t = setTimeout(function() { ModifyDefaultText(controlId); }, 20); else { t = null; tblElem.getElementsByTagName("table")[1].getElementsByTagName('td')[0].innerHTML = "Chart Field List<br/> ( Orders )"; }}
Thank you Glenn, the workaround worked.
Glenn,
Your solution works great in most cases, but when I'm using it in FF with the Fields List initially hidden, the <br /> is ignored when I click the button and show it. If I have the Fields List exposed on intial load, then the line break is respected, but if the Fields List hidden initially, then I see what's in the attached image. Any ideas?
Thank you,
Dasha.
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