﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - get background color from client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/get-background-color-from-client-side/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>get background color from client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/get-background-color-from-client-side/</link><pubDate>Wed, 14 Jul 2010 00:54:16 GMT</pubDate><dc:creator>ismail</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thank you for your hint. i have successfull found out the solution using the OnCellClick client side event&lt;/p&gt;
&lt;p&gt;and with following code&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function DoCellClick(gridId, tblName, rowIdx, cellIdx, cellElm)&lt;br /&gt;{     &lt;br /&gt;           alert(cellElm.style.backgroundColor);&lt;br /&gt;            return true;     &lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>get background color from client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/get-background-color-from-client-side/</link><pubDate>Wed, 14 Jul 2010 00:32:27 GMT</pubDate><dc:creator>ismail</dc:creator><description>&amp;nbsp;&lt;br /&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thanks and regards&lt;/p&gt;
&lt;p&gt;ca&lt;br /&gt;&lt;/p&gt;</description></item><item><title>get background color from client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/get-background-color-from-client-side/</link><pubDate>Tue, 13 Jul 2010 11:33:04 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Ca,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Yes, here is the snippet on how to get background color of the particular cell using onRowSelect client side event.&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;     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;
     }&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I hope it helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>get background color from client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/get-background-color-from-client-side/</link><pubDate>Tue, 13 Jul 2010 09:13:36 GMT</pubDate><dc:creator>ismail</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;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??&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thanks and regards&lt;/p&gt;
&lt;p&gt;ca&lt;/p&gt;</description></item></channel></rss>