<?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: Validation Trouble.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/validation-trouble</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/validation-trouble/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>simrat on Validation Trouble.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/validation-trouble#p28437</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/validation-trouble#p28437</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>Following is the code for the jqgrid.</p>
</p>
<p>var grid = $("#brokerList").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: <a href="mailto:&#39;@Url.Action(%22List" target="_blank">&#39;@Url.Action("List</a>", "Home")&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: <a href="mailto:&#39;@Url.Action(%22Edit_User" target="_blank">&#39;@Url.Action("Edit_User</a>", "Home")&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;BrokerId&#39;, &#39;Broker Name&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;BrokerId&#39;, index: &#39;BrokerId&#39;, width: 40, align: &#39;left&#39;, key: true, editable: true, editrules: { edithidden: false }, hidedlg: true, hidden: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;BrokerName&#39;, width: 300, align: &#39;left&#39;, editable: true, edittype: &#39;text&#39;,sortable:false, editrules: { edithidden: true, required: true }, hidedlg: true, hidden: false, formoptions: { elmsuffix: &#39; &#60;span style="color:red;padding-left:5px;"&#62;*&#60;/span&#62;&#39; } }<br />&#160;&#160;&#160;]<br />&#160;&#160;&#160;rowNum: 20,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 20, 30, 40, 50],&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#brokerListPager&#39;}).navGrid(&#39;#brokerListPager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; edit: true, add: true, del: true, search: false, refresh: true<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; editBroker);</p>
<p>var editBroker = {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: <a href="mailto:&#39;@Url.Action(%22Edit_Broker" target="_blank">&#39;@Url.Action("Edit_Broker</a>", "Home")&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , closeAfterAdd: true<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , checkOnSubmit: true<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , addCaption: "Edit Broker"<br />&#160;&#160;&#160;, width: "380"<br />&#160;&#160;&#160; };&#160;&#160;&#160;</p>
<p>Here when I click on Submit button on the edit window, it asks me "Data has been changed! Save changes?" and once I click on OK only then it says "Broker Name: Field is required". However it should give the error first and should ask to save only when all the error conditions are satisfied.</p>
]]></description>
        	        	<pubDate>Wed, 13 Mar 2013 06:47:50 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Validation Trouble.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/validation-trouble#p28426</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/validation-trouble#p28426</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Do you have a simple code for the above mentioted problem?</p>
]]></description>
        	        	<pubDate>Tue, 12 Mar 2013 08:24:54 +0200</pubDate>
        </item>
        <item>
        	<title>simrat on Validation Trouble.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/validation-trouble#p28425</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/validation-trouble#p28425</guid>
        	        	<description><![CDATA[<p>Hello Friends,</p>
<p>Do you have any solution for the above mentioned problem?</p>
]]></description>
        	        	<pubDate>Tue, 12 Mar 2013 03:41:28 +0200</pubDate>
        </item>
        <item>
        	<title>simrat on Validation Trouble.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/validation-trouble#p28417</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/validation-trouble#p28417</guid>
        	        	<description><![CDATA[<p>Hi Everybody.&#160;</p>
<p>I am very new to jqgrid and am finding it hard to solve the problems I am facing while working with jqgrid. I have put some simple validations in the editrules tag but when I edit a record and on submission of the record, It pops up with a message saying "Data has been changed! Save changes?". This message seems OK but it appears before the editrules validation checks take place. when I click on yes on this message box then the window shows me the editrule errors at the top. I am finding it hard to change the order of this message box to appear only after all the validations are successfull.</p>
<p>Please help <img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" />.</p>
]]></description>
        	        	<pubDate>Sun, 10 Mar 2013 06:58:16 +0200</pubDate>
        </item>
</channel>
</rss>