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

RadGauge into SharePoint

6 Answers 72 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Israel
Top achievements
Rank 1
Israel asked on 29 Oct 2013, 05:23 PM
Greetings.

I recently downloaded the tools available to Silverligth, I made some examples and everything worked perfectly, so I decided to take my applications to SharePoint.

The problem is that the Rad Controls are not displayed on the page while the rest of the code runs correctly. What am I doing wrong?

6 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 30 Oct 2013, 06:53 AM
Hi Israel,

Thanks for contacting us.
We would suggest checking our TelerikTV series out dedicated to working with Silverlight controls in Sharepoint.
You can also check the videos of the Sharepoint Acceleration Kit that will help you.

I hope this information helps. Let us know if you need any further assistance.

Regards,
Andrey Murzov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Israel
Top achievements
Rank 1
answered on 30 Oct 2013, 04:14 PM
Greetings.

I appreciate your prompt response. I've seen the video you mentioned and followed step by step everything shown there. But when I add the webpart to the page is completely blank, does not show anything. When I added a silverlight webpart all that was invisible were telerik controls, in this case the gauge.

It might be missing some configuration in my webconfig?

Thank you in advance.
0
Israel
Top achievements
Rank 1
answered on 01 Nov 2013, 03:22 PM
Greetings .

Okay, I think I have explained my problem properly.

First I created a new project in Silverlight after I have downloaded and installed the trial containing the RadControls . When you debug with Visual Studio the gauge displayed correctly , so I decided to add some code and a combobox to test its functionality and Visual Studio once again showed all correct .

Then I decided to take my small application to SharePoint so I built my project , I took the file . Xap and added it to a folder on my site, on a new page added a Silverlight Webpart referring to . Xap file that lives in the library .

Unfortunately that displays only the combobox WebPart , the gauge showing Visual Studio does not appear in SharePoint and the worst is that there is no error message to give me a clue what I'm doing wrong . I even added the dll in the folder app_bin  of my site but the control is not displayed yet.

I followed the steps of the videos but the resulting webpart simply is blank.
How I can solve this problem , is it required some configuration in webconfig ?

Please I need urgent help with this.
Thank you in advance.
0
Andrey
Telerik team
answered on 01 Nov 2013, 04:13 PM

Hello Israel,

In the most cases the RadGauge controls are invisible when NoXAML binaries are used and correspondent theme DLL (Telerik.Windows.Themes.Windows8.dll, for example) is not included to the distribution.

Regards,
Andrey Murzov
Telerik

TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.

Sign up for Free application insights >>
0
Israel
Top achievements
Rank 1
answered on 01 Nov 2013, 04:33 PM
Hello Andrey.

Thanks for responding.

All references I have added to my Silverlight project were in the folder: Binaries \ Silverlight, in the correspondent DLL theme, I'm using Themes.Office_Silver.dll.

As I have understood when they built the project, Silverlight should also pack these references to the project. Xap file, but SharePoint is not recognizing control and therefore not shown.

Perhaps the poblem is in the way in which I am building the MainPage.xalm, leave here the code if it helps:

<UserControl x:Class="Gauges.MainPage"
        mc:Ignorable="d" d:DesignWidth="912" d:DesignHeight="352" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <Grid x:Name="LayoutRoot">
        <telerik:RadSemicircleNorthGauge Name="RdIndicador" Margin="12,137,650,0" Width="250" Height="150" VerticalAlignment="Top" d:LayoutOverrides="Height" Visibility="Visible" >
            <telerik:SemicircleNorthScale Name="ScaleTotal" MajorTicks="5"  StartAngle="180" SweepAngle="180" Min="0" Max="100" Background="Gray">
                <telerik:SemicircleNorthScale.Indicators>
                    <telerik:Needle Name="needle"  Value="0" IsAnimated="True" FlowDirection="LeftToRight" />
                    <telerik:Pinpoint />
                    <telerik:BarIndicator Name="Good" Background="LawnGreen" Opacity="0.5" StartWidth="0.02" Value="100" />
                    <telerik:BarIndicator Name="Regular" Background="Yellow" Opacity="0.7" StartWidth="0.02" Value="50" />
                    <telerik:BarIndicator Name="Bad" Background="IndianRed" Opacity="1" StartWidth="0.02"  Value="25" />
                </telerik:SemicircleNorthScale.Indicators>
            </telerik:SemicircleNorthScale>
            </telerik:RadSemicircleNorthGauge>
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="12,12,0,0" Name="Asignado" VerticalAlignment="Top" Width="120"  />
        <sdk:Label Height="28" HorizontalAlignment="Left" Margin="107,312,0,0" Name="Total_Aplazadas" VerticalAlignment="Top" Width="120" Content="0%" />
    </Grid>
</UserControl>
0
Andrey
Telerik team
answered on 05 Nov 2013, 04:57 PM
Hello Israel,

It looks like you have a general markup layout problem. You use Margin with very big values to position the RadSemicircleNorthGauge. This values can move the gauge outside of the visible area.
Especially it makes sense when Silverlight applet have a fixed size inside the HTML page. It isn't recommended to use the Margin this way to position elements on the Silverlight page.

Regards,
Andrey Murzov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Gauge
Asked by
Israel
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Israel
Top achievements
Rank 1
Share this question
or