<?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: Customize the confirmation window</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/customize-the-confirmation-window</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/customize-the-confirmation-window/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Customize the confirmation window</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customize-the-confirmation-window#p19857</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customize-the-confirmation-window#p19857</guid>
        	        	<description><![CDATA[<p>Hello Tom!</p>
<p>You current code will be run only one time - at the initialisation time when you call &#39;navGrid&#39; function. I wrote you before that if you want to have dynamic message (if the text will be different at different calls) like you as want you have to do this in beforeShowForm event handle. You can do like following</p>
<p>jQuery("#list").jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{edit:false,view:true}, //options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{}, // edit options<br />&#160;&#160;  &#160;&#160;&#160; &#160;&#160;&#160; &#160;{height:290,reloadAfterSubmit:false,jqModal:false,  closeOnEscape:true,bottominfo:"Fields marked with (*) are required",  closeAfterAdd: true}, // add options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;  &#160;{reloadAfterSubmit:true,jqModal:true, closeOnEscape:true,caption:  "Delete&#8230;",<strong>width:300</strong><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>beforeShowForm: function(form) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("td.delmsg",form).html("Do you really want delete the row with &#60;b&#62;id=" +<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;) + "&#60;/b&#62;?");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</strong>}, // del options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{closeOnEscape:true}, // search options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{height:250,jqModal:false,closeOnEscape:true} // view options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;)};</p>
<p>It is an example only what you can do to ovewrite the default text. On the page <a href="http://www.ok-soft-gmbh.com/jqGrid/CustomDelMsg.htm" rel="nofollow" target="_blank"><a href="http://www.ok-soft-gmbh.com/jq" rel="nofollow">http://www.ok-soft-gmbh.com/jq</a>.....DelMsg.htm</a> you can how it work live. I changed the width parameter of the delete message box only to make it without scroll bar. You can choose the value of width depend on the size of the text which you will display.</p>
<p>Best regards<br />Oleg</p></p>
]]></description>
        	        	<pubDate>Sat, 18 Sep 2010 20:11:45 +0300</pubDate>
        </item>
        <item>
        	<title>tjones1105 on Customize the confirmation window</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customize-the-confirmation-window#p19847</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customize-the-confirmation-window#p19847</guid>
        	        	<description><![CDATA[<p>I apriciate your response, but I&#39;m just as confused.</p>
<p>I&#39;m trying to figure out how to add the row id and then maybe some cell text to the "msg:" statement.&#160;</p>
</p>
<p>Thanks,</p>
<p>tom</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1249' value='Select Code' data-codeid='sfcode1249' /></p>
<div class='sfcode' id='sfcode1249'>jQuery(&#34;#list&#34;).jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{edit:false,view:true}, //options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{}, // edit options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{height:290,reloadAfterSubmit:false,jqModal:false, closeOnEscape:true,bottominfo:&#34;Fields marked with (*) are required&#34;, closeAfterAdd: true}, // add options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{reloadAfterSubmit:true,jqModal:true, closeOnEscape:true, caption: &#34;Delete...&#34;, msg: &#34;Delete me now!&#34;+rowid}, // del options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{closeOnEscape:true}, // search options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{height:250,jqModal:false,closeOnEscape:true} // view options<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;)};</div>
]]></description>
        	        	<pubDate>Sat, 18 Sep 2010 00:35:50 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Customize the confirmation window</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customize-the-confirmation-window#p19835</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customize-the-confirmation-window#p19835</guid>
        	        	<description><![CDATA[<p>The answer on your question depends on how you use <a href="/jqgridwiki/doku.php?id=wiki:form_editing#delgridrow" target="_blank">delGridRow</a>: directly of indirectly (per navGrid for example). In general you can include in the list of <a href="/jqgridwiki/doku.php?id=wiki:form_editing#delgridrow" target="_blank">delGridRow</a>&#160;options any options from $.jgrid.del inclusive <strong>msg</strong>. So you can sure</p>
<p>delGridRow(rowId, {msg: "Are you sure you want to delete BlaBlaBla?"});</p>
<p>you can also set <strong>msg</strong> parameter of delGridRow as a part of prmDel parameter of the <a href="/jqgridwiki/doku.php?id=wiki:navigator#definition" target="_blank">navGrid</a> function.</p>
<p>If you want to have the text absolutely dynamically you will probably have to use beforeShowForm event handle of the <a href="/jqgridwiki/doku.php?id=wiki:form_editing#delgridrow" target="_blank">delGridRow</a>.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Fri, 17 Sep 2010 15:40:16 +0300</pubDate>
        </item>
        <item>
        	<title>tjones1105 on Customize the confirmation window</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customize-the-confirmation-window#p19824</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customize-the-confirmation-window#p19824</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I would like to know how to customize the Delete row modal dialog window? I would like it to "Are you sure you want to delete $variable_Name?" instead of "Delete selected record(s)?"</p>
</p>
<p>How do I do this?</p>
</p>
<p>Thanks,</p>
<p>tom</p>
]]></description>
        	        	<pubDate>Fri, 17 Sep 2010 02:53:35 +0300</pubDate>
        </item>
</channel>
</rss>