This lesson will be comprised to 3 parts. The end result will be a SL 4 LOB application using Telerik controls which will allow you to view and filter customers. It will also demonstrate how to map the location where the order was delivered.
First a big thank you for Telerik. Their products and support are second to none and they were a tremendous help when trying to figure out how to implement custom center & zoom functionality.
Part 1 – This document will talk about setting up everything needed to run this application.
Part 2 - Will show you how to display records in a Hierarchical grid and add a Map Button to a column header that when clicked will open a popup window.
Part 3 - Will show how to map custom markers on a map and also handle a scenario where you have multiple markers at the same coordinates.
To see a working version of this app, please click here :
At the time of this writing, ANATR & AROUT are the only companies that have some orders with Lat & Lon’s.
The solution is modular built using Prism 4.0 along with MEF. If you have any questions about the base structure of this application, you can find the base sample and some description here.
Silverlight 4.0 MVVM/Prism 4.0/ MEF Telerik Ribbon Application Template
If you have questions about the Treeview being used in conjunction with a Textbox for filtering, please read this article.
RadTreeView filtering with a RadMaskedText box using MVVM & Two-Way Databinding
This lesson is built with an architecture I would use in starting a enterprise LOB application. It’s not some quick demo thrown together with short cuts that only focuses on showing you and end result.
With that, I will say it doesn’t integrate any type of security.
First you will need the NSV.NW.Service. This is a WCF service which the client application uses to interface with the Northwind Database. I tried RIA and just don’t care for it for business level apps.
Configuration here, you’ll need to down load and point to your instance of the Northwind Database.
Next you’ll need to modify the Northwind database. The Orders table will need two new fields.
Lat (real, null)
Lon (real, null)
If you have any questions, you can look at the in the NWDB.dbml file contained in the NSV.NW.DAL project.
Also, you’ll need to change where your WCF logs get written in case you need to enable WCF tracing.
In the appsettings, you will find the key ProviderMethodTakeNumber. This number is used in most Get operations to limit the number of records that are returned. This value is implemented with Take to prevent large numbers of records from coming back. In real world, you would setup data paging here. That would be a good next step to this solution. However, I chose not to do this for time and also I wanted a way to throttle the amount of data that comes from the shared instance I have running of this for others to look at.
After this, build the solution and publish the web project and configure an IIS application to this published directory and you should be good to go.
Also, I zipped the Silverlight_MVVM_Template_Northwind solution with WinRar as the size was half of what Windows zipped it up to.
SilverLight_MVVM_Template _NorthWind - Copy.zip







Section Widget
Category Widget (bottom-up)

Rate this article