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 was trying to use BestFit option to toggle AutofitColumns property. Please check my code for what need to do to modify the existing Bestfit option. I can use hiddenfield variable to store last selected option of user. My code is
function WebGrid1_OnColumnContextMenu(controlId, column, menu, isGroup, location) { for (i = 0; i < menu.Items.length; i++) { if (menu.Items[i].Name =="mnuBestFit") { var grid = ISGetObject(controlId); if( document.getElementById('hdnCurrentBestFit').value == "1") { document.getElementById('hdnCurrentBestFit').value = "0"; grid.LayoutSettings.AutoFitColumns = false; } else { document.getElementById('hdnCurrentBestFit').value = "1"; grid.LayoutSettings.AutoFitColumns = true; } } } }
regards
Sachin
Please reply as I required to do best fit columns at client side(javascript).
Request had made one year ago, Please do reply ASAP.
when i set to LayoutSettings.AutoFitColumns = true/false does not work.
Regards
Sachin Jain
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