Gantt View & LightSwitch

4 posts, 0 answers
  1. KKalik
    KKalik avatar
    6 posts
    Member since:
    Jan 2012

    Posted 14 Jun 2012 Link to this post

    So long story short....

    I downloaded the RadControls for Silverlight Q1 2012 SP1 specifically to integrate the Gantt View into my LightSwitch application.. 
    Issue 1: Q1 2012 SP1 is written for SL 5 and LightSwitch is hard coded for SL 4.
    Resolved: Downloaded RadControls for SL 4 and replaced the dlls in my project.

    Issue 2: Cannot find the Gantt View in the version for SL4
    NOT Resolved.

    The Gantt View is one of my project requirements.

    What is your suggested method for integrating the Gantt View control into a LightSwitch project?
  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 14 Jun 2012 Link to this post

    Hi Katelin,

      Unfortunately, GanttView is a new control not currently compatible with Silverlight 4. That is why you won't find a Telerik.Windows.Controls.GanttView dll in the old libraries. GanttView was ctp in Q1 SP1 and is now beta in the recent Q2 release.

      Until LightSwitch updates to SL5, you won't be able to use it in your project. Good luck with your project and let me know if there is anything else I can help you with.

    Sincerely,
    Lancelot
  3. DevCraft banner
  4. KKalik
    KKalik avatar
    6 posts
    Member since:
    Jan 2012

    Posted 15 Jun 2012 Link to this post

    I found a work around. Convert your LightSwitch project to use Silverlight 5. This takes some elbow grease. Most of the work is done in the back end, since LightSwitch is hard coded for Silverlight 4.

    WARNING - If you try to do this, do not do it on a live development project. Make a backup!
    Also, this solution is probably not supported by Microsoft.

    Steps:
    1. Create a new LightSwitch project.

    2. Close project and edit the Client, ClientGenerated, and Common project files in a text editor. Set TargetFrameworkVersion from v4.0 to 5.0
    Example:
        <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
        <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>

    3. Navigate to default.html in your solution folder. Update the minimum Silverlight version from 4.0.60310.0 to 5.#.####.#
    Example:
    <param name="minRuntimeVersion" value="5.1.10411.0" /><!--"4.0.60310.0"-->

    4. Reload your project.

    5. Go to file view.  Update all references with warnings to their version 5 counterparts.

    6. Add a screen and a SL5 Custom Control.

    7. Run program.

    8. If you receive any errors that look similar to:
    {"Could not load file or assembly 'DLL Name Here', Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.":"DLL Name Here, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"}

    9. Close project and edit the Client, ClientGenerated, and Common project files in a text editor. Search for "2.0.5.0" and update all references to "5.0.5.0"

    For more information please see the forum: http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/91f391bd-7f33-4bb5-bb5c-447f7b15e4af

     

  5. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 15 Jun 2012 Link to this post

    Hi Katelin,

    Nice hack, and like you stated this should NOT be done in a production environment and is NOT supported by Microsoft or telerik. With that being said, if you wanted to create a prototype application for demonstration purposes to the client/boss, this is a great temporary solution until LightSwitch updates to Silverlight 5.

    Thank you for sharing,
    Lancelot
Back to Top