<?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: GetRowDate in FF doesn't work.</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work</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/getrowdate-in-ff-doesnt-work/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on GetRowDate in FF doesn't work.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2302</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2302</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can obtain the values this way:</p>
<p>If the name of column is &#39;myname&#39; and is defined as text then after editing</p>
<p>you can do $("#"+rowid+"_"+myname).val() or this way</p>
<p>$("td:eq(n) &#62; input", "#"+rowid) - where n is the index of the column.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 03 Oct 2008 02:11:54 +0300</pubDate>
        </item>
        <item>
        	<title>brad8118 on GetRowDate in FF doesn't work.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2292</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2292</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>When editing a row how would you get the value of a cell. If that is somewhere in the docs could you point it out.</p>
<p>Brad</p>
]]></description>
        	        	<pubDate>Thu, 02 Oct 2008 08:13:42 +0300</pubDate>
        </item>
        <item>
        	<title>brad8118 on GetRowDate in FF doesn't work.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2287</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2287</guid>
        	        	<description><![CDATA[<p>&#160;&#160;&#160; // save the updated job status<br />&#160;&#160;&#160; &#160;&#160;&#160; function updateJobStatus2(rowNum) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#subJobGridErrDiv").text("");</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //Using get row data will return values with the html.&#160; Wrote getHtmlText that parses the html to<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; // find the data.<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var rowData = $("#list").getRowData(rowNum);</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //set the data that will be passed down to the controller.<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var data = {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; TM: $("#list").getHtmlText(rowData.TM, "checkbox"),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; Lead: $("#list").getHtmlText(rowData.Lead, "select"),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; StatusList: $("#list").getHtmlText(rowData.StatusList, "select"),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; Bid: $("#list").getCellData(rowNum, "Bid", "textarea"),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; Promised: getHtmlText(rowData.Promised, "datepicker"),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; JobID: getHtmlText(rowData.JobID, "textarea"),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; Note: $("#list").getHtmlText(rowData.Notes, "textarea"),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; OldStatus: getHtmlText(rowData.Status, "textarea"),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; initials: $("#initialsDiv").text(),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; Customer: getHtmlText(rowData.Customer, "textarea"),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; JobName: getHtmlText(rowData.JobName, "textarea")<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; };</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.blockUI();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //beforeSend: validateJobStatus(data),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; data: data,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; cache: false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; url: &#39;/UpdateJobStatus/UpdateJobStatus/&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; dataType: "json",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; type: "post",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; success: function(result) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").showCol(["JobID", "Customer", "Edit", "Status", "DateChanged"]);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").hideCol(["TM", "Lead", "Promised", "Save", "Cancel", "StatusList"]);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //re-populates the grid<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; getSubJobsInformation();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var message = "The following users were notified by email that the job status was updated: " + result;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.unblockUI();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; },<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; error: function(errorData) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ErrorPopUp(errorData.responseText);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; );<br />&#160;&#160;&#160; &#160;&#160;&#160; }</p>
]]></description>
        	        	<pubDate>Wed, 01 Oct 2008 08:38:02 +0300</pubDate>
        </item>
        <item>
        	<title>brad8118 on GetRowDate in FF doesn't work.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2286</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2286</guid>
        	        	<description><![CDATA[<p>Here is the function we use to set the row so the user can edit/ update</p>
</p>
<p>&#160;&#160;&#160; //The users clicked the edit button. Hide and show the proper column and format the column the data<br />&#160;&#160;&#160; &#160;&#160;&#160; function editJob(rowNum) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var rowData = $("#list").getRowData(rowNum);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#subJobGridErrDiv").text("");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").hideCol(["JobID", "Customer", "Edit", "Status", "DateChanged"]);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").showCol(["Lead", "Promised", "Save", "Cancel", "StatusList"]);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.blockUI();</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; cache: false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; url: &#39;/UpdateJobStatus/GetEditInfo/&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; dataType: "json",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; type: "post",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; success: function(result) {</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //getCellData gets the object in each cell. Using the object can find the value of the data. (simular to getHtmlText)<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var note = $("#list").getCellData(rowNum, "Notes", "textArea");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //set the text box back to a string. before &#39;editRow&#39;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").setRowData(rowNum, { Notes: note });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;#list&#39;).editRow(rowNum);</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //remove $,&#39;,&#39; and ending .00<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var bidValue = $("#list").getCellData(rowNum, "Bid", "text");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; bidValue = unFormatNumber(bidValue);</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var bid = document.createElement("textarea");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(bid).attr({ id: "bidBx", name: "bidBx", align: "right", editable: true, rows: "1", cols: "11" });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(bid).text(bidValue);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(bid).keypress(function(event) { $("#list").preventLetterEnter(event, $(bid).val()) });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(bid).keyup(function(event) { $("#subJobGridErrDiv").text(""); validateBid($(bid).val()); });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").setRowData(rowNum, { Bid: bid });</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; note = document.createElement("textarea");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(note).attr({ id: "Notes", name: "Notes", rows: 3, cols: "27" });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(note).html($("#list").getCellData(rowNum, "Notes", "textArea"));<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(note).keyup(function() { verifyCommentCount($(note)) });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").setRowData(rowNum, { Notes: note });</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //set the TM check bx.<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var tmCheckBox = $("#list").getCellData(rowNum, "TM", "checkBox");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; tmCheckBox = (tmCheckBox) ? "checked=&#39;checked&#39;" : "";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; tmCheckBox = "&#60;input type=&#39;checkbox&#39; " + tmCheckBox + " /&#62;";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").setRowData(rowNum, { TM: tmCheckBox });</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //set the dropdown user list.<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var userNameList = "&#60;select name=&#39;userNameList&#39; Enabled=&#39;true&#39;&#62;";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var uList = result.UserList;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; for (var i = 0; i &#60; uList.length; i++) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var init = uList[i].substring(0, 1);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var name = uList[i].replace(init + ":", "");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (init == "1")<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; userNameList += "&#60;option selected&#62; " + name + "&#60;/option&#62;";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; userNameList += "&#60;option&#62;" + name + "&#60;/option&#62;";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; userNameList += "&#60;/select&#62;";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").setRowData(rowNum, { Lead: userNameList });</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //set the status list<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var statusDropDown = "&#60;select name=&#39;statusList&#39; Enabled=&#39;true&#39;&#62;";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var sList = result.StatusList;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; for (var i = 0; i &#60; sList.length; i++) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var name = sList[i];<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (name == rowData.Status)<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; statusDropDown += "&#60;option selected&#62; " + name + "&#60;/option&#62;";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; statusDropDown += "&#60;option&#62;" + name + "&#60;/option&#62;";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; statusDropDown += "&#60;/select&#62;";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").setRowData(rowNum, { StatusList: statusDropDown });</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //the save button add events<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var saveImg = document.createElement("img");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(saveImg).attr({ id: "saveBtn", name: "saveBtn", src: "../../Content/Images/newCheck.gif" });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; saveImg.onclick = new Function("updateJobStatus(" + rowNum + ");");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").setRowData(rowNum, { Save: saveImg });</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //cancel button &#38; click events<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var cancelImg = document.createElement("img");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(cancelImg).attr({ id: "cancelBtn", name: "cancelBtn", src: "../../Content/Images/newdelete.gif" });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; cancelImg.onclick = new Function("cancelEdit(" + rowNum + ");");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#list").setRowData(rowNum, { Cancel: cancelImg });</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //add a datepicker to the text box in the promised column.<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#" + rowNum + "_Promised", "#list").datepicker({ dateFormat: "mm/dd/yy" });</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.unblockUI();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; },<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; error: function(errorData) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ErrorPopUp(errorData.responseText);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; );<br />&#160;&#160;&#160; &#160;&#160;&#160; }</p>
]]></description>
        	        	<pubDate>Wed, 01 Oct 2008 08:37:07 +0300</pubDate>
        </item>
        <item>
        	<title>brad8118 on GetRowDate in FF doesn't work.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2284</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2284</guid>
        	        	<description><![CDATA[<p>ere is my function that sets the values in the jqGrid</p>
<p>&#160;&#160;&#160; //Get all subjobs for the given JobID<br />&#160;&#160;&#160; &#160;&#160;&#160; function getSubJobsInformation() {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#subJobGridErrDiv").text("");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.blockUI();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; cache: false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; url: &#39;/UpdateJobStatus/GetJobs/&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; dataType: "json",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; success: function(result) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#list").clearGridData(); //version 3.2<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#subJobGridErrDiv").text("");</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; // populate the table.<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; for (var i = 0; i &#60; result.JobInfo.length; i++) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; with (result.JobInfo[i]) {</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var TMCheckBox = (TM) ? "checked=&#39;checked&#39;" : "";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; TMCheckBox = "&#60;input type=&#39;checkbox&#39;" + TMCheckBox + " DISABLED/&#62;";</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var editImg = document.createElement("img");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(editImg).attr({ id: "editBtn", name: "editBtn", src: "../../Content/Images/newedit.gif" });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; editImg.onclick = new Function("editJob(" + (i + 1) + ");");</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var promiseDate = PromiseDate;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (PromiseDate == "")<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; promiseDate = "Click to Set";</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (Bid == null &#124;&#124; Bid == "")<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; Bid = "0";<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; Bid = Bid + ".00";</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var note = document.createElement("textarea");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(note).attr({ id: "Notes", name: "Notes", rows: 3, cols: "27", readonly: "true" });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(note).html(StatusNote);</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var row = { Edit: editImg, JobName: JobName, JobID: JobID, Customer: Customer, Lead: Lead, Status: Status, StatusList: Status, TM: TMCheckBox, Promised: promiseDate, Bid: formatNumber(Bid), DateChanged: DateChanged, Notes: $(note) };</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //only add the row if the status isn&#39;t completed<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (Status != "Completed")<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; $("#list").addRowData(i + 1, row);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.unblockUI();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; },<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; error: function(errorData) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ErrorPopUp(errorData.responseText);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; );<br />&#160;&#160;&#160; &#160;&#160;&#160; }</p>
]]></description>
        	        	<pubDate>Wed, 01 Oct 2008 08:19:18 +0300</pubDate>
        </item>
        <item>
        	<title>tony on GetRowDate in FF doesn't work.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2271</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2271</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you plese post your code. It is important to known,</p>
