CRM demo source code with trial?

15 posts, 0 answers
  1. Andy Gray
    Andy Gray avatar
    1 posts
    Member since:
    Jul 2009

    Posted 30 Nov 2011 Link to this post

    Hello, is it possible to download the source code for the CRM demo with a trial version of the Silverlight controls?

    I downloaded a trial of the Q3 version of the RadControls for Silverlight.  My understanding is that the source code for the demo should appear in the additional resources section of the "Your Account" page, but the the Q3 trial doesn't appear on my account page.  

    I do have a RadControls for Silverlight entry that says "Expired."  (I downloaded a trial version of the controls a few years ago.)  Is this why I can't download the demos?

    Thanks!
  2. Nikolay
    Admin
    Nikolay avatar
    3997 posts

    Posted 08 Dec 2011 Link to this post

    Hi Andy Gray,

    You can go the the Q3 2011 Trial Download page and get the CRM source code under the Sample applications section:
    http://www.telerik.com/account/your-products/trial-product-versions/trial-single-download.aspx?pmvid=2631&pid=571

    Greetings,
    Nick
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Jan
    Jan avatar
    37 posts
    Member since:
    May 2008

    Posted 24 Jan 2012 Link to this post

    I cant download it,

    the page says

    We are sorry, but you are not license developer for this product.


    Can I get it anyway? Or do I have to buy your product first?
  5. Nikolay
    Admin
    Nikolay avatar
    3997 posts

    Posted 26 Jan 2012 Link to this post

    Hi,

    Please follow this link and you'll find the source code under the Sample applications section:
    http://www.telerik.com/account/your-products/trial-product-versions/trial-single-download.aspx?pmvid=2657&pid=571 

    Greetings,
    Nick
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Ricardo Pinto
    Ricardo Pinto avatar
    36 posts
    Member since:
    Sep 2008

    Posted 04 Jun 2012 Link to this post

    Hello!

    I'm working for the first time in Silverlight (after a long wait we finally decided to give it a try in our apps!).
    My goal is to create some dashboards for our ASP.Net Ajax VB application home page.

    I must have a dashboard for each of the main roles available in our app: trainee, trainer, coordinator and manager.

    For most of the users, who have only one of these roles, the silverlight app must start by choosing the correct dashboard and load it. 
    As some users may have more than one role, I thought of having a combo with the possible dashboards a user can see, so that he can change the dashboard he wants to check in each moment.

    I have downloaded the CRM demo (amazing work!) and I am using it as my roadmap, with special attention to the dashboardModule.

    Despite not having the concept of navigation between modules like the CRM dashboard, I'm considering to use the same approach with Prism and MEF, as our roles combobox will allow the user to change the currently loaded module (traineedashboard, trainerdashboard, coordinatordashboard, managerdashboard). That means that I'm creating a main silverlight project "Dashboard" (with all the logic of CRM, CRM.Infrastructure, CRM.Theme, etc, for simplicity) and, just like the demo, I' m creating also a specific project for each role dashboard.

    I started by the MainMenuView and HeaderView controls.
    In the first one, I removed all the radiobuttons except the Dashboard one, renaming the text to 'refresh'. I successfully added some hyperlinkbutton to navigate away from the default.aspx to some of the most used aspx pages in the app, using a URLConverter. I will then add the roles combobox I mentioned before to switch the loaded module.

    In the second one, I wanted to show the photo, name and company of the currentUser, instead of fixed data  
    This brings up some issues:
    • Concerning the data layer, the web app references a dll from another project, with linq dbml files with all the database objects. So for me it would be great to use this files. What's the best approach to get data from within the Silverlight dashboards? What I did was to create a Silverlight enabled WCF service in the web project, set up a [OperationContrat]GetUserPhoto method with the appropriate linq queries, add a Service Reference in the main silverlight app and then invoke the service in HeaderView constructor (as show in this example)
    • Other issue is the file system access. In my GetUserPhoto method, I return http://" + url.Context_URL + "/_Controls/Thumbnail.ashx?img=" + user.Photo.Substring(1) + "&w=71&h=82 and in the HeaderView I set this.imgCurrentUser.Source = new BitmapImage(new Uri(e.Result, UriKind.Absolute));, which works great! But my app has a virtual directory /Files set up in the root, so how could I define a Relative URI? user.Photo has the relative path: "~/Files/Users/userGuid/myPhoto.jpg"
    • So finally now to get the name and company, I set up two new methods GetUserName and GetUserCompany and it is also working. But it would be better to have a unique method getUserData to get the photo, name and company and then use one of two strategies, I suppose: set the name and company TextBlock's text properties in the HeaderView constructor, as I did for the image source or use declarative binding in the xaml. What do you recommend?

    Do you happen to have a vb version of the source code? I'm using Telerik Converter, but some of the code doesn't get correctly converted (eventhandles, Do functions and some other details). After creating the silverlight Dahsboard and CoordinatorDashboard projects with all the "minimum" logic replicated from the CRM demo and converted to VB, I was getting manifest errors (perhaps due to namespace changes). So for now I'm working in C# directly in the CRM and after build I'm copying the xap to my web app ClientBin directory (the deadline for the first prototype is approaching!) 

    Attached I send a picture of the current status. I will now move on to the DashboardView!
    I'm looking forward to get more familiar with this whole new world :)

    Thanks in advance for your guidance!
    Best regards,

    Ricardo.



  7. Stanislav
    Admin
    Stanislav avatar
    9 posts

    Posted 05 Jun 2012 Link to this post

    Hello Ricardo,

    On to your issues:
    1. The easiest way to connect a Silverlight client to a web backend is WCF Ria Services. You create a database, expose it through a ria service and you will have automatically-generated methods in your SL client app, which you can use to get your data objects.

    2. If I have understood your issue correctly , on the server-side you can use the Server.MapPath method to map a relative path to a physical one. You can also use put ".." in your URL, to get to a parent directory.

    3. A good practice is to do as little work as possible in your constructors. Use XAML Bindings to set your needed data, after you have received it from the server and processed it.
    A good pattern to use is MVVM, there are a lot of articles on the Web about it, and we also have implemented it in the CRM demo.
    I would suggest you find a tutorial on MVVM + Ria services, as it is a very common scenario in the Silverlight world. :)

    4. The CRM demo comes only with a C# version of the code, but you can practically use any C#-to-VB converter.

    Good luck with your app!
    Please contact us, should any other issues or questions arise.

    Regards,
    Stanislav,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  8. Ricardo Pinto
    Ricardo Pinto avatar
    36 posts
    Member since:
    Sep 2008

    Posted 20 Jun 2012 Link to this post

    Thanks Stanislav for your answer!

    I've been working on this project for the last couple of weeks and I hope it will soon be finished.

    In addition to my Silverlight-enabled WCF service (to get user name, photo and company), I followed your advice and I'm also using WCF Ria Services to fetch data to populate the grids and the rotator of the original CRM demo.

    As my initial convertion to VB didn't work out, I continued working on the C# CRM solution and it is working fine when I execute the CRM.Web application. But as I said in my original post, I want to show the dashboard on our ASP.Net Ajax VB application home page. 

    I copied the contents of the CRM.Web clientbin folder to MyAspNetAjaxVBApp clientbin folder and set up an object tag in Default.aspx. When I executed the app (in VS web server), all the service calls failed:
    • For Silverlight-enabled WCF Service, the problem was the endpoint address in the ServiceReferences.ClientConfig: it had a port number (http://localhost:4021/MyWCFService.svc) which was different from the one VS randomly used on the app execution (http://localhost:11332/Default.aspx); removing the port number from the ClientConfig file solved the problem;
    • For RIA Services, the problem is similar but I'm yet to find the solution. My services are running on /clientbin/MyAspNetAjaxVBApp-DashboardService.svc, but as the xap was built on the CRM project I can see on fiddler that the Silverlight object is calling /clientbin/CRM-Web-DashboardService.svc, so I get no data on the grids/rotator

    Could you point me in the right direction? Is it possible to dynamically to change the RIA service location based on an URI for instance? I've been searching on this today but I'm yet to find an adequate solution... 
    Perhaps I should give another try at the C# to VB conversion, so that I have the Silverlight projects directly working on my MyAspNetAjaxVBApp solution!

    Thanks again.
    Best regards,

    Ricardo.

  9. Stanislav
    Admin
    Stanislav avatar
    9 posts

    Posted 25 Jun 2012 Link to this post

    Hello Ricardo,

    Thanks for contacting us.
    Sorry for the late response.
    Please note that your question is not directly related to Telerik Silverlight controls.

    I suggest that you include the C# Silverlight projects in your VS solution.
    Your solution will then contain one or more C# SL projects and one or more Visual Basic projects.
    You can then compile the entire solution with no problem and run it.
    Please note that you might need to correctly setup the VB Web project to build the C# SL projects.

    Please feel free to contact us should you have any other issues or problems.
    Greetings,
    Stanislav
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  10. Ricardo Pinto
    Ricardo Pinto avatar
    36 posts
    Member since:
    Sep 2008

    Posted 27 Jun 2012 Link to this post

    Hello Stanislav!

    Thanks again for your amazing support and appologize for posting my non-Telerik-controls-directly-related issues.
    I followed your tips and finally got the integrated solution working yesterday in the afternoon, after a long struggle with project references and settings :)

    Today I'm facing the typical working-on-dev-not-working-on-server-after-deployment issues... after publishing the 3 RIA Services called in the dashboard timeout after a minute! None of the multiple attempts I made worked so I'm preparing a post for the Silverlight forums.

    Thanks again!
    Best regards,

    Ricardo.
  11. Arlie Fisk
    Arlie Fisk avatar
    2 posts
    Member since:
    Jul 2012

    Posted 06 Aug 2012 Link to this post

    Hi nick, 

    I tried to click your link but:

    We are sorry, but only licensed users are eligible for downloading the software.

    How can you resolve this?

    • Review the list of developers currently assigned to the licenses and have a seat re-assigned to yourself. The option to do so is provided under "Manage Licensed Users"
    • If all the seats you hold are taken, you could purchase an additional one from here.

    If you have any questions, do not hesitate to contact us at sales@telerik.com.

  12. S
    S avatar
    2 posts
    Member since:
    Aug 2012

    Posted 17 Aug 2012 Link to this post

    Same Arlie Fisk!?



    Now how exactly do we get that entire solution (source code)?

    Geez...finally found it
  13. Coreen Ng
    Coreen Ng avatar
    1 posts
    Member since:
    Mar 2010

    Posted 29 Aug 2012 Link to this post

    Hi,

    I get the same error, how you manage to download the source code?
  14. Cory
    Cory avatar
    11 posts
    Member since:
    Feb 2011

    Posted 19 Sep 2012 Link to this post

    Anyone from Telerik want to answer how to get the source code for some of the samples?  Especially the CRM, Executive Dashboard, and Sales Manager Dashboard for silverlight?  I can not find where to download the source for these samples.  Do you have to have a license to the entire Telerik source code before you can download the samples?  Any help would be appreciated, I'd really like to get started and these look like great samples to start with.

    I get the following when I try any of the links supplied in this thread...


    How can you resolve this?

    • Review the list of developers currently assigned to the licenses and have a seat re-assigned to yourself. The option to do so is provided under "Manage Licensed Users"
    • If all the seats you hold are taken, you could purchase an additional one from here.

    If you have any questions, do not hesitate to contact us at sales@telerik.com.

  15. Hristo
    Admin
    Hristo avatar
    408 posts

    Posted 20 Sep 2012 Link to this post

    Hello,

    You can download our sample apps from here.

    Kind regards,
    Hristo
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  16. Pietr
    Pietr avatar
    1 posts
    Member since:
    Jan 2013

    Posted 20 Jan 2013 Link to this post

    Its still not working;/ i can't download demos
    Error:

    Sorry. You are not a licensed user for this product and cannot access this page.
Back to Top
DevCraft banner