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,
how can i get the background color of the particular cell from the client side. I know how to get the get the cell value of the selected row. is there any way to get the background color in similar manner??
thanks and regards
ca
Hi Ca,
Yes, here is the snippet on how to get background color of the particular cell using onRowSelect client side event.
function WebGrid1_OnRowSelect(controlId, tblName, rowIndex, rowEl) { var WebGrid1 = ISGetObject(controlId); rowEl.cells[2].style.setAttribute("backgroundColor", "Red", true); alert(rowEl.cells[2].style.backgroundColor); return true; }
I hope it helps. Thank you and have a nice day.
Best Regards,
Andi Santoso
thank you for your hint. i have successfull found out the solution using the OnCellClick client side event
and with following code
function DoCellClick(gridId, tblName, rowIdx, cellIdx, cellElm){ alert(cellElm.style.backgroundColor); return true; }
thank you for your reply. here i need to get the backgroud color from OnCellClick event . Because my scenario is something like this. In my webgrid , i am keeping one cell as a hyperlink to some pdf file. And i want to check the backround color and change the color only when user click on that particular cell.
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