﻿<?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 - ClientUI - ClientUI MVVM Data Application template (reusable code, Grouping, Copy/Paste)</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ClientUI-MVVM-Data-Application-template-reusable-code-Grouping-CopyPaste/</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>ClientUI MVVM Data Application template (reusable code, Grouping, Copy/Paste)</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ClientUI-MVVM-Data-Application-template-reusable-code-Grouping-CopyPaste/</link><pubDate>Wed, 28 Sep 2011 02:46:41 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;If you don't want to apply grouping, you can discard all grouping settings. You can also see our UXGridView sample or video in our support site. &lt;br /&gt;Currently, UXGridView have not provided style for specific context menu. It can be done, but too much efforts. The good news, your scenario is still a simple case. So, there would be too much effort to discard option.&lt;br /&gt;To discard "copy rows", you would need to use Microsoft Expression blend. Open xaml project in blend.&lt;br /&gt;Right click UXGridView and choose &lt;b&gt;&lt;i&gt;Edit Template&lt;/i&gt;&lt;/b&gt;&amp;gt;&amp;gt;&lt;b&gt;&lt;i&gt;Edit Copy&lt;/i&gt;&lt;/b&gt;. After that, expand tree level until you found &lt;b&gt;&lt;i&gt;ContextMenu&lt;/i&gt;&lt;/b&gt;&amp;gt;&amp;gt;&lt;b&gt;&lt;i&gt;Edit Template&lt;/i&gt;&lt;/b&gt;&amp;gt;&amp;gt;&lt;b&gt;&lt;i&gt;Edit Copy&lt;/i&gt;&lt;/b&gt;. Next, in xaml code, find &lt;b&gt;CopyRow command&lt;/b&gt; in &lt;b&gt;&lt;i&gt;UXGridViewContextMenu&lt;/i&gt;&lt;/b&gt; and remove this tag.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;HAndy&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ClientUI MVVM Data Application template (reusable code, Grouping, Copy/Paste)</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ClientUI-MVVM-Data-Application-template-reusable-code-Grouping-CopyPaste/</link><pubDate>Tue, 27 Sep 2011 08:29:29 GMT</pubDate><dc:creator>mg@hsig.ch</dc:creator><description>&lt;p&gt;Hi Handy&lt;/p&gt;
&lt;p&gt;Thanks for reply!&lt;/p&gt;
&lt;p&gt;1. Yes, I have seen that.&lt;/p&gt;
&lt;p&gt;2. &lt;span class="hps"&gt;I want&lt;/span&gt; &lt;span class="hps"&gt;&lt;strong&gt;no&lt;/strong&gt; grouping by default. How can I do this in xaml?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="hps"&gt;3. Can I customize the context menu, eg. without "copy rows"?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="hps"&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="hps"&gt;Michael&lt;/span&gt;&lt;/p&gt;</description></item><item><title>ClientUI MVVM Data Application template (reusable code, Grouping, Copy/Paste)</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ClientUI-MVVM-Data-Application-template-reusable-code-Grouping-CopyPaste/</link><pubDate>Mon, 26 Sep 2011 04:39:47 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Michael,&lt;/p&gt;&lt;p&gt;Allow me to help you answer the question one by one.&lt;/p&gt;&lt;blockquote style="padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; "&gt;&lt;span style="color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); "&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="font-family: 'segoe ui', arial, verdana, tahoma; "&gt;1. Silverlight class library&lt;/strong&gt;&lt;br style="font-family: 'segoe ui', arial, verdana, tahoma; " /&gt;Today I've worked with ClientUI MVVM Data Application template. The structure of the generic base classes is great! The only downer is that partly text messages (e.g. MessagePresenter) are hard coded!&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Unfortunately it is not possible (I did not manage) to move the dictionaries &lt;em style="font-family: 'segoe ui', arial, verdana, tahoma; "&gt;ModelServices.Infrastructure&lt;/em&gt; and&lt;em style="font-family: 'segoe ui', arial, verdana, tahoma; "&gt;ViewModels.Infrastructure&lt;/em&gt; in a Silverlight class library. In the Silverlight Class Library, I can not reference the assembly&lt;em style="font-family: 'segoe ui', arial, verdana, tahoma; "&gt;Intersoft.Client.Data.ComponentModel&lt;/em&gt;. Is there another way to increase the reusability?&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Is probably a mistake in MessagePresenter.cs:&lt;/p&gt;&lt;pre style="white-space: pre-wrap; word-wrap: break-word; "&gt;public void AskYesOrNo(string question, Action yesAction, Action noAction)
{
    MessageBoxServiceProvider.Show(
        "Are you sure you want to delete the selected contact?",
        "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question,
        dialogResult =&amp;gt;
        {
            if (dialogResult == DialogResult.Yes)
            {
                if (yesAction != null)
                    yesAction();
            }
            else
            {
                if (noAction != null)
                    noAction();
            }
        });
}&lt;/pre&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;better is:&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;MessageBoxServiceProvider&lt;span style="font-family: consolas; "&gt;.Show(&lt;strong style="font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; background-color: rgb(255, 255, 0); "&gt;question&lt;/span&gt;&lt;/strong&gt;,&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;"Confirmation"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;MessageBoxButton&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;.YesNo,&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;MessageBoxImage&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;.Question,&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: consolas; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/blockquote&gt;Thank you for the feedback. Of course, you can use that way. If you check our MessageBoxServiceProvider classes, we provided show() methods with several parameters option that you can choose.&amp;nbsp;
&lt;div&gt;&lt;br /&gt;&lt;font class="Apple-style-span" style="color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="font-size: 12px; line-height: 18px; "&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;p /&gt;&lt;blockquote&gt;&lt;span style="color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); "&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="font-family: 'segoe ui', arial, verdana, tahoma; "&gt;2. Gouping&lt;/strong&gt;&lt;br style="font-family: 'segoe ui', arial, verdana, tahoma; " /&gt;The products page is grouped by CategoryID. If I delete the following code ...&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridView.GroupDescriptors&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); " /&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridViewGroupDescriptor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&amp;nbsp;PropertyName&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;="CategoryID"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&amp;lt;/&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridView.GroupDescriptors&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;... then I get the error message: The method 'OrderBy' must be called before the method 'Skip'. So I inserted the following code...&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridView.SortDescriptions&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); " /&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;ComponentModel&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;SortDescription&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&amp;nbsp;PropertyName&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;="RegionID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&amp;nbsp;Direction&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;="Ascending"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&amp;lt;/&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridView.SortDescriptions&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;...I still get the same error message. Order by is still missing in URL:&amp;nbsp;&lt;br style="font-family: 'segoe ui', arial, verdana, tahoma; " /&gt;&lt;a href="http://localhost:20316/ClientBin/ClientUIDataAppWithPic-Web-NorthwindDomainService.svc/binary/GetRegions?$skip=0&amp;amp;$take=20&amp;amp;$includeTotalCount=True" style="font-family: 'segoe ui', arial, verdana, tahoma; color: rgb(22, 95, 167); text-decoration: underline; "&gt;http://localhost:20316/ClientBin/ClientUIDataAppWithPic-Web-NorthwindDomainService.svc/binary/GetRegions?$skip=0&amp;$take=20&amp;$includeTotalCount=True&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;It works, if I add the SortDescriptor in constructor. If this is the only way?&lt;/p&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;public&lt;span style="font-family: consolas; "&gt; RegionsViewModel() :&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;base&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;()
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;this&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;.QueryDescriptor.SortDescriptors.Add(&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;SortDescriptor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;() { PropertyName =&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;"RegionID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;, Direction =&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;ListSortDirection&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;.Descending });
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;}&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); "&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;The products page is grouped by CategoryID. If I delete the following code ...&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridView.GroupDescriptors&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); " /&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridViewGroupDescriptor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&amp;nbsp;PropertyName&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;="CategoryID"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&amp;lt;/&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridView.GroupDescriptors&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;... then I get the error message: The method 'OrderBy' must be called before the method 'Skip'. So I inserted the following code...&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridView.SortDescriptions&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); " /&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;ComponentModel&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;SortDescription&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&amp;nbsp;PropertyName&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;="RegionID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&lt;span style="font-family: consolas; color: rgb(255, 0, 0); "&gt;&amp;nbsp;Direction&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;="Ascending"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&amp;lt;/&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;UXGridView.SortDescriptions&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;...I still get the same error message. Order by is still missing in URL:&amp;nbsp;&lt;br style="font-family: 'segoe ui', arial, verdana, tahoma; " /&gt;&lt;a href="http://localhost:20316/ClientBin/ClientUIDataAppWithPic-Web-NorthwindDomainService.svc/binary/GetRegions?$skip=0&amp;amp;$take=20&amp;amp;$includeTotalCount=True" style="font-family: 'segoe ui', arial, verdana, tahoma; color: rgb(22, 95, 167); text-decoration: underline; "&gt;http://localhost:20316/ClientBin/ClientUIDataAppWithPic-Web-NorthwindDomainService.svc/binary/GetRegions?$skip=0&amp;$take=20&amp;$includeTotalCount=True&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;It works, if I add the SortDescriptor in constructor. If this is the only way?&lt;/p&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;public&lt;span style="font-family: consolas; "&gt; RegionsViewModel() :&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;base&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;()
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;this&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;.QueryDescriptor.SortDescriptors.Add(&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;&lt;span style="font-family: consolas; color: rgb(0, 0, 255); "&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;SortDescriptor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;() { PropertyName =&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;&lt;span style="font-family: consolas; color: rgb(163, 21, 21); "&gt;"RegionID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;, Direction =&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;&lt;span style="font-family: consolas; color: rgb(43, 145, 175); "&gt;ListSortDirection&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; "&gt;.Descending });
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;}&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;If  I am not mistaken, grouping behavior should do grouping with sorting ascending as default. So, basically, it needs to run along with sorting. That's why you got error if you did not specify any sort descriptor in grouping.&lt;p /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;blockquote&gt; &lt;span style="color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); "&gt;&lt;strong style="font-family: 'segoe ui', arial, verdana, tahoma; "&gt;3. Copy/Paste&lt;br /&gt;&lt;span style="color: rgb(63, 63, 63); " segoe="" ui',="" arial,="" verdana,="" tahoma;="" font-size:="" 12px;="" line-height:="" 18px;="" background-color:="" rgb(255,="" 255,="" 255);="" '=""&gt;Using the context menu, I can copy rows in UXGridView. How can I paste the copied row again?&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;We do have this property in our UXGridView. However, we do not provide paste option in context menu. UXGridView area is not designed to be pasted. The format can be different. For now, it can only be pasted into textbox.&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Regards,&lt;br /&gt;Handy&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description></item><item><title>ClientUI MVVM Data Application template (reusable code, Grouping, Copy/Paste)</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ClientUI-MVVM-Data-Application-template-reusable-code-Grouping-CopyPaste/</link><pubDate>Fri, 23 Sep 2011 12:29:30 GMT</pubDate><dc:creator>mg@hsig.ch</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Silverlight class library&lt;/strong&gt;&lt;br /&gt;Today I've worked with ClientUI MVVM Data Application template. The structure of the generic base classes is great! The only downer is that partly text messages (e.g. MessagePresenter) are hard coded!&lt;/p&gt;
&lt;p&gt;Unfortunately it is not possible (I did not manage) to move the dictionaries &lt;em&gt;ModelServices.Infrastructure&lt;/em&gt; and &lt;em&gt;ViewModels.Infrastructure&lt;/em&gt; in a Silverlight class library. In the Silverlight Class Library, I can not reference the assembly &lt;em&gt;Intersoft.Client.Data.ComponentModel&lt;/em&gt;. Is there another way to increase the reusability?&lt;/p&gt;
&lt;p&gt;Is probably a mistake in MessagePresenter.cs:&lt;/p&gt;&lt;pre&gt;public void AskYesOrNo(string question, Action yesAction, Action noAction)
{
    MessageBoxServiceProvider.Show(
        "Are you sure you want to delete the selected contact?",
        "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question,

        dialogResult =&amp;gt;
        {
            if (dialogResult == DialogResult.Yes)
            {
                if (yesAction != null)
                    yesAction();
            }
            else
            {
                if (noAction != null)
                    noAction();
            }
        });
}&lt;/pre&gt;
&lt;p&gt;better is: &lt;span style="font-family: consolas; color: #2b91af"&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;&lt;p&gt;MessageBoxServiceProvider&lt;span style="font-family: consolas"&gt;.Show(&lt;strong&gt;&lt;span style="background-color: #ffff00"&gt;question&lt;/span&gt;&lt;/strong&gt;,&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;"Confirmation"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas"&gt;, &lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;MessageBoxButton&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas"&gt;.YesNo, &lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;MessageBoxImage&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas"&gt;.Question,&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Gouping&lt;/strong&gt;&lt;br /&gt;The products page is grouped by CategoryID. If I delete the following code ...&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;UXGridView.GroupDescriptors&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;UXGridViewGroupDescriptor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #ff0000"&gt;&lt;span style="font-family: consolas; color: #ff0000"&gt; PropertyName&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;="CategoryID"/&amp;gt; &lt;p&gt;&amp;lt;/&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;UXGridView.GroupDescriptors&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;... then I get the error message: The method 'OrderBy' must be called before the method 'Skip'. So I inserted the following code...&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;UXGridView.SortDescriptions&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;ComponentModel&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;SortDescription&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #ff0000"&gt;&lt;span style="font-family: consolas; color: #ff0000"&gt; PropertyName&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;="RegionID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #ff0000"&gt;&lt;span style="font-family: consolas; color: #ff0000"&gt; Direction&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;="Ascending"/&amp;gt; &lt;p&gt;&amp;lt;/&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;Intersoft&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;UXGridView.SortDescriptions&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;...I still get the same error message. Order by is still missing in URL: &lt;br /&gt;&lt;a href="http://localhost:20316/ClientBin/ClientUIDataAppWithPic-Web-NorthwindDomainService.svc/binary/GetRegions?$skip=0&amp;amp;$take=20&amp;amp;$includeTotalCount=True"&gt;http://localhost:20316/ClientBin/ClientUIDataAppWithPic-Web-NorthwindDomainService.svc/binary/GetRegions?$skip=0&amp;amp;$take=20&amp;amp;$includeTotalCount=True&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It works, if I add the SortDescriptor in constructor. If this is the only way?&lt;/p&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;
&lt;p&gt;public&lt;span style="font-family: consolas"&gt; RegionsViewModel() : &lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;base&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas"&gt;() &lt;p&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;this&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas"&gt;.QueryDescriptor.SortDescriptors.Add(&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;&lt;span style="font-family: consolas; color: #0000ff"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas"&gt; &lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;SortDescriptor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas"&gt;() { PropertyName = &lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;&lt;span style="font-family: consolas; color: #a31515"&gt;"RegionID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas"&gt;, Direction = &lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;&lt;span style="font-family: consolas; color: #2b91af"&gt;ListSortDirection&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas"&gt;.Descending }); &lt;p&gt;}&lt;/p&gt;&lt;/span&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Copy/Paste&lt;/strong&gt;&lt;br /&gt;Using the context menu, I can copy rows in UXGridView. How can I paste the copied row again?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks for help.&lt;/p&gt;
&lt;p&gt;Regads Michael&lt;/p&gt;</description></item></channel></rss>