This is a migrated thread and some comments may be shown as answers.

Gantt View & LightSwitch

3 Answers 146 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
KKalik
Top achievements
Rank 1
KKalik asked on 14 Jun 2012, 04:17 PM
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?

3 Answers, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 14 Jun 2012, 09:42 PM
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
0
KKalik
Top achievements
Rank 1
answered on 15 Jun 2012, 04:28 PM

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

 

0
Lancelot
Top achievements
Rank 1
answered on 15 Jun 2012, 04:41 PM
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
Tags
GanttView
Asked by
KKalik
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
KKalik
Top achievements
Rank 1
Share this question
or