<?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 get the class ?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-the-class</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-get-the-class/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>federik1982 on How to get the class ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-the-class#p28222</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-the-class#p28222</guid>
        	        	<description><![CDATA[<p>Thanks for the quick answer but i think i cannot apply that solution so easily. I mean maybe I could if I could use at pleasure the code.</p>
<p>But this is the case:</p>
<p>I&#39;m working on a project since few months and all the code is already done. Now&#160; i&#39;m doing an enhancement where the Client wants to have checkboxes on the jqgrid , enables only if the pre-existing&#160; button on the column "X" is enabled.</p>
<p>Now alle the jqgrid are made with a parametric file .js and with java actions where all the attributres are filled and sent to the js in an object. So 99% of the columns are with custom formatters .&#160; (And no i cannot destroy o rework half of the project)</p>
<p>The checkboxes don&#39;t. Those are made with the multiselect param set to true. Then i have no acces (or i think i don&#39;t have) to those cb in the java action where there is the if condition for the mentioned "leading" button. So the only solution i could thought (in my ignorance) was to wait for the jqgrid loading and then looking for the custom class "btn_disabled" setted or not on the button in the column "X".</p>
<p>It orrible i know. And i&#39;m pretty disperate 🙂</p>
]]></description>
        	        	<pubDate>Mon, 04 Feb 2013 17:20:32 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on How to get the class ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-the-class#p28221</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-the-class#p28221</guid>
        	        	<description><![CDATA[<p>If I understand your problem correctly the best choice in your case is the usage of <strong>cellattr</strong> property of colModel. See <a href="http://stackoverflow.com/a/6048865/315935" target="_blank">the answer</a> mor an example of such implementation. The reason is the following: jqGrid internally create the rows of the grid sequensially one after another. The property <strong>cellattr</strong>&#160;of colModel, <strong>rowattr</strong> callback and custom formatters allows you to influence how the cells and rows of the grid will be <em>during creating</em> of the element. Inside of loadComplete all the elements are already placed on the page. So every change of the element at the moment follows many additional recalculation inside of web browser. So modification of large grid can be really very very slow. See in <a href="http://stackoverflow.com/a/12519858/315935" target="_blank">the answer</a> more detailed explanation of the reason.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 04 Feb 2013 16:48:51 +0200</pubDate>
        </item>
        <item>
        	<title>federik1982 on How to get the class ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-the-class#p28220</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-the-class#p28220</guid>
        	        	<description><![CDATA[<p>Hi all, i&#39;m new to the forum and in jqgrid (and jquery too). So forgive me.</p>
<p>The issue: i would like to retrieve the class attribute from a jqgrid cell</p>
</p>
<p>The story: i have a jqgrid with checkboxes and i want to enable or disable those depending if the class "btn_disable" is found or not on a button on the same row.</p>
<p>So I thought , i could go in the loadComplete function and set a loop in all the jqgrid rows . And if in the column "X" the attribute class contain "btn_disable" then set disable on checkbox too.</p>
</p>
<p>I&#39;m sorry i know i&#39;m a newbie 🙂</p>
]]></description>
        	        	<pubDate>Mon, 04 Feb 2013 13:51:38 +0200</pubDate>
        </item>
</channel>
</rss>