<p>that the inline edit is not compatibale with getRowData. You can use</p>
<p>this method (getRowData) after the row is saved and not when you edit it.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 01 Oct 2008 03:10:46 +0300</pubDate>
        </item>
        <item>
        	<title>brad8118 on GetRowDate in FF doesn't work.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2268</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdate-in-ff-doesnt-work#p2268</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I&#39;ve been using IE to develop our website.&#160; We now are ensureing it works for FF2 and Chrome.&#160;</p>
<p>We are using jqGrid V3.2.4.</p>
<p>We have an inline edit jqgrid.&#160; After I have edited the data in the row I try to retreive it using the $("#LIST).getRowData(rowNum) function. When using IE everything works, it returns the data with the changes I made. When using FF2 I get strange resutls. Instead of getting the modified data, I get the original data.&#160;</p>
<p>Have you seen this before? Has anyone else seen this before?</p>
<p>I ended up writing a function that uses the rowNumber, Column name, and Element type to get the value.&#160; I added element type because I was having issues with getting the selected value from the dropdownlist. This function will properly grab the cell&#39;s value for both IE and FF2.</p>
<p>if (rowNum) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; this.each(function() {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var $t = this, nm;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;#&#39; + rowNum + &#39; td&#39;, $t.grid.bDiv).each(function(i) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; nm = $t.p.colModel[i].name;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (nm == columnName) {</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //FF2<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (type == "select") {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var res1 = this.lastChild;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; res = res1.value;</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; //IE<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (res == "")</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //parses the html to find the element in the &#39;&#60;selected&#62;&#39; tags<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; res = getSelected(this.innerHTML);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var res1 = this.lastChild;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; res = res1.value;</p>
<p>}}</p>
<p>I shouldn&#39;t need this function, am I doing something wrong somewhere?</p>
<p>Thanks</p>
<p>Brad</p></p>
]]></description>
        	        	<pubDate>Tue, 30 Sep 2008 15:56:48 +0300</pubDate>
        </item>
</channel>
</rss>