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,
In my project webgrid is implemented long back. OnClick on GridRow the grid row changes it's color. I want to change that and put my image / style class on row click event. I couldn't find any code to do so. Can anyone guide me, where i should look.. or how to achive that?
Thanks and regards,
Tanmay.
Hello Tanmay,
You can use OnRowSelect Client-side event in order to change row style when you perform row select.
Here is the snippet code to give color when you select a row:
function WebGrid1_OnRowSelect(controlId, tblName, rowIndex, rowEl) { var WebGrid1 = ISGetObject(controlId); for (var i = 0; i < WebGrid1.TotalRows; i++) { var row = WebGrid1.RootTable.GetRow(i); var rowElement = row.GetElement(); rowElement.style.color = "black"; } rowEl.style.color = "blue"; return true; }
Hope this helps.
Thank you.
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