<?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 Advanced Search with 'Masked Input' plugin bug</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug</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/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on JqGrid Advanced Search with 'Masked Input' plugin bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17646</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17646</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
</p>
<p>Thank you for the information. I understood the problem exactly how you as wrote. I see one more a way to fix the problem and to expand a little the features of Search plugin. I posted this in a features request /blog/?page_id=393/feature-request/editrules-in-serach-dialog/. The idea is to integrate <strong>jquery.searchFilter.js</strong> more in jqGrid.</p>
<p>In <strong>grid.inlinedit.js</strong>, <strong>grid.celledit.js</strong> and <strong>grid.formedit.js</strong> is used the method <em>createEl</em> from <strong>grid.common.js</strong>. This method has as an option id, which are a little different for inline edit and form edit. Why one use clone of rows in <strong>grid.searchFilter.js</strong> and not use <em>createEl</em> to build full data element one more time? Usage of <em>createEl</em> could give more advantaged like checkbox type in searching and much more. I&#160;understand, that exact implementing of such way in&#160;<strong>grid.searchFilter.js</strong>&#160;can be not so easy, but with this way it seems to me one can not only fix problems with masked input plugin and make unneeded parameters like <em>datepickerFix</em>. One will receive some nice features in search dialog well known in edit mode (checkbox for example).</p>
<p><span style="font-size: 13.8889px;">Best regards<br /><span style="font-size: 13.8889px;">Oleg&#160;</span></span></p>
]]></description>
        	        	<pubDate>Tue, 01 Jun 2010 14:20:20 +0300</pubDate>
        </item>
        <item>
        	<title>tony on JqGrid Advanced Search with 'Masked Input' plugin bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17635</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17635</guid>
        	        	<description><![CDATA[<p>Hello Oleg,</p>
<p>Thanks for the test case.</p>
<p>Now why the masked plugin work in editing modules and does not work in searchFilter?</p>
<p>The reason for this is that in editing modules we have "uniquie" id&#39;s where we bind the masked plugin and this work ok.</p>
<p>Search Filter work little different.</p>
<p>1. When we have custom dataInit and DataEvents we create a template for all these fields.</p>
<p>2. When we select such one we activate the appropriate table row element.</p>
<p>3. When we click the add button we clone the template and insert it after the active row.</p>
<p>In order to ilustrate this:</p>
<p>Create a form (not using jqGrid) something like this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3202' value='Select Code' data-codeid='sfcode3202' /></p>
<div class='sfcode' id='sfcode3202'>
<p>&#60;form&#8230;.&#62;</p>
<p>&#60;table&#62;</p>
<p>&#60;tr class=&#39;myclass&#39;&#62;</p>
<p>&#60;td&#62; Label &#60;/td&#62; &#60;td&#62; &#60;input class=&#39;field1&#39; type=&#39;text&#39;/&#62;&#60;/td&#62;</p>
<p>&#60;/tr&#62;</p>
<p>&#60;/table&#62;</p>
<p>&#60;/form&#62;</p>
</p>
<p>Apply masked plugin to input of class= &#39;field1&#39;</p>
<p>jQuery(&#34;.field1&#8243;).mask(&#34;99.99&#8243;);</p>
<p>Then clone the table row of class&#39;myclass&#39; and insert it before or after this row<br />var row = jQuery(&#34;.myclass&#34;);<br />var newRow = row.clone(true).insertAfter(row);</p>
</div>
<p>See if the plugin will work &#8211; it will not work.<br />This is a way that searchFilter works.</p>
<p>In order to fix we should unbind all existing events of the cloned row elements and bind it again.<br />Will try to fix this, but not in the upcomming 3.7</p>
<p>Best Regards<br />Tony</p>
]]></description>
        	        	<pubDate>Tue, 01 Jun 2010 12:32:50 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on JqGrid Advanced Search with 'Masked Input' plugin bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17596</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17596</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>Try with the following example from <a href="http://www.ok-soft-gmbh.com/jqGrid/MaskedEdit.htm" rel="nofollow" target="_blank"><a href="http://www.ok-soft-gmbh.com/jq" rel="nofollow">http://www.ok-soft-gmbh.com/jq</a>.....edEdit.htm</a>. In the example there are defined a integer mask on "Tax" and "Total" columns. You can be able use masked input plugin without any problem in "Inline Edit" mode and "Form Edit" mode (saving of data is not implemented in this example), but has a large problem with Advanced&#160;Searching&#160;after adding a second search field.</p>
<p>To reproduce the problem you can do following:</p>
<p>1) make a double-click on a row and try input some data in Tax" and "Total" columns. You will be able input any digits corresponds to the mask. All other&#160;characters&#160;will be blocked.</p>
<p>2) use&#160;navigation&#160;bar to modify a row. You can verify that you can input any digits corresponds to the mask in "Tax" and "Total" fields.</p>
<p>3) use navigation&#160;bar to start the search dialog. Verify that you can input any digits corresponds to the mask in "Tax" or "Total" fields.</p>
<p>4) !!! Now click on "+" to add a second search field.&#160;Independent&#160;of the value of cloneSearchRowOnAdd option we will not be able to make any input in the "Tax" or "Total" fields in the second search field. The problem exist&#160;independent&#160;on what field was selected in the first search dialog field. It can be "Tax" or "Total" fields or it can be any other field like "Inv No".</p>
</p>
<p><span style="font-size: 13.8889px;">So for me the problem look like a bug in jquery.searchFilter.js somewhere inside of jQ.find(".ui-add").click handler (between 388-412 lines). The results are&#160;independent&#160;on the value of cloneSearchRowOnAdd option.</span></p>
<p><span style="font-size: 13.8889px;">Best regards<br /><span style="font-size: 13.8889px;">Oleg</span></span></p>
]]></description>
        	        	<pubDate>Mon, 31 May 2010 02:43:51 +0300</pubDate>
        </item>
        <item>
        	<title>tony on JqGrid Advanced Search with 'Masked Input' plugin bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17527</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17527</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I will see this, but it seems to be a problem in the masked plugin.</p>
