<?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: How to convert search string to where clause in asp .net mvc</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc</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/how-to-convert-search-string-to-where-clause-in-asp-net-mvc/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on How to convert search string to where clause in asp .net mvc</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23194</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23194</guid>
        	        	<description><![CDATA[<p>Sorry, but I have now too few time. So if you found an error you should post the bug report in the <a href="/blog/?page_id=393/bugs/" target="_blank">Bugs</a> part of the forum.</p>
<p>By the way <strong>Tony</strong> is the developer of jqGrid not me. I use jqGrid in some of my projects and I help other (mostly on the stackoverflow.com) who use jqGrid, but it is only hobby for me.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Mon, 16 May 2011 11:01:05 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on How to convert search string to where clause in asp .net mvc</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23192</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23192</guid>
        	        	<description><![CDATA[<p>I also noticed anoter message in this form which wrote that Enter key is unbinded too early. How to fix this so that Enter/Esc are unbinded only if save was successfull ?</p>
<p>Your Filter class uses switch for every type. Maybe it is possible to use Convert.ChangeType instead of this to remove this switch as described in</p>
<p><a href="http://www.codeproject.com/KB/aspnet/AspNetMVCandJqGrid.aspx?msg=3586944#xx3586944xx" rel="nofollow" target="_blank"><a href="http://www.codeproject.com/KB/" rel="nofollow">http://www.codeproject.com/KB/</a>.....x3586944xx</a></p>
]]></description>
        	        	<pubDate>Mon, 16 May 2011 10:41:26 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on How to convert search string to where clause in asp .net mvc</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23187</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23187</guid>
        	        	<description><![CDATA[<p>Thank you. In case or error my appli returns 4xx http error code.</p>
<p>Same issue is described in</p>
<p>/blog/?page_id=393&#38;forum=1&#38;topic=5672&#38;watch=user<br />/blog/?page_id=393/help/ajax-validation-while-saving-an-inline-edit/</p>
</p>
<p><a href="https://github.com/tonytomov/jqGrid/blob/master/js/grid.inlinedit.js" target="_blank">https://github.com/tonytomov/jqGrid/blob/master/js/grid.inlinedit.js</a></p>
</p>
<p>show two different names:</p>
</p>
<p>line 23 and 103&#160;:</p>
<p>"restoreAfter<strong>Erorr</strong>" : true</p>
<p>line &#160;250:</p>
<p>if(o.restoreAfter<strong>Error</strong> === true) {</p>
</p>
<p>I tried to use</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; function errorfunc(rowid, response) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; restoreAfterError = false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; restoreAfterErorr = false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.restoreAfterError = false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.restoreAfterErorr = false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(response.responseText);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>After error messagebox is shown but Enter key will not work. How to allow Enter key to save again after error ?</p></p>
]]></description>
        	        	<pubDate>Sun, 15 May 2011 23:59:30 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on How to convert search string to where clause in asp .net mvc</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23185</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23185</guid>
        	        	<description><![CDATA[<p>I posted you the link to example which has no editing. It get only data from the server. If you use some kind of editing you should of course implement additional event handlers or in case of inline editing use <strong>errorfunc</strong> additional parameters of <a href="/jqgridwiki/doku.php?id=wiki:inline_editing#editrow" target="_blank">editRow</a>. Look at <a href="http://stackoverflow.com/questions/5718364/jqgrid-validate-on-serverside-for-editing-a-row/5719849#5719849" target="_blank">the answer</a> or <a href="http://stackoverflow.com/questions/4668167/prevent-restoring-row-if-error-was-rised-while-editing/4668387#4668387" target="_blank">another one</a> for example.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Sun, 15 May 2011 21:19:44 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on How to convert search string to where clause in asp .net mvc</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23179</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23179</guid>
        	        	<description><![CDATA[<p>Thank you. Great sample.</p>
<p>Erorr handler used in this code fails if inline editing&#160;is used, eq. if bad data is entered so some row, exception is sent to jqGrid in json format.</p>
<p>jqGrid shows *raw json error data* in default error window in this case, defined parser/error hander&#160;is not executed.</p>
<p>Most important issue: User corrects error and press Enter again to save. In this case&#160;<span style="text-decoration: underline;"><strong>data is *not saved*</strong></span>: Enter pressing is ignored, row still looks like in edit mode. How to allow user to re-save changes in inline editing after error ?</p>
<blockquote>
<p>&#60;%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %&#62;</p>
<p>&#60;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&#62;<br />&#160;&#160;&#160; &#60;script type="text/javascript"&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var lastSel;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var decodeErrorMessage = function (jqXHR, textStatus, errorThrown) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var html, errorInfo, i, errorText = textStatus + &#39;\n&#39; + errorThrown;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (jqXHR.responseText.charAt(0) === &#39;[&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; try {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; errorInfo = $.parseJSON(jqXHR.responseText);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; errorText = "";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (i = 0; i &#60; errorInfo.length; i++) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (errorText.length !== 0) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; errorText += "&#60;hr/&#62;";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; errorText += errorInfo[i].Source + ": " + errorInfo[i].Message;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; catch (e) { }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html = /&#60;body.*?&#62;([\s\S]*)&#60;\/body&#62;/.exec(jqXHR.responseText);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (html !== null &#38;&#38; html.length &#62; 1) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; errorText = html[1];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return errorText;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; };</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var grid = $("#grid");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;&#60;%= ResolveUrl("~/Grid/GetData?_entity=Strings")%&#62;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scroll: 1,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 350,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 740,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160; &#160;&#160;{ name: &#39;Source&#39;, editable: true },<br />&#160;&#160; &#160;&#160;{ name: &#39;Est&#39;, editable: true<br />&#160;&#160; &#160;&#160;},<br />&#160;&#160; &#160;&#160;{ name: &#39;Lvl&#39;, editable: true },<br />&#160;&#160; &#160;&#160;{ name: &#39;Istopic&#39;, editable: true },<br />&#160;&#160; &#160;&#160;{ name: &#39;Critical&#39;, editable: true }<br />&#160;&#160; &#160;],</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ondblClickRow<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : function (id) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (id &#38;&#38; id !== lastSel) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.restoreRow(lastSel);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastSel = id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.editRow(id, true);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autoencode: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;est&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: "Test",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: &#39;&#60;%= ResolveUrl("~/Grid/Save?_entity=Strings")%&#62;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiboxonly: true,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadError: function (jqXHR, textStatus, errorThrown) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // remove error div if exist<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#&#39; + this.id + &#39;_err&#39;).remove();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // insert div with the error description before the grid<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.closest(&#39;div.ui-jqgrid&#39;).before(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;&#60;div id="&#39; + this.id + &#39;_err" style="max-width:&#39; + this.style.width +<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;;"&#62;&#60;div class="ui-state-error ui-corner-all" style="padding:0.7em;float:left;"&#62;&#60;span class="ui-icon ui-icon-alert" style="float:left; margin-right: .3em;"&#62;&#60;/span&#62;&#60;span style="clear:left"&#62;&#39; +<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; decodeErrorMessage(jqXHR, textStatus, errorThrown) + &#39;&#60;/span&#62;&#60;/div&#62;&#60;div style="clear:left"/&#62;&#60;/div&#62;&#39;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadComplete: function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // remove error div if exist<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#&#39; + this.id + &#39;_err&#39;).remove();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.navGrid("#pager", { edit: true, add: true, del: true, refresh: true, search: true, searchtext: "Find" },<br />&#160;&#160;&#160; {},&#160;&#160;&#160;&#160;&#160;&#160;&#160; {},&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {multipleSearch: true, overlay: false }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.jqGrid(&#39;filterToolbar&#39;, { stringResult: true, searchOnEnter: true, defaultSearch: &#39;cn&#39; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.jqGrid(&#39;navButtonAdd&#39;, &#39;#pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { caption: "Filter", title: "Toggle",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; buttonicon: &#39;ui-icon-pin-s&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onClickButton: function () { grid[0].toggleToolbar(); }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;<br />&#160;&#160;&#160; &#60;/script&#62;<br />&#160;&#160;&#160; &#60;table id="grid"&#62;<br />&#160;&#160;&#160; &#60;/table&#62;<br />&#160;&#160;&#160; &#60;div id="pager"&#62;<br />&#160;&#160;&#160; &#60;/div&#62;<br />&#60;/asp:Content&#62;</p>
</blockquote>
]]></description>
        	        	<pubDate>Sun, 15 May 2011 15:32:10 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on How to convert search string to where clause in asp .net mvc</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23176</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23176</guid>
        	        	<description><![CDATA[<p>If you would use Entity Framework to access to the database the code will be relatively easy. Look at the "UPDATED" part of <a href="http://stackoverflow.com/questions/5500805/asp-net-mvc-2-0-implementation-of-searching-in-jqgrid/5501644#5501644" target="_blank">the answer</a>&#160;to download the ASP.NET MVC 2.0 <a href="http://www.ok-soft-gmbh.com/jqGrid/jqGridDemo.zip" target="_blank">Project</a>. The example demonstrate filtering, paging and sorting.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sun, 15 May 2011 12:30:18 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on How to convert search string to where clause in asp .net mvc</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23173</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-convert-search-string-to-where-clause-in-asp-net-mvc#p23173</guid>
        	        	<description><![CDATA[<div>
<div>jqGrid passes search string</div>
<div>
<pre class="prettyprint">&#160;</pre>
<pre class="prettyprint">{"groupOp":"AND","rules":[<br />{"field":"source","op":"eq","data":"searchvalue1"},<br />{"field":"est","op":"eq","data":"searcvvalue2"}<br />]}</pre>
</div>
<div>&#160;</div>
<div>as filters parameter to controller.</div>
<div>
<pre class="prettyprint">&#160;</pre>
<pre class="prettyprint">        public ActionResult GetData(string sidx, string sord, int page, int rows, string filters)</pre>
</div>
<div>&#160;</div>
<div>rules array may contain many and clauses</div>
<div>op is operator.</div>
<div>How to convert it into .net data type and to sql WHERE clause ?</div>
<div>This string should be converted to</div>
<div>source=&#39;searchvalue1&#39; and est=&#39;searchvalue2&#39;</div>
</div>
]]></description>
        	        	<pubDate>Sun, 15 May 2011 09:51:28 +0300</pubDate>
        </item>
</channel>
</rss>