Sales Dashboard - Help Understanding

4 posts, 0 answers
  1. jfkrueger
    jfkrueger avatar
    269 posts
    Member since:
    Jul 2012

    Posted 17 Jun 2011 Link to this post

    I've got another post out there but it's getting too long and I keep figuring something out and then asking a new question, so I figured it would be best just to start clean. I'm trying to get my own version of the sales dashboard working in vb.net. I am new to Silverlight so I am struggling with a few of the concepts and how things are working in the demo. I do have the code. I think if I could understand a few of these larger concepts I would be much better off and not have to ask as many questions. :-)

    So I have gotten to the point where I have the Shell project, the Common project, and one module (the listbox control for salesperson selector). I have been unsuccessful trying to get the listbox control to work with the service proxy but I do have the control working when I have a direct reference to the service and I run that control seperately (in it's own test page). However, when I run the shell project the background comes up, the left region (salesperson selection region) is displayed, but the listbox control (representatives module) does not get loaded into the region and the breakpoints in that project never get loaded. So what I don't understand is how in the shell.xaml file this code works:

    <common:DashboardControl Regions:RegionManager.RegionName="RepresentativesRegion"
                                     Title="Sales Representatives"
                                     Grid.Row="1"
                                     Grid.RowSpan="2"/>

    How does the DashboardControl know to load the RepresentativesModule into this region? I don't see any reference to the Regpresentatives Module or control anywhere in the common project where the DashboardControl.xaml resides. Any help with how this all works is greatly appreciated.

    Thanks!
  2. jfkrueger
    jfkrueger avatar
    269 posts
    Member since:
    Jul 2012

    Posted 17 Jun 2011 Link to this post

    Okay I have this issue solved. I see how the module is tied in through the bootstrapper, it just wasn't loading due to some namespace conflicts. Once I got those all figured out it is working nicely with the salesperson listbox populated. I couldn't get it to work using the proxy so I had to actually add the service to the module but that is an issue for another day. Now what I need to figure out is how I would pass a value from the shell application to the representatives module. Say for example I needed to pass the company ID of the currently logged in company so as to return the salespeople for that company. I can pass the company ID to the shell program using the init params but how do I then pass that on to the representatives module so as to return the correct salespeople?

    I have looked into and tried local messaging but that doesn't work and doesn't seem to fit for this situation. Once again, thanks for any insight.
  3. jfkrueger
    jfkrueger avatar
    269 posts
    Member since:
    Jul 2012

    Posted 27 Jun 2011 Link to this post

    Still stuck on this after 10 days...anyone??

    Thanks!
  4. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 28 Jun 2011 Link to this post

    Hi Joe,

    Please take a look at the reply I posted on your other thread and let me know what your opinion is. We'd be glad to further assist you.

    Greetings,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top