﻿<?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 - WebGridSordi</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridSorting/</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>WebGridSordi</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridSorting/</link><pubDate>Thu, 09 Aug 2012 22:34:45 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebGrid combo product sorting doesn't working</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I’m glad to hear that you have found the solution for this issue.&lt;br /&gt;Should you have further question, please do not hesitate to contact us.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGridSordi</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridSorting/</link><pubDate>Thu, 09 Aug 2012 09:51:02 GMT</pubDate><dc:creator>armore1972</dc:creator><category>WebGrid combo product sorting doesn't working</category><description>&lt;p&gt;&lt;br /&gt;I find the solution, i insert this code&lt;br /&gt;&lt;br /&gt;SortKeyField = "productnumber"&lt;br /&gt;&lt;br /&gt;in the webcombo&lt;br /&gt;
&lt;br /&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="Product" DataMember="productid" Name="productid" SortKeyField = "productnumber"&lt;br /&gt; Width="190px" EditType="WebComboNET" WebComboID="WebComboProd" InputRequired="True"&lt;br /&gt; InputRequiredErrorText="Specify the Product." TreatMarkupAsLiteralText="True"&lt;br /&gt; ColumnType="Custom"&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;br /&gt;
&lt;br /&gt;
thanks&lt;/p&gt;</description></item><item><title>WebGridSordi</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridSorting/</link><pubDate>Thu, 09 Aug 2012 05:44:29 GMT</pubDate><dc:creator>armore1972</dc:creator><category>WebGrid combo product sorting doesn't working</category><description>&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;i try to insert in the server side this&lt;br /&gt; protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)&lt;br /&gt; {&lt;br /&gt; &lt;br /&gt;if (e.Row.Type == RowType.Record)&lt;br /&gt; {&lt;br /&gt; DataRowView a = (DataRowView)e.Row.DataRow;&lt;br /&gt; WebGridCell productIdCell = e.Row.Cells.GetNamedItem("productid");&lt;br /&gt; productIdCell.Column.ColumnType = ISNet.WebUI.WebGrid.ColumnType.Custom;&lt;br /&gt; string productNumber = (string)a["productnumber"];&lt;br /&gt; productIdCell.Text = productNumber.Replace(" ", " ");&lt;br /&gt;...&lt;br /&gt;But it doesn't work.&lt;br /&gt;Is very strange because in other parts of the application the sorting working ( but they don't use the webcombo component).&lt;br /&gt;Is possibile that it depend because the cell of the product is a WebCombo?&lt;/p&gt;
&lt;p&gt;This is the definition of the WebCombo in my code&lt;br /&gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;ISWebCombo:WebCombo ID="WebComboProd" runat="server" AdditionalSearchFields="ProductName, Speedy_CustProdRefDescription"&lt;br /&gt; DataTextField="ProductNumber"&lt;br /&gt; DataValueField="ProductId" MinCharsToRequest="2" Height="20px" &lt;br /&gt; UseDefaultStyle="True" OnInitializeRow="WebComboProd_InitializeRow"&lt;br /&gt; Width="550px" Latency="200" &lt;br /&gt; OnInitializeDataSource="WebComboProd_InitializeDataSource" &lt;br /&gt; OnInitializeLayout="WebComboProd_InitializeLayout" AllowWildCardSearch="True" &lt;br /&gt; DropDownRows="7" &amp;gt;&lt;br /&gt; &amp;lt;Columns&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="productnumber" Name="productnumber" HeaderText="Number"&lt;br /&gt; Width="150" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="productname" Name="productname" HeaderText="Name"&lt;br /&gt; Width="250" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="productid" Name="productid" Hidden="true"&lt;br /&gt; RenderOnHidden="true" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="Quantity" Name="Quantity" Hidden="true"&lt;br /&gt; RenderOnHidden="True" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="Speedy_MinimumSellingPrice" Hidden="True"&lt;br /&gt; Name="Speedy_MinimumSellingPrice" RenderOnHidden="True" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="Speedy_MinimumSellingQuantity" Hidden="True"&lt;br /&gt; Name="Speedy_MinimumSellingQuantity" RenderOnHidden="True" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="Speedy_CustProdRefDescription" Name="Speedy_CustProdRefDescription"&lt;br /&gt; HeaderText="Customer reference" Width="150" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="canModifyCustProdRef" DataType="System.Boolean"&lt;br /&gt; Name="canModifyCustProdRef" RenderOnHidden="True" Hidden="True" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="StateCode" &lt;br /&gt; Name="StateCode" RenderOnHidden="True" Hidden="True" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="speedy_referenceallowed" Name="speedy_referenceallowed"&lt;br /&gt; HeaderText="ReferenceAllowed" Hidden="true" RenderOnHidden="True" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="speedy_directdelivery" Name="speedy_directdelivery"&lt;br /&gt; HeaderText="DirectDelivery" Width="120" RenderOnHidden="True" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="statuscodename" Name="statuscodename" HeaderText="StatusCode" Width="120" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="speedy_special" Name="speedy_special"&lt;br /&gt; HeaderText="special" Width="120" Hidden="true" RenderOnHidden="True" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="speedy_prodgroupdes" Name="speedy_prodgroupdes"&lt;br /&gt; HeaderText="speedy_productgroupdes c" Width="120" /&amp;gt;&lt;br /&gt; &amp;lt;ISWebCombo:WebComboColumn HeaderText="Url" BaseFieldName="speedy_urltds" Name="speedy_urltds" Hidden="true"&lt;br /&gt; RenderOnHidden="true"&amp;gt;&lt;br /&gt; &amp;lt;/ISWebCombo:WebComboColumn&amp;gt;&lt;br /&gt; &amp;lt;/Columns&amp;gt;&lt;br /&gt; &amp;lt;FlyPostBackSettings PostControlState="False" PostViewState="False" /&amp;gt;&lt;br /&gt; &amp;lt;LayoutSettings ComboMode="MultipleColumns" EntryMode="AutoComplete" LoadMoreKeyGesture="DownArrowKey"&lt;br /&gt; &amp;gt;&lt;br /&gt; &amp;lt;ClientSideEvents OnAfterItemSelected="WebComboProd_OnAfterItemSelected" &lt;br /&gt; OnAfterResponseProcess="WebComboProd_OnAfterResponseProcess" /&amp;gt;&lt;br /&gt; &amp;lt;/LayoutSettings&amp;gt;&lt;br /&gt; &amp;lt;/ISWebCombo:WebCombo&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;and the WebCombo was insert into WebGrid in this way&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="Product" DataMember="productid" Name="productid"&lt;br /&gt; Width="190px" EditType="WebComboNET" WebComboID="WebComboProd" InputRequired="True"&lt;br /&gt; InputRequiredErrorText="Specify the Product." TreatMarkupAsLiteralText="True"&lt;br /&gt; ColumnType="Custom"&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I try to replace the webcombo with a simple WebGridColumn&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="Product Number" DataMember="productnumber" HiddenDataMember="productid" Name="productnumber" ColumnType="Custom" TreatMarkupAsLiteralText="true" Visible="true" Width="100px"&amp;gt;&lt;br /&gt; &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;and it works.&lt;/p&gt;
&lt;p&gt;So i think it depends of the setting of WebCombo and seems that the sorting was made for the productid ( GUID ) and not for the product number ( text)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
</description></item><item><title>WebGridSordi</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridSorting/</link><pubDate>Thu, 09 Aug 2012 04:35:25 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebGrid combo product sorting doesn't working</category><description>Hello,&lt;br /&gt;&lt;br /&gt;It seems the issue occurs because of difference rendering between the “Product Number” in database and WebGrid.&lt;br /&gt;For example, Product Number in database is “123 758&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;895”, but in WebGrid become “123 758 895” &lt;br /&gt;&lt;br /&gt;Basically when building a Web page is that Web pages don't handle white space characters the same way that word processors do.&lt;br /&gt;When you write your HTML, you can add any number of these white space characters into your HTML. But when you view that HTML in a Web page, one white space will be displayed.&lt;br /&gt;&lt;br /&gt;In order for those spaces to display in your web browsers you need to use one of HTML character entities like “&amp;amp;nbsp”&lt;br /&gt;&lt;br /&gt;To resolve this issue, please try to add a validation in WebGrid’s InitializeCell server side event.&lt;br /&gt;Here’s the snippet example code:&lt;pre&gt;protected void WebGrid1_InitializeCell(object sender, ISNet.WebUI.WebGrid.CellEventArgs e)
{
	if (e.Cell.Column.Name == "Product Numbers")
	{
		e.Cell.Column.ColumnType = ISNet.WebUI.WebGrid.ColumnType.Custom;
		e.Cell.Text = e.Cell.Value.ToString().Replace(" ", "&amp;amp;nbsp");
	}
}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;Hope this helps. Thank you.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGridSordi</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridSorting/</link><pubDate>Wed, 08 Aug 2012 10:42:58 GMT</pubDate><dc:creator>armore1972</dc:creator><category>WebGrid combo product sorting doesn't working</category><description>Thanks for your answer.&lt;br /&gt;The problem is that the column that we try to sorting is a WebCombo &lt;br /&gt;&lt;br /&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="Product" DataMember="productid" Name="productid"&lt;br /&gt; Width="190px" EditType="WebComboNET" WebComboID="WebComboProd" InputRequired="True"&lt;br /&gt; InputRequiredErrorText="Specify the Product." TreatMarkupAsLiteralText="True" &lt;br /&gt; ColumnType="Custom"&amp;gt;&lt;br /&gt; &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>WebGridSordi</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridSorting/</link><pubDate>Sun, 27 May 2012 22:50:12 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebGrid combo product sorting doesn't working</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I’m sorry for the late response and I apologize for the inconvenience.&lt;br /&gt;I’ve tried to make a sample project that maybe similar with your scenario.&lt;br /&gt;I made a simple table, called “Sorting” table. The table two fields, ID field (as primary key) &amp; Codes field.&lt;br /&gt;I added data that maybe similar with your scenario. (SortingTable.png)&lt;/p&gt;
&lt;p&gt;I bind the table to WebGrid and then I tried to sort the Codes column.&lt;br /&gt;However, it’s works fine on my end. (ResultSorting1.png &amp; ResultSorting2.png)&lt;/p&gt;
&lt;p&gt;I attached the database and the sample project, in order to make you easier understand about my sample.&lt;/p&gt;
&lt;p&gt;Would you mind to tell me how to replicate this issue? There may be a setting the I miss, in my sample.&lt;br /&gt;Or could you send me your sample project that replicate this issue?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;/p&gt;</description></item><item><title>WebGridSordi</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridSorting/</link><pubDate>Fri, 25 May 2012 02:43:11 GMT</pubDate><dc:creator>armore1972</dc:creator><category>WebGrid combo product sorting doesn't working</category><description>&lt;p&gt;Hi we have a Grid with a column (WebCombo) that contain this items ( product code)&lt;/p&gt;
&lt;p&gt;'0090 010 05 5'&lt;/p&gt;
&lt;p&gt;'0966 010 04 4'&lt;/p&gt;
&lt;p&gt;'7999 020 05 5'&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;if we try to sorting this column, the sort doesn't work, in attach file there are an example &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;the correct sorting is &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;06240000....&lt;/p&gt;
&lt;p&gt;071566 05...&lt;/p&gt;
&lt;p&gt;071566 21...&lt;/p&gt;
&lt;p&gt;07201621....&lt;/p&gt;
&lt;p&gt;any ones can suggest me how to sorting this column?&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" UseDefaultStyle="True"&lt;br /&gt; Width="100%" OnInitializeDataSource="WebGrid1_InitializeDataSource" OnAddRow="WebGrid1_AddRow"&lt;br /&gt; OnInitializeLayout="WebGrid1_InitializeLayout" OnUpdateRow="WebGrid1_UpdateRow"&lt;br /&gt; OnDeleteRow="WebGrid1_DeleteRow" DataCacheStorage="Session" DefaultStyleMode="Elegant"&lt;br /&gt; OnInitializeRow="WebGrid1_InitializeRow" &lt;br /&gt; OnInitializePostBack="WebGrid1_InitializePostBack" Style="margin-top: 0px; z-index: 90;" AllowAutoDataCaching="False"&amp;gt;&lt;br /&gt; &amp;lt;LayoutSettings AllowAddNew="Yes" AllowDelete="Yes" AllowEdit="Yes" AllowSorting="Yes" AutoHeight="true"&lt;br /&gt; ResetNewRowValuesOnError="False" GridLines="Vertical" ColumnFooters="Yes" InProgressUIBehavior="ChangeCursorToHourGlass"&lt;br /&gt; AllowExport="No" VerboseEditingInformation="True" AllowDefaultStyleMerging="True"&lt;br /&gt; ColumnSetHeaders="Default" FilterBarVisible="False" AutoFitColumns="True" DisplayDetailsOnUnhandledError="true"&lt;br /&gt; SelectFirstCellOnAdd="True" NewRowLostFocusAction="AlwaysPrompt" AllowMultipleSelection="Default"&lt;br /&gt; &amp;gt;&lt;br /&gt; &amp;lt;%--AllowSelectColumns="Yes" ShowColumnAction="True" &amp;gt;--%&amp;gt;&lt;br /&gt; &amp;lt;ClientSideEvents OnBeforeAdd="WebGrid1_OnBeforeAdd" OnBeforeUpdate="WebGrid1_OnBeforeUpdate" OnBeforeDelete="WebGrid1_OnBeforeDelete" OnAfterAdd="WebGrid1_OnAfterAdd" OnAfterUpdate="WebGrid1_OnAfterUpdate"&lt;br /&gt; OnExitEditMode="WebGrid1_OnExitEditMode" OnEnterEditMode="WebGrid1_OnEnterEditMode" OnRowSelect="WebGrid1_OnRowSelect" OnAfterDelete="WebGrid1_OnAfterDelete"&lt;br /&gt; OnKeyDown="WebGrid1_DoKeyDown" OnCellDblClick="WebGrid1_OnCellDblClick" OnUnhandledError ="WebGrid1_OnUnhandledError" &lt;br /&gt; OnBeginRowEditing="WebGrid1_OnBeginRowEditing" OnEditKeyDown="WebGrid1_OnEditKeyDown"&lt;br /&gt; OnRowValidate="WebGrid1_OnRowValidate" OnAfterInitialize="WebGridX_OnAfterInitialize" OnLostFocus="WebGrid1_OnLostFocus" /&amp;gt;&lt;br /&gt; &amp;lt;FrameStyle BackColor="#EAF3FF"&amp;gt;&lt;br /&gt; &amp;lt;/FrameStyle&amp;gt;&lt;br /&gt; &amp;lt;TextSettings Language="UseCustom" /&amp;gt;&lt;br /&gt; &amp;lt;/LayoutSettings&amp;gt;&lt;br /&gt; &amp;lt;RootTable Caption="OrderPositionCollection" DataKeyField="salesorderdetailid"&amp;gt;&lt;br /&gt; &amp;lt;Columns&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;lt;ISWebGrid:WebGridColumn Caption="Product" DataMember="productid" Name="productid"&lt;br /&gt; Width="190px" EditType="WebComboNET" WebComboID="WebComboProd" InputRequired="True"&lt;br /&gt; InputRequiredErrorText="Specify the Product." TreatMarkupAsLiteralText="True"&lt;br /&gt; ColumnType="Custom"&amp;gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>