<?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: loadonce &#38; hoverrows not working for me</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/loadonce-hoverrows-not-working-for-me</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/loadonce-hoverrows-not-working-for-me/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on loadonce &#38; hoverrows not working for me</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/loadonce-hoverrows-not-working-for-me#p12017</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/loadonce-hoverrows-not-working-for-me#p12017</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>By default jqGrid create a title attribute, so if you have custom mouseover and etc, this attribute will be displayed.</p>
<p>IMHO in gridComplete, before you call qtip you should remove the title attribute (also there is solution for this in the forum)</p>
<p>It can look like (since of 3.6 you can use this in all grid events to refer to a grid):</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9704' value='Select Code' data-codeid='sfcode9704' /></p>
<div class='sfcode' id='sfcode9704'>
<p>gridComplete : functon () {</p>
<p>$(&#8221;td&#8221;,this).removeAttr(&#8221;title&#8221;);</p>
<p>// do other stuff here</p>
<p>});</p>
</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 00:04:35 +0200</pubDate>
        </item>
        <item>
        	<title>brismi on loadonce &#38; hoverrows not working for me</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/loadonce-hoverrows-not-working-for-me#p11880</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/loadonce-hoverrows-not-working-for-me#p11880</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>Thanks for such a quick response. Regarding the two items.</p>
</p>
<p><strong>loadonce </strong></p>
<p>Got it. I will need to loop through my resultset and validate there are children for the category.</p>
</p>
<p><strong>hoverrows </strong></p>
<p>First off - thanks for the bit about where to place the qtip code, works like a charm. qtip is now rendering the tips over each of the embedded images for which I have included the specific class.</p>
<p>Second - I am still getting the jqgrid tip. I even attempted to set the default to false in the grid.base.js portion of the min file - and removed the mouseover code which performed the bind. Still getting the tip? I tested this against a basic non treegrid just to make sure and found the same behaviour. One think I did notice is, in IE when the browser does not have focus, I don&#39;t get the jqgrid. When it does have focus I do get the tip. With FireFox I get the tip each time.</p>
<p>Here is a small image which demonstrates the issue. Is it possible, like the loadonce issue, I an not quite grasping the intent?</p>
<p><a href="http://brianjohnsmith.com/hoverrows.png"><img src="http://brianjohnsmith.com/hoverrows.png" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>Thanks again!</p>
<p>Brian</p>
]]></description>
        	        	<pubDate>Thu, 12 Nov 2009 21:34:41 +0200</pubDate>
        </item>
        <item>
        	<title>tony on loadonce &#38; hoverrows not working for me</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/loadonce-hoverrows-not-working-for-me#p11856</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/loadonce-hoverrows-not-working-for-me#p11856</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I will start with Challange 2.</p>
<p>Let consider what is happen:</p>
<p>You call qtip for elements that have a class "scheduleNavImg". In order to work this these elements should be present into the DOM. Are they present? I think no since you call jqGrid after that where you put these elemnts.</p>
<p>In order towork this you should call this pice of code in gridComplete event.</p>
</p>
<p>Challange 1</p>
<p>If the element has no child nodes, then this element is leaf</p>
<p>Best Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Thu, 12 Nov 2009 10:52:45 +0200</pubDate>
        </item>
        <item>
        	<title>brismi on loadonce &#38; hoverrows not working for me</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/loadonce-hoverrows-not-working-for-me#p11829</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/loadonce-hoverrows-not-working-for-me#p11829</guid>
        	        	<description><![CDATA[<p>Hi Everyone,</p>
</p>
<p>After weeks of monkeying with Telerik to figure out it was not worth the pain, jqGrid has been a pleasure to work with. I am running into two issues which I have read solutions for but they don&#39;t seem to work for me. I have a treegrid (don&#39;t think that matters for these issues otherwise I would have posted in the treegrid section) and it seems that hoverrows and loadonce are not working for me. Perhaps a misunderstanding and I could use some help.</p>
</p>
<p><strong>Challange 1 - loadonce<br /></strong></p>
<p>Loadonce - I succesfully load my treegrid via ajax and most options work. However, there is a root node with no children so I don&#39;t want the ajax to fire again when I expand (or just not expand). I thought loadonce would keep that from happening?</p>
<p><strong>Challange 2 - hoverrows<br /></strong></p>
<p>I was trying to integrate qTip over an image tag I have in the table/tree. However, it doesn&#39;t seem that hoverrows when set to false is cancelling the default behavior and showing the jqgrid tip.</p>
</p>
<p>I was running v3.5 with no success. I just downloaded v3.6, cleared my cache and still no luck. I am using .net MVC and loading the grid in a partial page. The beauty of the product is, below is all my front-end code for nice tree. If anyone has any comments I would greatly appreciate them!</p>
</p>
<p>&#60;script type="text/javascript"&#62;</p>
<p> var gridimgpath = &#39;assets/stylesheets/ui-custom/images&#39;;</p>
<p>$(document).ready(function() {</p>
<p>$("#content .scheduleNavImg").qtip({<br /> content: &#39;This is an active list element&#39;,<br /> show: &#39;mouseover&#39;,<br /> hide: &#39;mouseout&#39;<br /> })</p>
<p>jQuery("#treegrid2").jqGrid({<br />&#160;&#160;&#160; treeGrid: true,<br /> &#160;&#160;&#160; treeGridModel: &#39;adjacency&#39;,<br /> &#160;&#160;&#160; ExpandColumn: &#39;menu&#39;,<br /> &#160;&#160;&#160; ExpandColClick: false,<br /> &#160;&#160;&#160; url: &#39;/Member/GetTree&#39;,<br /> &#160;&#160;&#160; datatype: &#39;xml&#39;,<br /> &#160;&#160;&#160; colNames: ["id", "menu", "menutype", "typeid"],<br /> &#160;&#160;&#160; colModel: [<br /> &#160;&#160;&#160; &#160;&#160;&#160; { name: &#39;id&#39;, key: true, width: 1, hidden: true, sortable: false },<br /> &#160;&#160;&#160; &#160;&#160;&#160; { name: &#39;menu&#39;, width: 200, hidden: false, sortable: false },<br /> &#160;&#160;&#160; &#160;&#160;&#160; { name: &#39;menutype&#39;, width: 1, hidden: true },<br /> &#160;&#160;&#160; &#160;&#160;&#160; { name: &#39;typeid&#39;, width: 1, hidden: true}],<br /> &#160;&#160;&#160; height: 600,<br /> &#160;&#160;&#160; width: 200,<br /> &#160;&#160;&#160; pager: false,<br /> &#160;&#160;&#160; viewrecords: true,<br /> &#160;&#160;&#160; imgpath: gridimgpath,<br /> <span style="color: #0000ff;">&#160;&#160;&#160; loadonce: true,<br /> &#160;&#160;&#160; hoverrows: false,</span><br /> &#160;&#160;&#160; caption: &#39;Categories&#39;,<br /> &#160;&#160;&#160; onSelectRow: function(row_id) { ClientNodeClicked(jQuery("#treegrid2").getCell(row_id, 2), jQuery("#treegrid2").getCell(row_id, 3)); }<br /> })<br /> });</p>
</p>
<p>&#60;/script&#62;<br />&#60;table id="treegrid2" class="scroll"  cellpadding="0"  cellspacing="0"&#62;&#60;/table&#62;</p>
</p>
<p>Much appreciated,</p>
</p>
<p>Brian</p>
]]></description>
        	        	<pubDate>Thu, 12 Nov 2009 00:39:38 +0200</pubDate>
        </item>
</channel>
</rss>