<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: JQgrid Asp.net problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-aspnet-problem</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/jqgrid-aspnet-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Rumen[Trirand] on JQgrid Asp.net problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-aspnet-problem#p11354</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-aspnet-problem#p11354</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>EditType = CheckBox (and EditType in general) is only used in edit mode, e.g. in inline or edit dialog editing. In standard read only mode, the value of the actual field is displayed (true / false in your case).</p>
<p>If you wish to modify that, you can hook the CellBinding event, check for that column and modify the default "True / False" formatting to anything you wish HTML-wise, e.g.&#160;</p>
</p>
<p>protected void JQGrid1_CellBinding(object sender, Trirand.Web.UI.WebControls.JQGridCellBindEventArgs e)</p>
<p>{</p>
<p><span> </span>if (e.ColumnIndex == 4)</p>
<p>&#160;&#160; &#160; &#160; &#160;{</p>
<p><span> </span>bool value = Convert.ToBoolean(e.CellHtml);</p>
<p><span> </span>if (value)</p>
<p><span> </span>{</p>
<p><span> </span>e.CellHtml = "&#60;input type=&#39;checkbox&#39; disabled=&#39;true&#39; checked=&#39;true&#39;&#62;";</p>
<p><span> </span>}</p>
<p><span> </span>else</p>
<p><span> </span>{</p>
<p><span> </span>e.CellHtml = "&#60;input type=&#39;checkbox&#39; disabled=&#39;true&#39; checked=&#39;false&#39;&#62;";</p>
<p><span> </span>}</p>
<p><span> </span>}</p>
<p>}</p>
<div></div>
]]></description>
        	        	<pubDate>Sat, 31 Oct 2009 11:58:53 +0200</pubDate>
        </item>
        <item>
        	<title>suraj.deshpande on JQgrid Asp.net problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-aspnet-problem#p11169</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-aspnet-problem#p11169</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I am using&#160; Jqgrid ASP.net version. What I am doing is I want to show checkbox on my jqgrid. I did it with the snipped code given below. But I am getting some strange output.</p>
<p>I am getting "True","false" values on grid instead of actual checkbox (which is either in checked/unchecked state). But when I go for editing the corrosponding row, I am getting checkbox.</p>
</p>
<p>My code snippet:</p>
<p>&#60;cc1:JQGrid ID="JQGrid1" runat="server" Width="700px" DataSourceID="Datasource"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; OnCellBinding="JQGrid1_CellBinding" OnRowEditing="JQGrid1_RowEditing" ShowToolBar="true"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;Columns&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cc1:JQGridColumn DataField="ID" PrimaryKey="true" Visible="false" /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cc1:JQGridColumn DataField="Name" Editable="true"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; TextAlign="Center" Width="50" /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cc1:JQGridColumn DataField="IsActive" EditType="CheckBox" Editable="true" TextAlign="Center" /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/Columns&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;ToolBarSettings ShowEditButton="true" ShowAddButton="true" ShowDeleteButton="true" /&#62;<br />&#160;&#160;&#160; &#60;/cc1:JQGrid&#62;</p>
</p>
<p>Help is appreciated.</p>
<p>Thanks.</p>
<p>Suraj</p>
]]></description>
        	        	<pubDate>Wed, 28 Oct 2009 06:11:31 +0200</pubDate>
        </item>
</channel>
</rss>