﻿<?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 - How setting the Color Foreground </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-setting-the-Color-Foreground/</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>How setting the Color Foreground </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-setting-the-Color-Foreground/</link><pubDate>Tue, 02 Oct 2012 07:59:55 GMT</pubDate><dc:creator>armore1972</dc:creator><description>Hi to all,&lt;br /&gt;we solve used this function &lt;br /&gt;&lt;pre&gt;WebGrid1_OnSynchronizeCell&lt;/pre&gt;&lt;br /&gt;thanks to all&lt;br /&gt;</description></item><item><title>How setting the Color Foreground </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-setting-the-Color-Foreground/</link><pubDate>Thu, 27 Sep 2012 00:17:58 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;In order to set the fore color of text – under a specific column, for example: the “NetAmount” column – into red color based on certain condition, first we would need to obtain the cell’s element and then set the color property.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;&lt;em&gt;OnSynchronizeCell&lt;/em&gt; is invoked when WebGridCell object is synchronized to the rendered element. We can use this event to perform post-rendering tasks, such as accessing DOM elements to customize styles, or call cell’s API to perform cell-specific functions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The snippet code below will set the fore color of cell into red based on the following condition:
The cell is located &lt;strong&gt;under “LastName” column&lt;/strong&gt; &lt;strong&gt;AND&lt;/strong&gt; the cell’s &lt;strong&gt;value is equal to “Davolio”&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnSynchronizeCell(id, cell)
{
    var grid = ISGetObject(id);
    // Check the column name of the cell
    if (cell.Name == "LastName")
    {
        // Validation goes in here
        if (cell.Value == "Davolio")
        {
            cell.GetElement().style.color = "Red";
        }
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;This should help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How setting the Color Foreground </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-setting-the-Color-Foreground/</link><pubDate>Wed, 26 Sep 2012 04:31:18 GMT</pubDate><dc:creator>armore1972</dc:creator><description>Thanks,&lt;br /&gt;the problem is the manage of the data is only on client side.&lt;br /&gt;At the start of the page the data are empty,&lt;br /&gt;When i press the button search the grid was refresh&lt;br /&gt;&lt;br /&gt; function searchPrices_Clicked() {&lt;br /&gt; var grid = ISGetObject("WebGridPrices");&lt;br /&gt; grid.Refresh();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;and in the method WebGridPrices_OnInitializeRow calculte the value&lt;br /&gt;&lt;br /&gt;function WebGridPrices_OnInitializeRow(controlId, row) {&lt;br /&gt; //userdefined/edit.aspx?id={380C9D74-F738-DF11-B28F-005056B50AB3}&amp;amp;etc=10011#&lt;br /&gt; var orgname = getQuerystring('orgname', '');&lt;br /&gt; if (orgname != '') {&lt;br /&gt; orgname = '/' &amp;#43; orgname;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; if (row.Cells.GetNamedItem("discountScaleName") != null) {&lt;br /&gt; row.Cells.GetNamedItem("discountScaleName").Value = [window.location.protocol, '//',&lt;br /&gt; window.location.host, orgname, '/userdefined/edit.aspx?id={',&lt;br /&gt; row.Cells.GetNamedItem("discountScaleId").Value, '}&amp;amp;etc=', etc, '#'].join('');&lt;br /&gt; }&lt;br /&gt; else {&lt;br /&gt; if (row.Cells.GetNamedItem("discountScaleName"))&lt;br /&gt; row.Cells.GetNamedItem("discountScaleName").Value = "&amp;amp;nbsp;";&lt;br /&gt; }&lt;br /&gt; if (row.Cells.GetNamedItem("price"))&lt;br /&gt; row.Cells.GetNamedItem("price").Value = convertNumberWithRightFormat(parseFloat(row.Cells.GetNamedItem("price").Value));&lt;br /&gt;&lt;br /&gt; if (row.Cells.GetNamedItem("priceType")) {&lt;br /&gt; var txt = row.Cells.GetNamedItem("priceType").Value;&lt;br /&gt; if (txt.indexOf('rabatt') == -1) {&lt;br /&gt; if (row.Cells.GetNamedItem("NetAmount"))&lt;br /&gt; row.Cells.GetNamedItem("NetAmount").Value = convertNumberWithRightFormat(parseFloat(row.Cells.GetNamedItem("NetAmount").Value));&lt;br /&gt; }&lt;br /&gt; else {&lt;br /&gt; var quantity = row.Cells.GetNamedItem("minQty").Value;&lt;br /&gt; var priceUnit = row.Cells.GetNamedItem("priceUnit").Value;&lt;br /&gt; var discount = row.Cells.GetNamedItem("fixDiscount1").Value;&lt;br /&gt; var price = parseFloat(convertTextToNumber(row.Cells.GetNamedItem("price").Value));&lt;br /&gt; row.Cells.GetNamedItem("NetAmount").Value = convertNumberWithRightFormat(parseFloat((quantity / (priceUnit * 100)) * (100 * price - discount * price)));&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;but if i try to get the style.color i have null value because i cannot retrieve the style in the method OnInitializeRow&lt;br /&gt;&lt;br /&gt;</description></item><item><title>How setting the Color Foreground </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-setting-the-Color-Foreground/</link><pubDate>Tue, 25 Sep 2012 23:06:30 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;In order to set the color in the client side, you may try following JavaScript function.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function button1_onclick()
{
    var WebGrid1 = ISGetObject("WebGrid1");
    var RootTable = WebGrid1.GetRootTable();
    var FirstRow = RootTable.GetRow(0);
    var Cells = FirstRow.GetCells();
            
    Cells.GetNamedItem("CompanyName").GetElement().style.color = "red";
    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The JavaScript function will set the CompanyName cell’s fore color of the first row. You should modify the script to fit with your specific scenario.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How setting the Color Foreground </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-setting-the-Color-Foreground/</link><pubDate>Tue, 25 Sep 2012 04:58:01 GMT</pubDate><dc:creator>armore1972</dc:creator><description>Thanks,&lt;br /&gt;i need to setting the color in the client side (in javascript).&lt;br /&gt;My page is a search price for a product and if the price was a special price i need to color in red&lt;br /&gt;the total amount of this price.&lt;br /&gt;You should insert a product and after press the button search and the page should return a list of the prices for this product.&lt;br /&gt;I need to color in red the total amount of some special price.&lt;br /&gt;The data was loading only in client side and i need to change the color after the price search and only if in the price type is Rabbat.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>How setting the Color Foreground </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-setting-the-Color-Foreground/</link><pubDate>Mon, 24 Sep 2012 22:19:26 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;WebGrid has FormatConditions feature which allows you to quickly define formatting based on specified condition right from WebGrid’s designer. The formatting can be applied to either specified TargetColumn or entire row.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" ...&amp;gt;    
    &amp;lt;RootTable DataKeyField="CustomerID" Caption="Customers" GridLineStyle="NotSet"&amp;gt;
        &amp;lt;FormatConditions&amp;gt;
            &amp;lt;ISWebGrid:WebGridFormatCondition ConditionText="UK" Name="FormatCondition0"
                ColumnMember="Country"&amp;gt;
                &amp;lt;FormatStyle ForeColor="#C00000"&amp;gt;
                &amp;lt;/FormatStyle&amp;gt;
            &amp;lt;/ISWebGrid:WebGridFormatCondition&amp;gt;
            &amp;lt;ISWebGrid:WebGridFormatCondition TargetObject="Cell" ConditionText="Madrid"
                Name="FormatCondition1" ColumnMember="City" TargetColumnMember="City"&amp;gt;
                &amp;lt;FormatStyle Font-Bold="True"&amp;gt;
                &amp;lt;/FormatStyle&amp;gt;
            &amp;lt;/ISWebGrid:WebGridFormatCondition&amp;gt;
            &amp;lt;ISWebGrid:WebGridFormatCondition Name="FormatCondition2"
                CustomConditionText="[contactname] like 'a%' and [contacttitle] like 'Sales%'"&amp;gt;
                &amp;lt;FormatStyle Font-Underline="True"&amp;gt;
                &amp;lt;/FormatStyle&amp;gt;
            &amp;lt;/ISWebGrid:WebGridFormatCondition&amp;gt;
        &amp;lt;/FormatConditions&amp;gt;
        &amp;lt;Columns&amp;gt;
            ...
        &amp;lt;/Columns&amp;gt;
    &amp;lt;/RootTable&amp;gt;
&amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;There are three formatting conditions specified in the above snippet code of WebGrid.&lt;/span&gt;&lt;/p&gt;
&lt;ol style="color: rgb(31, 73, 125);"&gt;&lt;li&gt;Country = UK, TargetObject = Row, FormatStyle = ForeColor:Red.&lt;/li&gt;&lt;li&gt;City = Madrid, TargetObject = Cell, TargetColumn = City, FormatStyle = FontBold:True.&lt;/li&gt;&lt;li&gt;CustomCondition = "[ContactName] like 'a%' and [ContactTitle] like 'Sales%'", TargetObject=Row, FormatStyle=FontUnderline:True&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;When viewed in browser, the grid will becomes:&lt;/span&gt;&lt;/p&gt;&lt;a href="http://www.intersoftpt.com/Community/Attachments/3393/FormatConditions.png" target="_blank"&gt;&lt;img width="460" height="124" src="http://www.intersoftpt.com/Community/Attachments/3393/FormatConditions.png" /&gt;&lt;/a&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;For more information about WebGridFormatCondition feature, please check &lt;em&gt;FormatCondition.aspx&lt;/em&gt; (V3.5/FormatCondition.aspx) file in the WebGrid Tutorial (click start &amp;gt; All Programs &amp;gt; Intersoft WebUI Studio 2012 R1 SP1 &amp;gt; Intersoft WebUI Studio for ASP.NET &amp;gt; WebGrid 8 &amp;gt; C# Tutorials).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Alternatively, you can also set the style of a cell based on a certain condition in InitializeRow server side event of WebGrid. The following snippet code shows how set the fore color of cell under the “ReorderLevel” column.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
    // do some validation
    if (Convert.ToString(e.Row.Cells.GetNamedItem("CategoryID").Text) == "1" || Convert.ToString(e.Row.Cells.GetNamedItem("CategoryID").Text) == "7")
    {
        ...
        e.Row.Cells.GetNamedItem("ReorderLevel").Style.ForeColor = System.Drawing.Color.Red;
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I have tried to apply the code in &lt;em&gt;CustomizeCellAlignment.aspx&lt;/em&gt; sample file of WebGrid ((click start &amp;gt; All Programs &amp;gt; Intersoft WebUI Studio 2012 R1 SP1 &amp;gt; Intersoft WebUI Studio for ASP.NET &amp;gt; WebGrid 8 &amp;gt; C# Sample) and the grid will becomes:&lt;/span&gt;&lt;/p&gt;&lt;a href="http://www.intersoftpt.com/Community/Attachments/3393/RedForeground.png" target="_blank"&gt;&lt;img width="508" height="152" src="http://www.intersoftpt.com/Community/Attachments/3393/RedForeground.png" /&gt;&lt;/a&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>How setting the Color Foreground </title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-setting-the-Color-Foreground/</link><pubDate>Mon, 24 Sep 2012 09:06:58 GMT</pubDate><dc:creator>armore1972</dc:creator><description>&lt;br /&gt;
&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have a aspx page that calculate the prices of the product with a column NetAmountNetAmount.&lt;/p&gt;
&lt;p&gt;I need to color in red this column only in some conditions are true.&lt;/p&gt;
&lt;p&gt;I try to insert some code&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;row.Cells.GetNamedItem("NetAmount").Row.Style.ForeColor = "Red";&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;row.GetCells().GetNamedItem('NetAmountNetAmount').GetElement().style.color = "Red";&lt;br /&gt; &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;but i have these error when try to set the color &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;row.Cells.GetNamedItem("NetAmount").GetElement() is NULL&lt;/p&gt;row.Cells.GetNamedItem("NetAmount").Row.Style is NULL&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;this is the function that i call in the code&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; function WebGridPrices_OnInitializeRow(controlId, row) {&lt;br /&gt; //userdefined/edit.aspx?id={380C9D74-F738-DF11-B28F-005056B50AB3}&amp;etc=10011#&lt;br /&gt; var orgname = getQuerystring('orgname', '');&lt;br /&gt; if (orgname != '') {&lt;br /&gt; orgname = '/' &amp;#43; orgname;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; if (row.Cells.GetNamedItem("discountScaleName") != null) {&lt;br /&gt; row.Cells.GetNamedItem("discountScaleName").Value = [window.location.protocol, '//',&lt;br /&gt; window.location.host, orgname, '/userdefined/edit.aspx?id={',&lt;br /&gt; row.Cells.GetNamedItem("discountScaleId").Value, '}&amp;etc=', etc, '#'].join('');&lt;br /&gt; }&lt;br /&gt; else {&lt;br /&gt; if (row.Cells.GetNamedItem("discountScaleName"))&lt;br /&gt; row.Cells.GetNamedItem("discountScaleName").Value = "&amp;nbsp;";&lt;br /&gt; }&lt;br /&gt; if (row.Cells.GetNamedItem("price"))&lt;br /&gt; row.Cells.GetNamedItem("price").Value = convertNumberWithRightFormat(parseFloat(row.Cells.GetNamedItem("price").Value));&lt;br /&gt;&lt;br /&gt; if (row.Cells.GetNamedItem("priceType")) {&lt;br /&gt; var txt = row.Cells.GetNamedItem("priceType").Value;&lt;br /&gt; if (txt.indexOf('rabatt') == -1) {&lt;br /&gt; if (row.Cells.GetNamedItem("NetAmount"))&lt;br /&gt; row.Cells.GetNamedItem("NetAmount").Value = convertNumberWithRightFormat(parseFloat(row.Cells.GetNamedItem("NetAmount").Value));&lt;br /&gt; }&lt;br /&gt; else {&lt;br /&gt; var quantity = row.Cells.GetNamedItem("minQty").Value;&lt;br /&gt; var priceUnit = row.Cells.GetNamedItem("priceUnit").Value;&lt;br /&gt; var discount = row.Cells.GetNamedItem("fixDiscount1").Value;&lt;br /&gt; var price = parseFloat(convertTextToNumber(row.Cells.GetNamedItem("price").Value));&lt;br /&gt; var netAmount = parseFloat((quantity / (priceUnit * 100)) * (100 * price - discount * price));&lt;br /&gt; row.Cells.GetNamedItem("NetAmount").Value = convertNumberWithRightFormat(netAmount);&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;row.Cells.GetNamedItem("NetAmount").CellStyle.ForeColor = "Red";&lt;/strong&gt;&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The code is &lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="true" CodeBehind="PriceInfo.aspx.cs"
    Inherits="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfo" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls"
    TagPrefix="ISWebInput" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.ISDataSource, Version=1.0.1500.1, Culture=neutral, PublicKeyToken=c4184ef0d326354b"
    Namespace="ISNet.WebUI.DataSource" TagPrefix="ISDataSource" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop"
    TagPrefix="ISWebDesktop" %&amp;gt;
&amp;lt;%@ Register
    Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="ajaxToolkit" %&amp;gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;
&amp;lt;html &amp;gt;
&amp;lt;head id="Head1" runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;link href="Styles/IFrame.css" rel="Stylesheet" type="text/css" /&amp;gt;
    &amp;lt;script type="text/javascript"&amp;gt;
        var productListHash = new ActiveXObject("Scripting.Dictionary");
        var firstLoad = true;
        function TextBoxProduct_onkeypress(event) {
            if (event.type == "keypress" &amp;amp;&amp;amp; event.srcElement.id == "TextBoxProduct"
                    &amp;amp;&amp;amp; event.keyCode == 13) {
                searchPrices_Clicked();
            }
        }
        function TextBoxProduct_onkeydown(event) {
            if (isEditProductCustomized == 'true') {
                if (!(event.ctrlKey &amp;amp;&amp;amp; (event.keyCode == 88 || event.keyCode == 67)) &amp;amp;&amp;amp; (event.keyCode != 39) &amp;amp;&amp;amp; (event.keyCode != 17)) {
                    if (event.type == "keydown" &amp;amp;&amp;amp; event.srcElement.id == "TextBoxProduct") {
                        var newTextBoxValue = TextBoxProductFormatProductNumber.formatProductString(event.keyCode);
                        if (newTextBoxValue != null) {
                            event.srcElement.value = newTextBoxValue;
                            if (newTextBoxValue.length == 0) {
                                event.srcElement.select();
                            }
                            event.returnValue = event.keyCode == 13 /*enter*/ || event.keyCode == 9 /*tab*/;
                        }
                    }
                }
            }
        }
        function body_onload(event) {
            var TextBoxProduct = document.getElementById("TextBoxProduct");
            TextBoxProductSelection = new WuerthPhoenix.Utility.Selection(TextBoxProduct);
            TextBoxProductFormatProductNumber = new WuerthPhoenix.Utility.FormatProductNumber(TextBoxProduct, productFormat);
            TextBoxProduct.attachEvent('onkeydown', TextBoxProduct_onkeydown);
            TextBoxProduct.onkeypress = function() { TextBoxProduct_onkeypress(event); };
            TextBoxProduct.focus();
        }
        
        function searchPrices_Clicked() {
            var grid = ISGetObject("WebGridPrices");
            grid.Refresh();
        }
        function PriceInfoItem() {
            this.productNumber = "";
            this.productName = "";
            this.priceIdentifier = "";
            this.priceIdType = "";
            this.priceName = "";
            this.price = "";
            this.minQty = "";
            this.priceType = "";
            this.manualPrice = "";
            this.manualDiscount1 = "";
            this.manualDiscount2 = "";
            this.manualDiscountAmount = "";
            this.fixDiscount1 = "";
            this.fixDiscount2 = "";
            this.fixDiscountAmount = "";
            this.fixCommission = "";
            this.discountScaleType = "";
            this.discountScaleName = "";
            this.priceUnit = "";
            this.priceUnitId = "";
            this.maxDiscount = "";
            this.minDiscount = "";
            this.maxCommission = "";
            this.pricetypeId = "";
            this.discountScaleId = "";
            this.isGeneralManualPrice = "";
            this.hierarchyPriority = "";
            this.priceListPriority = "";
            this.typePriority = "";
            this.prodgroupdes = "";
            this.priority = "";
            this.authrequired = "";
        }
        
        function Service_Selecting(control, selectArguments) {
            var IncomingData = new Object();
            IncomingData.UserID = userId;
            IncomingData.Orgname = getQuerystring("orgname");
            IncomingData.UserLCID = getQuerystring("userlcid");
            IncomingData.AreaID = '00000000-0000-0000-0000-000000000000';
            var currency = ISGetObject("WebComboCurrency");
            var account = ISGetObject("WebComboAccount");
            var comboArea = ISGetObject('WebComboArea');
            IncomingData.CustomerID = '00000000-0000-0000-0000-000000000000';
            if (account.Value != null &amp;amp;&amp;amp; account.Value != "") {
                IncomingData.CustomerID = account.Value;
            }
            
            if (accountName != null &amp;amp;&amp;amp; accountName != "" &amp;amp;&amp;amp; firstLoad) {
                document.getElementById('txtAccountNumber').innerText = accountName;
                firstLoad = false;
            }
            if (comboArea.Value != null &amp;amp;&amp;amp; comboArea.Value != "") {
                IncomingData.AreaID = comboArea.Value;
            }
            IncomingData.CurrencyID = '00000000-0000-0000-0000-000000000000';
            if (currency.Value != null &amp;amp;&amp;amp; currency.Value != "") {
                IncomingData.CurrencyID = currency.Value;
            }
            var quantity = document.getElementById('TextBoxQuantity');
            IncomingData.MinQty = 100000;
            if (quantity.value != null &amp;amp;&amp;amp; quantity.value != '') {
                IncomingData.MinQty = parseInt(quantity.value, 10);
            }
            var TextBoxProduct = document.getElementById('TextBoxProduct')
            IncomingData.Product = TextBoxProduct.value == "*" ? "" : TextBoxProduct.value;
            IncomingData.ApplyProductDist = document.getElementById('HiddenApplyProductDist').value;
            selectArguments.FilterExpression = IncomingData.UserID &amp;#43; "," &amp;#43; IncomingData.AreaID &amp;#43; "," &amp;#43;
                IncomingData.CustomerID &amp;#43; "," &amp;#43; IncomingData.CurrencyID &amp;#43; "," &amp;#43;
                IncomingData.Product &amp;#43; "," &amp;#43; IncomingData.UserLCID &amp;#43; "," &amp;#43; IncomingData.MinQty &amp;#43; "," &amp;#43;
                IncomingData.ApplyProductDist &amp;#43; "," &amp;#43; 500 &amp;#43; "," &amp;#43; getQuerystring("orgname");
            //            LogEvent("Selecting data. Operation Type: " &amp;#43; selectArguments.OperationType &amp;#43; ", FilterExpression=" &amp;#43; selectArguments.FilterExpression &amp;#43;
            //                        ", SortExpression=" &amp;#43; selectArguments.SortExpression);
        }
        function IncomingData() {
            this.__type = "Wuerth.Phoenix.Speedy.OrderlineGrid.IncomingData";
            this.UserID = userId;
            this.Orgname = getQuerystring("orgname");
            this.UserLCID = getQuerystring("userlcid");
            
            this.AreaID = '00000000-0000-0000-0000-000000000000';
            var currency = ISGetObject("WebComboCurrency");
            var account = ISGetObject("WebComboAccount");
            var comboArea = ISGetObject('WebComboArea');
            this.CustomerID = '00000000-0000-0000-0000-000000000000';
            if (account.Value != null &amp;amp;&amp;amp; account.Value != "") {
                this.CustomerID = account.Value;
            }
            if (comboArea.Value != null &amp;amp;&amp;amp; comboArea.Value != "") {
                this.AreaID = comboArea.Value;
            }
            this.CurrencyID = '00000000-0000-0000-0000-000000000000';
            if (currency.Value != null &amp;amp;&amp;amp; currency.Value != "") {
                this.CurrencyID = currency.Value;
            }
            var quantity = document.getElementById('TextBoxQuantity');
            this.MinQty = 100000;
            if (quantity.value != null &amp;amp;&amp;amp; quantity.value != '') {
                this.MinQty = parseInt(quantity.value,10);
            }
            var TextBoxProduct = document.getElementById('TextBoxProduct')
            this.Product = TextBoxProduct.value == "*" ? "" : TextBoxProduct.value;
            this.ApplyProductDist = document.getElementById('HiddenApplyProductDist').value;
            
        } //end class
        function WebComboAccount_OnLostFocus() {
            var comboAccount = ISGetObject('WebComboAccount');
            var accountId = document.getElementById('HiddenAccountId');
            if ((comboAccount.Value != accountId.value)||
                ((comboAccount.Value != "") &amp;amp;&amp;amp; (comboAccount.GetTextBoxValue() == ""))) {
                if (comboAccount.GetTextBoxValue() == "") {
                    accountId.value = '';
                    var comboArea = ISGetObject('WebComboArea');
                    //comboArea.ClearResultBox();
                    comboArea.ClearSelection();
                    comboArea.NeedClearList = true;
                    comboArea.SetText('');
                    comboArea.LoadValue(true);
                    comboArea.NeedClearList = true;
                    comboArea.SetText(areaName);
                    comboArea.SetValue(areaId);
                    comboArea.LoadValue(true);
                    document.getElementById('txtAccountNumber').innerText = '';
                    document.getElementById('txtFullName').innerText = '';
                    if (!comboArea.IsValueInRange()) {
                        comboArea.SetText('');
                        comboArea.SetValue('00000000-0000-0000-0000-000000000000');
                        
                    }
                }
            }
        }
        function WebComboAccount_OnAfterItemSelected() {
            var comboAccount = ISGetObject('WebComboAccount');
            var accountId = document.getElementById('HiddenAccountId');
            var comboArea = ISGetObject('WebComboArea');
            accountId.value = comboAccount.Value;
            comboArea.ClearResultBox();
            comboArea.ClearSelection();
            comboArea.NeedClearList = true;
            comboArea.SetText('');
            comboArea.LoadValue(true);
            comboArea.NeedClearList = true;
            comboArea.SetText(areaName);
            comboArea.SetValue(areaId);
            comboArea.LoadValue(true);
            
            if (!comboArea.IsValueInRange()) {
                comboArea.SetText('');
                comboArea.SetValue('00000000-0000-0000-0000-000000000000');
            }
            var rowComboAccount = comboAccount.GetSelectedRow();
            document.getElementById('txtAccountNumber').innerText = rowComboAccount.cells[2].innerText;
            document.getElementById('txtFullName').innerText = rowComboAccount.cells[4].innerText;
        }
 
        function getQuerystring(key, default_) {
            if (default_ == null) default_ = "";
            key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
            var regex = new RegExp("[\\?&amp;amp;]" &amp;#43; key &amp;#43; "=([^&amp;amp;#]*)");
            var qs = regex.exec(window.location.href);
            if (qs == null)
                return default_;
            else
                return qs[1];
        }
      
        
        function WebGridPrices_OnInitializeRow(controlId, row) {
            //userdefined/edit.aspx?id={380C9D74-F738-DF11-B28F-005056B50AB3}&amp;amp;etc=10011#
            var orgname = getQuerystring('orgname', '');
            if (orgname != '') {
                orgname = '/' &amp;#43; orgname;
            }
            if (row.Cells.GetNamedItem("discountScaleName") != null) {
                row.Cells.GetNamedItem("discountScaleName").Value = [window.location.protocol, '//',
                    window.location.host, orgname, '/userdefined/edit.aspx?id={',
                    row.Cells.GetNamedItem("discountScaleId").Value, '}&amp;amp;etc=', etc, '#'].join('');
            }
            else {
                if (row.Cells.GetNamedItem("discountScaleName"))
                    row.Cells.GetNamedItem("discountScaleName").Value = "&amp;nbsp;";
            }
            if (row.Cells.GetNamedItem("price"))
                row.Cells.GetNamedItem("price").Value = convertNumberWithRightFormat(parseFloat(row.Cells.GetNamedItem("price").Value));
            if (row.Cells.GetNamedItem("priceType")) {
                var txt = row.Cells.GetNamedItem("priceType").Value;
                if (txt.indexOf('rabatt') == -1) {
                    if (row.Cells.GetNamedItem("NetAmount"))
                        row.Cells.GetNamedItem("NetAmount").Value = convertNumberWithRightFormat(parseFloat(row.Cells.GetNamedItem("NetAmount").Value));
                }
                else {
                    var quantity = row.Cells.GetNamedItem("minQty").Value;
                    var priceUnit = row.Cells.GetNamedItem("priceUnit").Value;
                    var discount = row.Cells.GetNamedItem("fixDiscount1").Value;
                    var price = parseFloat(convertTextToNumber(row.Cells.GetNamedItem("price").Value));
                    var netAmount = parseFloat((quantity / (priceUnit * 100)) * (100 * price - discount * price));
                    row.Cells.GetNamedItem("NetAmount").Value = convertNumberWithRightFormat(netAmount);
                   //  row.Cells.GetNamedItem("NetAmount").CellStyle.ForeColor = "Red";
                   // &amp;lt;CellStyle ForeColor="Red" /&amp;gt;
                }
            }
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body style="width:100%; height: 100%; padding: 0 5 0 5;" onload="body_onload(event);"&amp;gt;
    &amp;lt;form id="form1" runat="server" style="width:100%; height: 100%;"&amp;gt;
    &amp;lt;ajaxToolkit:ToolkitScriptManager ID="somename" runat="server" EnablePartialRendering="true" CombineScripts="true"&amp;gt;
        &amp;lt;Scripts&amp;gt; 
            &amp;lt;asp:ScriptReference Path="script/shortcut.js"/&amp;gt;
            &amp;lt;asp:ScriptReference Path="script/numberFormat154.js"/&amp;gt;
            &amp;lt;asp:ScriptReference Path="script/Utility.js"/&amp;gt;
        &amp;lt;/Scripts&amp;gt; 
    &amp;lt;/ajaxToolkit:ToolkitScriptManager&amp;gt;
    &amp;lt;ISDataSource:ISDataSource ID="ISDataSourceAccountInfo" runat="server" 
        SchemaName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSet"&amp;gt;
        &amp;lt;Tables&amp;gt;
            &amp;lt;ISDataSource:ISDataSourceTable DataObjectTypeName="System.Nullable`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]" 
                SelectMethod="GetData" TableName="p_GetAccountInfo" 
                TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSetTableAdapters.p_GetAccountInfoTableAdapter"&amp;gt;
                &amp;lt;SelectParameters&amp;gt;
                    &amp;lt;asp:QueryStringParameter Name="userid" QueryStringField="userid" 
                        Type="Object" /&amp;gt;
                &amp;lt;/SelectParameters&amp;gt;
            &amp;lt;/ISDataSource:ISDataSourceTable&amp;gt;
        &amp;lt;/Tables&amp;gt;
    &amp;lt;/ISDataSource:ISDataSource&amp;gt;
    
    &amp;lt;%-- &amp;lt;ISDataSource:ISDataSource ID="ISDataSourceWebGrid" runat="server" 
        SchemaName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSet"&amp;gt;
         &amp;lt;Tables&amp;gt;
            &amp;lt;ISDataSource:ISDataSourceTable SelectMethod="GetData" 
                TableName="p_GetproductBaseInfo" 
                TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSetTableAdapters.p_GetproductBaseInfoTableAdapter"&amp;gt;
                &amp;lt;SelectParameters&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="TextBoxProduct" Name="prProductNumberOrName"
                            PropertyName="Text" Type="Object" /&amp;gt;  
                    &amp;lt;asp:QueryStringParameter QueryStringField="userlcid" Name="prlanguageID" 
                            Type="String" /&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="HiddenUserID" Name="prUserId" 
                            PropertyName="Value" Type="Object"  /&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="WebComboArea" Name="prAreaId"  DefaultValue="00000000-0000-0000-0000-000000000000"
                            PropertyName="Value" Type="Object" /&amp;gt;  
                    &amp;lt;asp:ControlParameter ControlID="HiddenAccountID" Name="prAccountID" 
                            PropertyName="Value" Type="Object" /&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="WebComboCurrency" Name="prCurrencyId"  DefaultValue="00000000-0000-0000-0000-000000000000"
                            PropertyName="Value" Type="Object" /&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="TextBoxQuantity" Name="prMinQty" DefaultValue="100000"
                            PropertyName="Text" Type="Object" /&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="HiddenApplyProductDist" Name="prApplyProductDist" 
                            PropertyName="Value" Type="Object" /&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="HiddenMaxProduct" Name="prMaxProducts"
                            PropertyName="Value" Type="Object" /&amp;gt;   
                    &amp;lt;asp:ControlParameter ControlID="HiddenAlwaysAddCondition" Name="prAlwaysAddCondition"
                        PropertyName="Value" Type="Object" /&amp;gt; 
                &amp;lt;/SelectParameters&amp;gt;
            &amp;lt;/ISDataSource:ISDataSourceTable&amp;gt;
            &amp;lt;/Tables&amp;gt;
    &amp;lt;/ISDataSource:ISDataSource&amp;gt;--%&amp;gt;
    
    &amp;lt;ISDataSource:ISDataSource ID="ISDataSourceArea" runat="server" 
        SchemaName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSet"&amp;gt;
        &amp;lt;Tables&amp;gt;
            &amp;lt;ISDataSource:ISDataSourceTable SelectMethod="GetData" TableName="p_GetAreas" 
                TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSetTableAdapters.p_GetAreasTableAdapter"&amp;gt;
                &amp;lt;SelectParameters&amp;gt;
                    &amp;lt;asp:ControlParameter ControlID="HiddenUserID" Name="prUserId" 
                        PropertyName="Value" Type="String" /&amp;gt;
                &amp;lt;/SelectParameters&amp;gt;
            &amp;lt;/ISDataSource:ISDataSourceTable&amp;gt;
        &amp;lt;/Tables&amp;gt;
    &amp;lt;/ISDataSource:ISDataSource&amp;gt;
    
    &amp;lt;ISDataSource:ISDataSource ID="ISDataSourceCurrency" runat="server" 
            SchemaName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSet" 
            CacheDuration="3600" EnableCaching="Yes"&amp;gt;
        &amp;lt;Tables&amp;gt;
            &amp;lt;ISDataSource:ISDataSourceTable SelectMethod="GetData" TableName="CurrencyExt" 
                TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSetTableAdapters.CurrencyExtTableAdapter"&amp;gt;
            &amp;lt;/ISDataSource:ISDataSourceTable&amp;gt;
        &amp;lt;/Tables&amp;gt;
    &amp;lt;/ISDataSource:ISDataSource&amp;gt;
    
    &amp;lt;div id="webgrid" class="webgrid" style="height: 100%; width: 100%; overflow-y: auto;"&amp;gt;
        &amp;lt;table style="width:100%; table-layout: fixed;"&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td width="7%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;asp:Label ID="LabelProduct" runat="server" Text="Product"&amp;gt;&amp;lt;/asp:Label&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="26%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;asp:TextBox ID="TextBoxProduct" runat="server" Width="70%" Font-Names="Tahoma" 
                    Font-Size="13px"  
                    style="border-bottom-style:solid; border-bottom-width:1px; border-bottom-color:#286a9b; 
                    border-top-width:1px; border-top-color:#5794bf; border-top-style:solid;
                    border-left-width:1px; border-left-color:#5794bf; border-left-style:solid;
                    border-right-width:1px; border-right-color:#286a9b; border-right-style:solid;"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="7%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;asp:Label ID="LabelAccount" runat="server" Text="Account" Font-Names="Tahoma"&amp;gt;&amp;lt;/asp:Label&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="26%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;ISWebCombo:WebCombo ID="WebComboAccount" runat="server" UseDefaultStyle="True" 
                    AllowWildCardSearch="True" DataCacheStorage="Session" 
                    DataMember="p_GetAccountInfo" DataSourceID="ISDataSourceAccountInfo" 
                    DataTextField="accountnumber" DataValueField="accountid" Height="20px" 
                    ViewStateStorage="None" Width="30%" AdditionalSearchFields="name"&amp;gt;
                    &amp;lt;Columns&amp;gt;
                        &amp;lt;ISWebCombo:WebComboColumn Width="80" BaseFieldName="accountnumber" Name="accountnumber" HeaderText="Number" /&amp;gt;
                        &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="accountid" Name="accountid" 
                            DataType="System.Guid" Hidden="True" RenderOnHidden="true"/&amp;gt;
                        &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="name" HeaderText="Name" 
                            Name="name" Width="180" /&amp;gt;
                        &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="transactioncurrencyidname" 
                            Hidden="True" Name="transactioncurrencyidname" RenderOnHidden="true"/&amp;gt;
                        &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="FullName" 
                            Hidden="True" Name="FullName" RenderOnHidden="true"/&amp;gt;
                    &amp;lt;/Columns&amp;gt;
                    &amp;lt;LayoutSettings RoundCorner="False" ComboMode="MultipleColumns"&amp;gt;
                        &amp;lt;ClientSideEvents OnLostFocus="WebComboAccount_OnLostFocus"
                                          OnAfterItemSelected="WebComboAccount_OnAfterItemSelected"/&amp;gt;
                    &amp;lt;/LayoutSettings&amp;gt;
                &amp;lt;/ISWebCombo:WebCombo&amp;gt;
                &amp;lt;asp:Label ID="txtAccountNumber" Font-Names="Tahoma" style="padding: 0px 5px 0px 5px" valign="middle" runat="server" Font-Bold="true" Width="75%"&amp;gt;&amp;lt;/asp:Label&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="4%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;asp:Label ID="LabelPriceAuth" runat="server" Text="User:" Font-Names="Tahoma"&amp;gt;&amp;lt;/asp:Label&amp;gt;    
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="10%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;asp:Label ID="txtFullName" Font-Names="Tahoma" style="padding: 0px 5px 0px 5px" valign="middle" runat="server" Font-Bold="true" Width="45%"&amp;gt;&amp;lt;/asp:Label&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="5%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;asp:Label ID="LabelCurrency" runat="server" Text="Currency" Font-Names="Tahoma"&amp;gt;&amp;lt;/asp:Label&amp;gt;    
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="14%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;ISWebCombo:WebCombo ID="WebComboCurrency" runat="server" 
                    UseDefaultStyle="True" DataMember="CurrencyExt" 
                    DataSourceID="ISDataSourceCurrency" DataTextField="CurrencyName" 
                    DataValueField="TransactionCurrencyId" Height="20px" Width="70%" 
                    UseCachedDataOnFirstLoad="True"&amp;gt;
                    &amp;lt;LayoutSettings  RoundCorner="False" TextBoxMode="ReadOnly" 
                        AlwaysShowAllRowsOnDropdown="True" AlwaysShowHelpButton="False"&amp;gt;
                    &amp;lt;/LayoutSettings&amp;gt;
                &amp;lt;/ISWebCombo:WebCombo&amp;gt;                                
            &amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td width="7%" valign="middle" style="padding: 0px 5px 0px 5px"&amp;gt;
                &amp;lt;asp:Label ID="LabelQuantity" runat="server" Text="Quantity"&amp;gt;&amp;lt;/asp:Label&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="26%" style="padding: 0px 5px 0px 5px"&amp;gt;
                &amp;lt;ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtenderQuantity"
                        runat="server" TargetControlID="TextBoxQuantity" FilterType="Numbers"   /&amp;gt;
                &amp;lt;asp:TextBox ID="TextBoxQuantity" runat="server" Width="70%" Font-Names="Tahoma" 
                    Font-Size="13px"  
                    style="border-bottom-style:solid; border-bottom-width:1px; border-bottom-color:#286a9b; 
                    border-top-width:1px; border-top-color:#5794bf; border-top-style:solid;
                    border-left-width:1px; border-left-color:#5794bf; border-left-style:solid;
                    border-right-width:1px; border-right-color:#286a9b; border-right-style:solid;"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="7%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;asp:Label ID="LabelArea" runat="server" Text="Area"&amp;gt;&amp;lt;/asp:Label&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="26%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;ISWebCombo:WebCombo ID="WebComboArea" runat="server" UseDefaultStyle="True" 
                        DataSourceID="ISDataSourceArea" Height="20px" Width="70%" 
                        DataMember="p_GetAreas" DataTextField="Speedy_name" 
                        DataValueField="Speedy_areaId" AllowAutoDataCaching="False" 
                        ViewStateStorage="None"&amp;gt;
                    &amp;lt;LayoutSettings RoundCorner="False"&amp;gt;
                    &amp;lt;/LayoutSettings&amp;gt;
                &amp;lt;/ISWebCombo:WebCombo&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;td width="7%" style="padding: 0px 5px 0px 5px"&amp;gt;
                &amp;nbsp;&amp;lt;/td&amp;gt;
            
            &amp;lt;td colspan="3" width="26%" style="padding: 0px 5px 0px 5px" valign="middle"&amp;gt;
                &amp;lt;table cellpadding="0" cellspacing="0"&amp;gt;
                    &amp;lt;tr&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;ISWebDesktop:WebButton style="border: solid 1 black;" ID="ButtonSearch" runat="server" Height="25px" Text="Search"
                            DisplayMode="Text" Width="80px" OnClientClick="searchPrices_Clicked"&amp;gt;
                        &amp;lt;/ISWebDesktop:WebButton&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;div id="spStatus" style="padding-left: 5; height:20px; vertical-align:middle"&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                &amp;lt;/table&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;
        &amp;lt;ISWebGrid:WebGrid ID="WebGridPrices" runat="server" Width="100%" 
                           UseDefaultStyle="True" BindingOperationMode="ClientBinding" 
                           DefaultStyleMode="Elegant" StateRestorationLevel="Low" &amp;gt;
            &amp;lt;LayoutSettings  AutoFitColumns="true" AllowColumnMove="Yes" AllowGrouping="Yes" GroupByBoxVisible="True" GroupRowInfoFormatDefault="[caption] : [value] ([count])"
                    AllowContextMenu="True" AllowFilter="Yes" FilterBarVisible="true"
                    AllowSorting="Yes" AlwaysShowHelpButton="False"  
                    HideColumnsWhenGrouped="No" ColumnFooters="Yes"  AllowExport="No"
                    AutoFilterSuggestion="True" ShowColumnAction="True" 
                    ShowRefreshButton="False" AutoHeight="true" PagingMode="VirtualLoad" VirtualPageSize="30"&amp;gt;
                &amp;lt;ClientSideEvents OnInitializeRow="WebGridPrices_OnInitializeRow" /&amp;gt;
                &amp;lt;TextSettings Language="UseCustom" /&amp;gt;
            &amp;lt;/LayoutSettings&amp;gt;
            &amp;lt;RootTable Caption="Prices found" &amp;gt;
                &amp;lt;%--&amp;lt;GroupedColumns&amp;gt;
                &amp;lt;ISWebGrid:WebGridGroup ColumnMember="productNumber" GroupInterval="Text" GroupMode="Expanded"
                    SortOrder="Ascending" /&amp;gt;
                &amp;lt;/GroupedColumns&amp;gt;--%&amp;gt;
                &amp;lt;Columns&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="ProductNumber" DataMember="productNumber" 
                            Name="productNumber" Width="100px" TreatMarkupAsLiteralText="True"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="ProductName" DataMember="productName"
                            name="productName" Width="150px"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="speedy_prodgroupdes c" DataMember="speedy_prodgroupdes"
                        Name="prodgroupdes" Width="60px" Visible="true"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="Priority" DataMember="priority" Visible="false"
                            name="priority" DataType="System.Decimal" Width="50px"&amp;gt;
                            &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="PriceType" DataMember="priceType" Name="priceType" 
                            Width="160px"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="PriceList" DataMember="priceName" Visible="false"
                            Name="priceName" Width="160px" &amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="Aut." DataMember="authrequired" Visible="false"
                            DataType="System.String" Name="authrequired" Width="40px" &amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="Quantity" DataMember="minQty" 
                            DataType="System.Decimal" Name="minQty" Width="50px" DataFormatString="#" &amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="PricePerUnit" DataMember="price" 
                            DataType="System.String" Name="price" Width="50px" DataFormatString="c"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="Discount 1%" DataMember="fixDiscount1"
                            Name="fixDiscount1" Width="40px"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="Net Amount" DataMember="NetAmount" 
                            DataType="System.String" Name="NetAmount" Width="40px" DataFormatString="c"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                        &amp;lt;CellStyle ForeColor="Red" /&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="PriceUnit" DataMember="priceUnit" 
                            DataType="System.Decimal" Name="priceUnit" DataFormatString="#" Width="50px" &amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="DiscountScale" DataMember="discountScaleName" Visible="false"
                            Name="discountScaleName" Width="100px" ColumnType="HyperLink" &amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="minDiscount" DataMember="minDiscount" 
                            Name="minDiscount" Width="60px"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="maxDiscount" DataMember="maxDiscount"
                            Name="maxDiscount" Width="60px"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="maxCommission" DataMember="maxCommission" Visible="false"
                            Name="maxCommission" Width="80px"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="manualPrice" DataMember="manualPrice" Name="manualPrice"
                            Width="0px" ColumnType="CheckBox" ShowInSelectColumns="No" Visible="false"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="manualDiscount1" DataMember="manualDiscount1" Name="manualDiscount1"
                            Width="0px" ColumnType="CheckBox" ShowInSelectColumns="No" Visible="false"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="fixDiscount1" ShowInSelectColumns="No" Visible="false"
                            DataMember="fixDiscount1" Name="fixDiscount1" Width="0px"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right" &amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="manualDiscount2" DataMember="manualDiscount2"
                            Name="manualDiscount2" Width="0px" 
                            ColumnType="CheckBox" ShowInSelectColumns="No" Visible="false"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="fixDiscount2" ShowInSelectColumns="No" Visible="false" DataMember="fixDiscount2"
                            Name="fixDiscount2" Width="0px"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right" &amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="manualDiscountAmount" DataMember="manualDiscountAmount" 
                            Name="manualDiscountAmount" Width="0px" ColumnType="CheckBox" 
                            DataType="System.Boolean" ShowInSelectColumns="No" Visible="false"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="fixDiscountAmount" DataMember="fixDiscountAmount"
                            Name="fixDiscountAmount" Width="0px" DataFormatString="c" ShowInSelectColumns="No" Visible="false"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="fixCommission" DataMember="fixCommission" Name="fixCommission"
                            Width="0px" ShowInSelectColumns="No" Visible="false"&amp;gt;
                        &amp;lt;CellStyle HorizontalAlign="Right"&amp;gt;&amp;lt;/CellStyle&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="discountScaleId" DataMember="discountScaleId" 
                        DataType="System.Guid" Name="discountScaleId" Width="1px" Visible="false" ShowInSelectColumns="No"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                &amp;lt;/Columns&amp;gt;
            &amp;lt;/RootTable&amp;gt;
            &amp;lt;ClientBindingSettings DataSourceType="WebService" ServiceUrl="PriceSearchWS.asmx"&amp;gt;
            &amp;lt;ServiceMethods SelectMethod="getPricesProductInfo" /&amp;gt;
            &amp;lt;ServiceEvents Selecting="Service_Selecting" /&amp;gt;
            &amp;lt;/ClientBindingSettings&amp;gt;
        &amp;lt;/ISWebGrid:WebGrid&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;asp:HiddenField ID="HiddenAccountId" Value="" runat="server" /&amp;gt;
    &amp;lt;asp:HiddenField ID="HiddenUserID" Value="00000000-0000-0000-0000-000000000000" runat="server" /&amp;gt;
    &amp;lt;asp:HiddenField ID="HiddenApplyProductDist" Value="false" runat="server" /&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;</description></item></channel></rss>