﻿<?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 - Disabled WebGrid allowing input</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabled-WebGrid-allowing-input/</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>Disabled WebGrid allowing input</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabled-WebGrid-allowing-input/</link><pubDate>Tue, 19 Oct 2010 23:13:30 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I’m sorry for not thoroughly read your previous message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I was able to repro the issue on my local test and have forwarded the issue to WebGrid development team to be fixed. The issue is filed under work item #828.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I’ll keep you updated with any new I heard from the team regarding work item #828.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I’m sorry for the inconvenience.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Disabled WebGrid allowing input</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabled-WebGrid-allowing-input/</link><pubDate>Tue, 19 Oct 2010 09:28:39 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;This is not a bug.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;The Enabled property of WebGrid only works on full PostBack action. For example, set the value of Enabled property on the click event of ASP.NET button will get WebGrid in non-editable state (prevent users from entering input).&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;I enclosed one simple sample of WebGrid that will be disabled during the click event of ASP.NET button. WebFlyPostBackManager is utilized in order to turns the full PostBack of ASP.NET Button into FlyPostBack request (a.k.a callback) without javascript codes.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;Please have the attached sample tested on your end and let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I disagree.  I don't understand how this could not be a bug. It's a client-side javascript property to enable/disable a grid but it doensn't fully enable/disable. What is the purpose of the property if I have to iterate through every single cell to set its SetForceNoEdit property which can be a huge performance hit or have to use a DIV element to prevent input? Also, I don't see why a PostBack would be necessary given it's client-side property. That makes no sense to me.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I was able to use this workaround but this should be addressed or the property removed because it doesn't work as expected.  &lt;/p&gt;</description></item><item><title>Disabled WebGrid allowing input</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabled-WebGrid-allowing-input/</link><pubDate>Sun, 17 Oct 2010 22:51:47 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This is not a bug.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The Enabled property of WebGrid only works on full PostBack action. For example, set the value of Enabled property on the click event of ASP.NET button will get WebGrid in non-editable state (prevent users from entering input).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I enclosed one simple sample of WebGrid that will be disabled during the click event of ASP.NET button. WebFlyPostBackManager is utilized in order to turns the full PostBack of ASP.NET Button into FlyPostBack request (a.k.a callback) without javascript codes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please have the attached sample tested on your end and let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Disabled WebGrid allowing input</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabled-WebGrid-allowing-input/</link><pubDate>Fri, 15 Oct 2010 17:31:36 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;In order to prevent users from entering input, you can try following workaround.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Utilize z-index of a div layer.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;When WebGrid is disabled, the z-index of the div layer will be higher than the z-index of WebGrid. and when WebGrid is enabled, the z-index of the div layer is set back to lower than the z-index of WebGrid.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Utilize SetForceNoEdit() method.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;When WebGrid is disabled, invoke SetForceNoEdit() method over cell objects of WebGrid.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; color: #1f497d; font-family: 'segoe ui','sans-serif'"&gt;I enclosed a simple sample that shows how to implement both of those workaround mentioned above. Please let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I confirmed the z-index works. However, I choose not to use the SetForceNoEdit() to avoid any performance hit. Will this bug be fixed in the next release?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Disabled WebGrid allowing input</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabled-WebGrid-allowing-input/</link><pubDate>Tue, 20 Jul 2010 09:40:39 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to prevent users from entering input, you can try following workaround.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;Utilize z-index of a div layer.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;When WebGrid is disabled, the z-index of the div layer will be higher than the z-index of WebGrid. and when WebGrid is enabled, the z-index of the div layer is set back to lower than the z-index of WebGrid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;Utilize SetForceNoEdit() method.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;When WebGrid is disabled, invoke SetForceNoEdit() method over cell objects of WebGrid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I enclosed a simple sample that shows how to implement both of those workaround mentioned above. Please let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Disabled WebGrid allowing input</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabled-WebGrid-allowing-input/</link><pubDate>Mon, 19 Jul 2010 14:14:15 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;I have a WebGrid using BatchUpdate and need a way to prevent the user from entering input. The WebGrid's "Enabled" property prevents the user from clicking into a cell and entering data. However, if the Grid has focus the user can still enter data into the cells. They cannot click on a cell and enter but they can tab from cell to cell and use the keyboard.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Also, is there a way to update the Grid's UI to show the Grid is disabled via JavaScript?&lt;/p&gt;&lt;pre&gt;   function &amp;lt;%=this.ClientID%&amp;gt;_SetEnabled(isEnabled) 
    { 
        try
        {
            // Enable/Disable
            var treatyClaimsGrid = ISGetObject("&amp;lt;%=this.grdTreatyClaims.ClientID%&amp;gt;");
            if (treatyClaimsGrid == null) { return; }
            if (isEnabled == false) 
            { 
                treatyClaimsGrid.UndoAllChanges();                 
            }
            treatyClaimsGrid.Enabled = isEnabled;            
        }
        catch (ex) { ShowJSException(ex); }
    }&lt;/pre&gt;</description></item></channel></rss>