﻿<?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 - WebGrid Orginal Cell value Client side events</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Orginal-Cell-value-Client-side-events/</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>WebGrid Orginal Cell value Client side events</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Orginal-Cell-value-Client-side-events/</link><pubDate>Tue, 01 Dec 2009 22:56:26 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>WebGrid</category><category>Client Side Events</category><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Jocelyn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;Here are the sample code that I made to change a text color of the edited cell with a validation and an alert to show the original value from the client side of onExitEditMode. I hope it can help.&lt;/span&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt; &amp;lt;script language="javascript" type="text/javascript" id="WebGrid1_OnExitEditMode_1"&amp;gt;
  &amp;lt;!--
  function WebGrid1_OnExitEditMode_1(controlId, tblName, editObject)
  {
   var WebGrid1 = ISGetObject(controlId);
   
   var cellObject = editObject.ToCellObject();

   var selectedValue = cellObject.Value;

   if (selectedValue &amp;lt;= 10){

       cellObject.CellElement.style.color = "Red";

   }

   alert("Old Value is " &amp;#43; selectedValue); 
     
   return true;
  }
  --&amp;gt;
&amp;lt;/script&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Thank you,&lt;br /&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid Orginal Cell value Client side events</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Orginal-Cell-value-Client-side-events/</link><pubDate>Tue, 01 Dec 2009 14:56:26 GMT</pubDate><dc:creator>jcrendulic</dc:creator><category>WebGrid</category><category>Client Side Events</category><description>&lt;p&gt;&lt;span style="font-size: 10pt; color: #ff0000"&gt;&lt;span style="font-size: 10pt; color: #ff0000"&gt;&lt;span style="font-size: 10pt"&gt;&lt;span type="sp" iserror="false" originaltext="OnExitEditMode"&gt;I am using the ClientSideEvent OnExitEditMode &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="to"&gt;to &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="validate"&gt;validate &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="cell"&gt;cell &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="values. "&gt;values.  &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="I"&gt;I &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="first"&gt;first &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="want"&gt;want &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="to"&gt;to &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="compare"&gt;compare &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="the"&gt;the &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="orginal"&gt;orginal &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="value"&gt;value &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="to"&gt;to &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="the"&gt;the &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="new"&gt;new &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="value. "&gt;value in this function.  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; color: #ff0000"&gt;&lt;span style="font-size: 10pt; color: #ff0000"&gt;&lt;span style="font-size: 10pt"&gt;&lt;span type="sp" iserror="false" originaltext="How"&gt;1. How &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="do"&gt;do &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="I"&gt;I &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="get"&gt;get &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="the"&gt;the &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="orginal"&gt;orginal &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="value"&gt;value &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="from"&gt;from &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="the"&gt;the &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="grid"&gt;grid &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="on"&gt;on &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="the"&gt;the &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="client"&gt;client &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="side"&gt;side &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="event"&gt;event &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="of"&gt;of &lt;/span&gt;&lt;span type="sp" iserror="false" originaltext="onExitEditMode?"&gt;onExitEditMode?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; color: #ff0000"&gt;&lt;span style="font-size: 10pt; color: #ff0000"&gt;&lt;span style="font-size: 10pt"&gt;&lt;span type="sp" iserror="false" originaltext="onExitEditMode?"&gt;2. Is there a way for me to change the text color of the edited cell if it does not match the orginal value in the client side event &lt;span type="sp" iserror="false" originaltext="onExitEditMode?"&gt;onExitEditMode&lt;/span&gt;?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>