﻿<?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 - Change Edit Type On client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Change-Edit-Type-On-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>Change Edit Type On client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Change-Edit-Type-On-client-side/</link><pubDate>Thu, 16 Jun 2016 02:34:44 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Following JavaScript function will show you how to sets a cell from the selected row not to allow editing.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function SetNoEdit()
{
    var grid = ISGetObject("WebGrid1");

    if (grid.GetSelectedObject() == null)
    {
        alert("Please select a row.");
        return;
    }

    var row = grid.GetSelectedObject().GetRowObject();
    var cell = row.GetCell("ProductName");

    if (row.Type == "Record")
        cell.SetForceNoEdit(true);
    else
        alert("Please select a Record Row");
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The SetForceNoEdit(&lt;em&gt;boolean&lt;/em&gt;) forces this cell not to allow editing. If parameter is null or not specified then the default is true. If this is set to false, the cell would be editable.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Check out this WebGrid live sample which demonstrates WebGrid's client-side API. Click the "Set City as not editable for new row only" button and see how it works.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Change Edit Type On client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Change-Edit-Type-On-client-side/</link><pubDate>Wed, 15 Jun 2016 22:28:10 GMT</pubDate><dc:creator>phanindra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a scenario where I need to disable editing of few cells in a particluar row based on value selected in the drop down/ row selection, Is there any way to set Edit Type = NoEdit for cell dynamically in the client side?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Phanindra&lt;/p&gt;</description></item></channel></rss>