<?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: Search/Sort parameters</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/searchsort-parameters-1</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/feature-request/searchsort-parameters-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>marco.laporta on Search/Sort parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/searchsort-parameters-1#p7966</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/searchsort-parameters-1#p7966</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I would like to ask you if it is possible to have different &#39;index&#39; for search and sort.</p>
<p>I have a servers side asp mvc backend with an ORM (IBatis) and strongly typed class, and I&#39;m writed a set of classes for the jqgrid to do easily the 90% of the common job needed to display a standard grid (with search, order, ect) starting from a collection of typed object.</p>
<p>I have also a framework to dynamically build the sql needed for sort and search operation.</p>
</p>
<p>A common situation when working with data relashionship, is similar as the following</p>
<p>Objects:</p>
<p>class Category {</p>
<p>&#160;&#160; int IdCategory,</p>
<p>&#160; string DesCategory,<br />}</p>
</p>
<p>class Product {</p>
<p>&#160;&#160; int IdProduct,</p>
<p>&#160; string DesProduct,</p>
<p>&#160;&#160; Category category,</p>
<p>}</p>
</p>
<p>Data:</p>
<p>Table Product with a relashionship with Table Category</p>
</p>
<p>The ORM maps object property in table columns</p>
</p>
<p>When I present with jqgrid a list of product, for the colum Category, I display the description &#39;DesCategory&#39; , but in search toolbar i use the select options with &#39;DesCategory&#39; as label and &#39;IdCategory&#39; as value. So:</p>
<p>-) I would like to sort by DesCategory when an user click on the colum header category, because alphabetic order is &#39;natural&#39;.</p>
<p>-) I would like to filter by IdCategory when an user select a search options item, because numeric filters performs better in the DataBase than char filter.</p>
<p>... but i have only the&#160; &#39;index&#39; property.</p>
</p>
<p>Yes, I can use filterModel instead of gridModel but I need to repeate a code silmilar at 90% at the colModel.</p>
</p>
<p>Sorry if this feature is already present, but I don&#39;t found it.</p>
</p>
<p>Best Regards</p>
<p>Marco</p>
]]></description>
        	        	<pubDate>Wed, 22 Jul 2009 09:32:11 +0300</pubDate>
        </item>
</channel>
</rss>