<?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: Why error message does not appear</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/why-error-message-does-not-appear</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/discussion/why-error-message-does-not-appear/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kobruleht on Why error message does not appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/why-error-message-does-not-appear#p23448</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/why-error-message-does-not-appear#p23448</guid>
        	        	<description><![CDATA[<p>I added method below to jqGrid based on Oleg sample to show error message. Alert box appears but error div does not appear. How to show error in div ?</p>
</p>
<p>function errorMessage(message) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(message);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#&#39; + $("#grid").id + &#39;_err&#39;).remove();<br />&#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; grid.closest(&#39;div.ui-jqgrid&#39;).before(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;&#60;div id="&#39; + $("#grid").id + &#39;_err" style="max-width:&#39; + $("#grid").style.width +<br />&#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; message +<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#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; }</p>
</p>
<p>&#160;&#160;&#160; &#60;div id="grid1container" style="width: 100%;"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id="grid"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/table&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id="pager"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#60;/div&#62;<br />&#160;</p>
]]></description>
        	        	<pubDate>Fri, 03 Jun 2011 11:45:49 +0300</pubDate>
        </item>
</channel>
</rss>