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 all,
I've a question about webgrid
I'ts is possible add inside a column header a button?
Hi Rob,
Sorry, but our WebGrid does not support that feature. However, we can use ColumnAction, so, there is a context menu if you click on the column header and create a new menu item to it and works as a new function to it for the workaround.
First, we need to show the column action in the WebGrid by:
<LayoutSettings ShowColumnAction="True">
Then, using the OnColumnContextMenu client action, we can create a new item and call a new function. Here is the snippet:
function WebGrid1_OnColumnContextMenu(controlId, col, menu, isGroup, location) { var WebGrid1 = ISGetObject(controlId); var separator = new WebMenuItem(); separator.Type = "Separator"; separator.Name = "MySeparator"; var menuItem = new WebMenuItem(); menuItem.Text = "New Function"; menuItem.Name = "MyMenu"; menuItem.OnClick = "newFunction"; menu.Items.Add(separator); menu.Items.Add(menuItem); return true; } function newFunction() { alert("This is a new function"); }
I hope it helps. Thank you and have a nice day.
Best Regards,
Andi Santoso
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