<p>Also in order to understand what is happen:</p>
<p>1. Initiallly we create all the needed fields for the multiselect.</p>
<p>2. Again with this we create a needed events. and so on.</p>
<p>3. If you click plus button (to add another field in the search) we get the field</p>
<p>and do jQuery.clone(true) - this mean we clone the elements with all the events binded to him.</p>
</p>
<p>You can construct a simple test.</p>
<p>Create a simple form and attach to one field a masked input.</p>
<p>Then create a button and clone the element with clone(true) - see if the masked input is here.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 28 May 2010 10:02:19 +0300</pubDate>
        </item>
        <item>
        	<title>fromano2802 on JqGrid Advanced Search with 'Masked Input' plugin bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17306</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17306</guid>
        	        	<description><![CDATA[<p>If I can help more, here&#39;s the code I am using:</p>
</p>
<p>&#160;&#160;&#160; jQuery("#east-grid").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;Viewer/GetItems/&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;,&#39;Phone&#39;, &#39;Status&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;ERN_Id&#39;, index: &#39;Id&#39;, width: 1, hidden: true },<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; { name: &#39;Phone&#39;, sortable: false, width: 1, searchoptions: { sopt: [&#39;eq&#39;], datainit: phoneMask} },<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; { name: &#39;Status&#39;, sortable: false, width: 1, stype: &#39;select&#39;,<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editoptions: { value: "A:Active/Changed;X:Re-Identified;R:Reserved;C:Cancelled;O:Rescinded;S:Suspended" },<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; searchoptions: { sopt: [&#39;eq&#39;] }<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; scroll: 1,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 100,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#east-grid_pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; hidegrid: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;Information Items&#39;<br />&#160;&#160;&#160; });<br />&#160;&#160;&#160; jQuery("#east-grid").jqGrid(&#39;navGrid&#39;, &#39;#east-grid_pager&#39;, { view: false, del: false, add: false, edit: false },<br />&#160;&#160;&#160;&#160;&#160;&#160; {}, // default settings for edit<br />&#160;&#160;&#160;&#160;&#160;&#160; {}, // default settings for add<br />&#160;&#160;&#160;&#160;&#160;&#160; {}, // delete instead that del:false we need this<br />&#160;&#160;&#160;&#160;&#160;&#160; {closeOnEscape: true, multipleSearch: true, closeAfterSearch: true }, // search options<br />&#160;&#160;&#160;&#160;&#160;&#160; {} /* view parameters*/<br />&#160;&#160;&#160;&#160; );<br />&#160; <br />&#160; phoneMask = function(elem) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(elem).mask("(999) 999-9999"); <br />&#160;&#160;&#160; };</p>
]]></description>
        	        	<pubDate>Wed, 19 May 2010 17:31:08 +0300</pubDate>
        </item>
        <item>
        	<title>fromano2802 on JqGrid Advanced Search with 'Masked Input' plugin bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17280</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-advanced-search-with-masked-input-plugin-bug#p17280</guid>
        	        	<description><![CDATA[<p>Hi there,</p>
</p>
<p>as stated in <a href="http://stackoverflow.com/questions/2829791/jqgrid-search-with-multiple-text-boxes-for-field&#160;(see" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....&#160;(see</a> answer), the &#39;Masked Input&#39; plugin works only with the first field you apply the mask to, but it doesn&#39;t work if you want to set up more than one field.</p>
<p>Hope you can help,</p>
</p>
<p>Cheers</p>
]]></description>
        	        	<pubDate>Tue, 18 May 2010 17:26:48 +0300</pubDate>
        </item>
</channel>
</rss>