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 all,
I have one button and on its click event i want to fire click event of checkall checkbox that is on header of the web grid.
No matter how to called either javascript or server side.
Regards
Hiren Andharia
This specific scenario will be perfect using html button and call javascript function in on click event to handle the select/deselect rows by checking/un-checking the IsRowChecker.
First, we’ll need an input button.
<input id="Button1" type="button" value="Select/Deselect All Rows" onclick="return Button1_onclick()" />
Next, in OnClick event of the button, we need to get the input element of the IsRowChecker; and then simply call “click()” method of the checkbox input element to trigger ‘wgCheckBoxHeaderClick(this)’ function. The ‘wgCheckBoxHeaderClick(this)’ function is the onclick function of the IsRowChecker checkbox input element.
function Button1_onclick() { var WebGrid1 = ISGetObject("WebGrid1"); var rowCheckerElm = WebGrid1.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLTABLE).cells[1].childNodes[0].childNodes[0].childNodes[0]; rowCheckerElm.click(); return true; }
Please let us know whether this helps or not.
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