iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
1. Silverlight class libraryToday 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!
Unfortunately it is not possible (I did not manage) to move the dictionaries ModelServices.Infrastructure and ViewModels.Infrastructure in a Silverlight class library. In the Silverlight Class Library, I can not reference the assembly Intersoft.Client.Data.ComponentModel. Is there another way to increase the reusability?
Is probably a mistake in MessagePresenter.cs:
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 => { if (dialogResult == DialogResult.Yes) { if (yesAction != null) yesAction(); } else { if (noAction != null) noAction(); } }); }
better is: MessageBoxServiceProvider.Show(question,"Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question,
MessageBoxServiceProvider.Show(question,"Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question,
2. GoupingThe products page is grouped by CategoryID. If I delete the following code ...
<Intersoft:UXGridView.GroupDescriptors>
<Intersoft:UXGridViewGroupDescriptor PropertyName="CategoryID"/> </Intersoft:UXGridView.GroupDescriptors>
</Intersoft:UXGridView.GroupDescriptors>
... then I get the error message: The method 'OrderBy' must be called before the method 'Skip'. So I inserted the following code...
<Intersoft:UXGridView.SortDescriptions>
<ComponentModel:SortDescription PropertyName="RegionID" Direction="Ascending"/> </Intersoft:UXGridView.SortDescriptions>
</Intersoft:UXGridView.SortDescriptions>
...I still get the same error message. Order by is still missing in URL: http://localhost:20316/ClientBin/ClientUIDataAppWithPic-Web-NorthwindDomainService.svc/binary/GetRegions?$skip=0&$take=20&$includeTotalCount=True
It works, if I add the SortDescriptor in constructor. If this is the only way?
public RegionsViewModel() :
{
}
3. Copy/PasteUsing the context menu, I can copy rows in UXGridView. How can I paste the copied row again?
Thanks for help.
Regads Michael
Hello,
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. 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.To discard "copy rows", you would need to use Microsoft Expression blend. Open xaml project in blend.Right click UXGridView and choose Edit Template>>Edit Copy. After that, expand tree level until you found ContextMenu>>Edit Template>>Edit Copy. Next, in xaml code, find CopyRow command in UXGridViewContextMenu and remove this tag.
Regards,HAndy
Hello Michael,
Allow me to help you answer the question one by one.
1. Silverlight class libraryToday 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! Unfortunately it is not possible (I did not manage) to move the dictionaries ModelServices.Infrastructure andViewModels.Infrastructure in a Silverlight class library. In the Silverlight Class Library, I can not reference the assemblyIntersoft.Client.Data.ComponentModel. Is there another way to increase the reusability? Is probably a mistake in MessagePresenter.cs: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 => { if (dialogResult == DialogResult.Yes) { if (yesAction != null) yesAction(); } else { if (noAction != null) noAction(); } }); } better is: MessageBoxServiceProvider.Show(question,"Confirmation", MessageBoxButton.YesNo,MessageBoxImage.Question,
Unfortunately it is not possible (I did not manage) to move the dictionaries ModelServices.Infrastructure andViewModels.Infrastructure in a Silverlight class library. In the Silverlight Class Library, I can not reference the assemblyIntersoft.Client.Data.ComponentModel. Is there another way to increase the reusability?
better is:
MessageBoxServiceProvider.Show(question,"Confirmation", MessageBoxButton.YesNo,MessageBoxImage.Question,
2. GoupingThe products page is grouped by CategoryID. If I delete the following code ...<Intersoft:UXGridView.GroupDescriptors><Intersoft:UXGridViewGroupDescriptor PropertyName="CategoryID"/></Intersoft:UXGridView.GroupDescriptors>... then I get the error message: The method 'OrderBy' must be called before the method 'Skip'. So I inserted the following code...<Intersoft:UXGridView.SortDescriptions><ComponentModel:SortDescription PropertyName="RegionID" Direction="Ascending"/></Intersoft:UXGridView.SortDescriptions>...I still get the same error message. Order by is still missing in URL: http://localhost:20316/ClientBin/ClientUIDataAppWithPic-Web-NorthwindDomainService.svc/binary/GetRegions?$skip=0&$take=20&$includeTotalCount=TrueIt works, if I add the SortDescriptor in constructor. If this is the only way?public RegionsViewModel() :base() {this.QueryDescriptor.SortDescriptors.Add(new SortDescriptor() { PropertyName = "RegionID", Direction = ListSortDirection.Descending }); }The products page is grouped by CategoryID. If I delete the following code ...<Intersoft:UXGridView.GroupDescriptors><Intersoft:UXGridViewGroupDescriptor PropertyName="CategoryID"/></Intersoft:UXGridView.GroupDescriptors>... then I get the error message: The method 'OrderBy' must be called before the method 'Skip'. So I inserted the following code...<Intersoft:UXGridView.SortDescriptions><ComponentModel:SortDescription PropertyName="RegionID" Direction="Ascending"/></Intersoft:UXGridView.SortDescriptions>...I still get the same error message. Order by is still missing in URL: http://localhost:20316/ClientBin/ClientUIDataAppWithPic-Web-NorthwindDomainService.svc/binary/GetRegions?$skip=0&$take=20&$includeTotalCount=TrueIt works, if I add the SortDescriptor in constructor. If this is the only way?public RegionsViewModel() :base() {this.QueryDescriptor.SortDescriptors.Add(new SortDescriptor() { PropertyName = "RegionID", Direction = ListSortDirection.Descending }); }
<Intersoft:UXGridViewGroupDescriptor PropertyName="CategoryID"/>
<ComponentModel:SortDescription PropertyName="RegionID" Direction="Ascending"/>
The products page is grouped by CategoryID. If I delete the following code ...
Hi Handy
Thanks for reply!
1. Yes, I have seen that.
2. I want no grouping by default. How can I do this in xaml?
3. Can I customize the context menu, eg. without "copy rows"?
Best regards
Michael
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname