<?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 with complex features.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features</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-with-complex-features/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>novogeek on jqGrid with complex features.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p12077</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p12077</guid>
        	        	<description><![CDATA[<p>Hey turya!</p>
<p>thanks a lot for the reply. I&#39;ve built my custom tooltip and integrated, but yeah., cluetip gives better features.</p>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 12:43:22 +0200</pubDate>
        </item>
        <item>
        	<title>turya on jqGrid with complex features.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p11060</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p11060</guid>
        	        	<description><![CDATA[<p>I realize this is long after the fact, but in case anyone else is looking to solve a similar problem (extra content on cell hover).</p>
</p>
<p>You can use cluetip plugin or similar to accomplish this.</p>
<p>&#160; Add a custom formatter option to the colModel that returns a span with class tooltip and rel=&#39;/my/tip/url/&#39; + row_id.&#160;&#160;</p>
<p>&#160; Apply the cluetip in loadComplete.</p>
<p>pseudo example:</p>
<pre style="border: 1px solid black; padding: 10px; background-color: beige; width: 700px;">exampleFormatter = function (cellvalue, options, rowObject) {
     return &#39;&#60;span class="tooltip" rel="/my/tooltip/url?id=&#39;+ options.rowId +&#39;"&#62;&#39; 
         + cellvalue + &#39;&#60;/span&#62;&#39; 
}  

grid_options = {  
    colModel : [  
        {name:&#39;example&#39;, index:&#39;example&#39;, formatter:exampleFormatter,    
            stype:&#39;none&#39;, width:120}
    ],   
    loadComplete: function() {       
       $(&#39;.tooltip&#39;).cluetip({ closePosition: &#39;title&#39;, ajaxCache: false, width: &#39;400px&#39;});
    } 
}
</pre>
<p>or some variation.</p>
]]></description>
        	        	<pubDate>Sat, 24 Oct 2009 18:43:26 +0300</pubDate>
        </item>
        <item>
        	<title>novogeek on jqGrid with complex features.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9315</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9315</guid>
        	        	<description><![CDATA[<p>That&#39;s cool Renso!<img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
<p>This will surely help me in fulfilling one of our requirements.</p>
<p>I&#39;m looking for displaying additional content on hover of a cell. Any inputs on this?</p>
<p>I&#39;ve tried <a href="/blog/?page_id=393/help/tooltip-on-row-hover-with-ajax-content-solution&#38;value=tooltip%25251&#38;search=2" target="_blank">this</a> but it&#39;s not working. Any inputs on this will be appreciated.</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 04:27:41 +0300</pubDate>
        </item>
        <item>
        	<title>Renso on jqGrid with complex features.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9286</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9286</guid>
        	        	<description><![CDATA[<p>Let me just say these a great questions. I have built a CRM app, using jqGrid everywhere.</p>
<p>Our users love it and performs great. I can highly recommend it and have not had issues with  it and Tony&#39;s</p>
<p>support and feedback support is excellent. I had trouble with  cell editing about a year ago and decided to go</p>
<p>with   form editing (modal dialog popup) for all my editing, but I know the cell editing has received a lot of work</p>
<p>and has been improved so cannot speak to what it looks like now.</p>
<p>Since you asked quite a few questions, let me address the Street address, zip code question. What I do this a</p>
<p>lot in places where I want to cram the data together, that in the back-end-DB, is separated, like contact names,</p>
<p>is to have for example the following where I show it for a contact&#39;s full name, with   the ability to update each,</p>
<p>First, Middle and Last Name in edit/add mode (form edit):</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6548' value='Select Code' data-codeid='sfcode6548' /></p>
<div class='sfcode' id='sfcode6548'>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Id&#39;, index: &#39;Id&#39;, width: 35, sortable: true, align: &#8220;center&#8221;, resizable: false, hidden: false, editable: false, editoptions: { readonly: true, size: 0} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;FullNameUrl&#39;, index: &#39;FullNameUrl&#39;, width: 80, <span style="color: #ff0000;">editable: false</span>, sortable: true, align: &#8220;left&#8221;, resizable: true,<span style="color: #ff0000;"> editrules: { edithidden: false</span>} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;FirstName&#39;, index: &#39;FirstName&#39;, width: 40, <span style="color: #ff0000;">editable: true</span>, sortable: true, align: &#8220;left&#8221;, resizable: true, <span style="color: #ff0000;">hidden: true, editrules: { edithidden: true</span>, required: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;MiddleName&#39;, index: &#39;MiddleName&#39;, width: 40,<span style="color: #ff0000;"> editable: true</span>, sortable: true, align: &#8220;left&#8221;, resizable: true, <span style="color: #ff0000;">hidden: true, editrules: { edithidden: true}</span> },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;LastName&#39;, index: &#39;LastName&#39;, width: 40, <span style="color: #ff0000;">editable: true</span>, sortable: true, align: &#8220;left&#8221;, resizable: true, <span style="color: #ff0000;">hidden: true, editrules: { edithidden: true}</span> },</div>
<p>Now, as far as your address question for over several lines, you could do this on the server-side when you define</p>
<p>the format for lets say a FullAddress property:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit603' value='Select Code' data-codeid='sfcode603' /></p>
<div class='sfcode' id='sfcode603'>&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Id&#39;, index: &#39;Id&#39;, hidden: true, hidedlg: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;FullAddress&#39;, index: &#39;FullAddress&#39;, width: 80, editable: false, sortable: true, align: &#8220;left&#8221;, resizable: true, editrules: { edithidden: false} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;AddressTypes&#39;, index: &#39;AddressTypes&#39;, hidden: true, editrules: { edithidden: true, required: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;StreetAddress1&#39;, index: &#39;StreetAddress1&#39;, editable: true, hidden: true, editrules: { edithidden: true, required: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;StreetAddress2&#39;, index: &#39;StreetAddress2&#39;, editable: true, hidden: true, editrules: { edithidden: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;StreetAddress3&#39;, index: &#39;StreetAddress3&#39;, editable: true, hidden: true, editrules: { edithidden: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Cities&#39;, index: &#39;Cities&#39;, hidden: true, editrules: { edithidden: true } },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;States&#39;, index: &#39;States&#39;, hidden: true, editrules: { edithidden: true, required: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;PostalCode&#39;, index: &#39;PostalCode&#39;, hidden: true, editrules: { edithidden: true, required: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Region&#39;, index: &#39;Region&#39;, hidden: true, editrules: { edithidden: true } },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Countries&#39;, index: &#39;Countries&#39;, hidden: true, editrules: { edithidden: true, required: true} }</div>
<p>FullAddress in your DTO is:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4847' value='Select Code' data-codeid='sfcode4847' /></p>
<div class='sfcode' id='sfcode4847'>&#60;ul style=&#8221;text-align: left; list-style-type: none;&#8221;&#62;<br />&#160;&#160;&#160; &#60;li&#62;100 Main Street&#60;/li&#62;<br />&#160;&#160;&#160; &#60;li&#62;Building B&#60;/li&#62;<br />&#160;&#160;&#160; &#60;li&#62;12th Floor&#60;/li&#62;<br />&#160;&#160;&#160; &#60;li&#62;My Great City&#60;/li&#62;<br />&#160;&#160;&#160; &#60;li&#62;Pennsylvania&#60;/li&#62;<br />&#160;&#160;&#160; &#60;li&#62;18966&#60;/li&#62;<br />&#160;&#160;&#160; &#60;li&#62;USA&#60;/li&#62;<br />&#60;/ul&#62;</div>
]]></description>
        	        	<pubDate>Thu, 03 Sep 2009 16:39:49 +0300</pubDate>
        </item>
        <item>
        	<title>novogeek on jqGrid with complex features.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9284</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9284</guid>
        	        	<description><![CDATA[<p>Hehe..got the solution for fetching additional information for each row.</p>
<p>I used the below code for jsonReader:</p>
<pre class="code javascript">$<span class="br0">(</span><span class="st0">"#testGrid"</span><span class="br0">)</span>.<span class="me1">jqGrid</span><span class="br0">(</span><span class="br0">{</span><br />   <span class="me1">jsonReader</span> <span class="sy0">:</span> <span class="br0">{</span><br />      root<span class="sy0">:</span><span class="st0">"invdata"</span><span class="sy0">,</span><br />      page<span class="sy0">:</span> <span class="st0">"currpage"</span><span class="sy0">,</span><br />      total<span class="sy0">:</span> <span class="st0">"totalpages"</span><span class="sy0">,</span><br />      records<span class="sy0">:</span> <span class="st0">"totalrecords"</span><span class="sy0">,</span><br />      repeatitems<span class="sy0">:</span> <span class="kw2">false</span><span class="sy0">,</span><br />      id<span class="sy0">:</span> <span class="st0">""</span><br />   <span class="br0">}</span><br /><span class="br0">}</span><span class="br0">)</span>;<br /><br />When id is set to empty, it is taking row index as id. So row specific user data can be easily fetched using:<br />$<span class="br0">(</span><span class="st0">"</span><span class="st0">#testGrid</span><span class="st0">"</span><span class="br0">)</span>.<span class="me1">getUserDataItem</span><span class="br0">(</span> key <span class="br0">)</span>.<br />Hope what I was doing is correct...<br /></pre>
]]></description>
        	        	<pubDate>Thu, 03 Sep 2009 15:47:44 +0300</pubDate>
        </item>
        <item>
        	<title>novogeek on jqGrid with complex features.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9283</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9283</guid>
        	        	<description><![CDATA[<p>Thank you for the reply Tony.</p>
<p>For (1), custom formatter is working. That is what I am looking for.<img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
<p>For (3), I&#39;m not able to get multi select option in dropdown<img class="spSmiley" style="margin:0" title="Embarassed" src="/blog/wp-content/forum-smileys/sf-embarassed.gif" alt="Embarassed" />.. I think I should place a custom button in a new toolbar and enhance the excel filtering functionality.</p>
<p>For(2), I have not gone till creation of tool tip as I&#39;m facing problems while fetching additional data for each row. This is my problem:</p>
<p>I am storing additional data related to each row in an array and returning that array through &#8220;userdata&#8221; JSON object. When I click on a row in the grid, I need to access the userdata of that row. For this, I&#39;m writing the below code:</p>
<p>onSelectRow: function(id) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var myUserData = $(&#39;#testGrid&#39;).getUserData();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(myUserData[id]);<br />},</p>
<p>This is working when my id is same as index of myUserData array. However, in real case, the id of my row will be like &#8220;1001&#8243;, &#8220;1002&#8243; etc. In this case, how should I access my row specific userdata? I can&#39;t use id here as my myUserData array would go out of bounds. I want to get row index here. How should i do that?</p>
]]></description>
        	        	<pubDate>Thu, 03 Sep 2009 14:48:22 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jqGrid with complex features.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9125</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9125</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>1. Not sure what you mean with this, but you can use a custom formatter for this purpose. If you mean additional row - currently this is not possible.</p>
</p>
<p>2. Maybe you will need to use afterInsertRow event.</p>
</p>
<p>3. To be a honest I never try this , but you can</p>
<p>colModel :[</p>
<p>{name:&#39;somename&#39;... stype:&#39;select&#39;, searchoptions:{multiple:true, size:3}..}</p>
<p>...</p>
<p>]</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 31 Aug 2009 09:22:10 +0300</pubDate>
        </item>
        <item>
        	<title>novogeek on jqGrid with complex features.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9040</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-complex-features#p9040</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
<p>I tried using jqGrid and liked it a lot! So suggested this to our architects and we are using it in a huge ASP.NET project (a website with over 600 pages). Our project has really complex grids, so am wondering how these requirements can be handled. Some of them are:</p>
<p>1. Displaying data in multiple lines in each row. E.g., if the column is address, it should show street name, city, zip in different lines of a single grid row. How should i format data?</p>
<p>2. On hovering hyperlinks of few columns, a popup should show out showing additional data related to that row. I guess we can use plugins like jTip/clueTip etc for the popup, but how should I fetch that additional data along with grid data?</p>
<p>3. We need Ms Excel 2007 type of filtering in the grid. jqGrid 3.5 has integrated search toolbar, in which dropdowns can be added. But there, only one value can be selected. Our requirement is., user should be able to select multiple values in the dropdown.</p>
<p>There are few more, but I am curious to know the solutions to these first. Thanks a lot in advance!</p>
<p>Cheers<img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" />,</p>
<p>Krishna,</p>
<p><a href="http://www.novogeek.com" rel="nofollow" target="_blank">http://www.novogeek.com</a></p>
]]></description>
        	        	<pubDate>Sat, 29 Aug 2009 12:30:17 +0300</pubDate>
        </item>
</channel>
</rss>