﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - WebGrid Image Download Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Image-Download-Issue/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebGrid Image Download Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Image-Download-Issue/</link><pubDate>Sun, 15 Nov 2009 21:44:51 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Currently, we don’t have sufficient information to investigate this matter further since we are also not able to repro the issue on our end.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Could you please update us with any useful information regarding this issue?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid Image Download Issue</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Image-Download-Issue/</link><pubDate>Thu, 12 Nov 2009 00:39:56 GMT</pubDate><dc:creator>Mark.R.P</dc:creator><description>&lt;p&gt;I have a user who is experiencing a problem with the WebGrid control in our web application. I have been unable to reproduce it on my developemnt or production environements and it has not been reported to me by any of our other users as of yet. THis issue is only happening to the user on this one particular page.&lt;/p&gt;
&lt;p&gt;Before explaining the issue i'll give you a brief outline of the structure of the page. It contains 1 WebGrid which can be populated from the selection of a WebCombo which causes the datasource to be re-bound, by adding new rows via the client side or both. The page also has another drop down list which on its client side OnChange event updates all rows in the grid. &lt;/p&gt;
&lt;p&gt;The issue that is occuring happens as follows. The user is loading data into the grid from the selection of the WebCombo. They are then changing the selected value of a second drop down list which causes the grid to update the rowes via the client side. However upon the execution of the event the page tries to download the image wg_currow but is never able to download it.&lt;/p&gt;
&lt;p&gt;As I said I have not been able to reproduce it but I have a video clip which illustrates the issue. After you see the user change the Display Units drop down watch the status bar at the bottom of the page. The download message remains there until you exit the page and the row does not actually update. Below is also the OnChange event that is fired.&lt;/p&gt;&lt;pre&gt;function lstDDDisplayUnits_ValueChanged(ctl, e)
{
    for (var i=0; i&amp;lt;purchaseDelivery.wgPurchaseDelivery.RootTable.GetRowsCount(); i&amp;#43;&amp;#43;)
    {
        purchaseDelivery.modifyItem(purchaseDelivery.wgPurchaseDelivery.RootTable.GetRow(i),
            e.newvalue,
            e.oldvalue
        );
    }
}

QRTPurchaseDelivery.prototype.modifyItem = function(row, newvalue, oldvalue)
{
    var stockData = new QRTPurchaseDeliveryItem();
    stockData.parseAdditionalDataRow(row);

    var cells = row.GetCells();
    
    this.convertUnitsFloat(cells, stockData, "QOH", true, 6, oldvalue, newvalue);
    this.convertUnitsFloat(cells, stockData, "QtyOrdered", true, 6, oldvalue, newvalue);
    this.convertUnitsFloat(cells, stockData, "QtyExpected", true, 6, oldvalue, newvalue);
    this.convertUnitsFloat(cells, stockData, "QtyPrevious", true, 6, oldvalue, newvalue);
    this.convertUnitsFloat(cells, stockData, "QtyAccept", true, 6, oldvalue, newvalue);
    this.convertUnitsFloat(cells, stockData, "QtyReject", true, 6, oldvalue, newvalue);
    this.convertUnitsFloat(cells, stockData, "UnitCostTaxExc", false, 6, oldvalue, newvalue);
    this.convertUnitsFloat(cells, stockData, "UnitCostTaxInc", false, 6, oldvalue, newvalue);
    this.convertUnitsFloat(cells, stockData, "UnitTax", false, 6, oldvalue, newvalue);
    
    this.webGridCommon.updateFieldValue(cells, "Unit", stockData.unitTemplate.getUnitDescription(newvalue));
    
    row.AddPendingChanges();
}

QRTWebGridCommon.prototype.updateFieldValue = function(cells, fieldname, value)
{
    cells.GetNamedItem(fieldname).SetText(value, true);
}&lt;/pre&gt;

&lt;p&gt;Do you have any ideas what would be causing this problem?&lt;/p&gt;</description></item></channel></rss>