View Full Version : [CLOSED] click over cell mark edited in gridPanel?

Nov 13, 2013, 10:19 AM
i have a grid in which when i click and get out without changing data over a cell (editable cell & clickToEdit = "1") which containing null/empty data sets edited (red corner mark). how to stop it?

Nov 13, 2013, 12:15 PM
Hi @aditya,

Specifying Type for a ModelField can help. Please see an example.

The first Column reproduces the behavior you are talking about, but the second one doesn't.


<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<script runat="server">
protected void Page_Load(object sender, EventArgs e)
if (!X.IsAjaxRequest)
Store store = this.GridPanel1.GetStore();
store.DataSource = new object[]
new object[] { null, "test" },
new object[] { null, null },
new object[] { "test", null }

protected void TestDirectEventHandler(object sender, DirectEventArgs e)
X.Msg.Alert("DirectEvent", "Hello from Server!").Show();

<!DOCTYPE html>

<head runat="server">
<title>Ext.NET v2 Example</title>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:GridPanel ID="GridPanel1" runat="server">
<ext:Store runat="server">
<ext:Model runat="server">
<ext:ModelField Name="test1" />
<ext:ModelField Name="test2" Type="String" />
<ColumnModel runat="server">
<ext:Column runat="server" Text="Test 1" DataIndex="test1">
<ext:TextField runat="server" />
<ext:Column runat="server" Text="Test 2" DataIndex="test2">
<ext:TextField runat="server" />
<ext:CellEditing runat="server" ClicksToEdit="1" />

Nov 13, 2013, 12:32 PM
thanks a lot @Daniil,
it works. sorry for taking your valuable time for this small issue. i am new in ext.net. you can close it now.

Nov 13, 2013, 12:42 PM
I would say it is not so simple issue.

Anyway, we are always glad to help!