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

How to use RadCarousel in SharePoint web parts?

6 Answers 152 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Savan
Top achievements
Rank 1
Savan asked on 16 Feb 2009, 01:59 PM
Hi,

We have download and installed sample exe for WPF application.
It has created some sample application in C:\ProgramFiles\Telerik...

Now when you copy and paste the code from your examples, its not running and giving error.

So Can you please tell me how to use run your sample examples.

I get the error at line
        <telerik:RadCarousel 

Error is : The element grid in namespace http://schemas.microsoft.com/winfx/2006/xaml/presentation
has invalid child element RadCarousel in namepace http://schemas.microsoft.com/winfx/2006/xaml/ list of possible elements expexted..... 

This is my Code

<QuickStart:ExampleControl x:Class="Telerik.Windows.Examples.Carousel.BringIntoView.Example" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:QuickStart="clr-namespace:Telerik.Windows.QuickStart;assembly=Telerik.Windows.QuickStart" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    xmlns:e="clr-namespace:Telerik.Windows.Examples">  
    <QuickStart:ExampleControl.Resources> 
        <ObjectDataProvider x:Key="objectDataProvider" ObjectType="{x:Type e:ExamplesDB}" MethodName="GetAddressBookSimple" /> 
    </QuickStart:ExampleControl.Resources> 
    <Grid> 
        <telerik:RadCarousel Name="radCarousel" DataContext="{StaticResource objectDataProvider}" ItemsSource="{Binding}"/>  
      
    </Grid> 
    <QuickStart:ExampleControl.TopRightPanel> 
        <StackPanel> 
            <TextBlock Text="Locate contact" /> 
            <ComboBox DisplayMemberPath="FirstName" DataContext="{StaticResource objectDataProvider}"   
                      ItemsSource="{Binding}" HorizontalAlignment="Stretch" ClipToBounds="True" SelectedIndex="0"   
                      SelectionChanged="Contact_SelectionChanged" /> 
        </StackPanel> 
    </QuickStart:ExampleControl.TopRightPanel> 
</QuickStart:ExampleControl> 

I have installed .NET Framework 3.0 and VS 2005



We need to use this in a web application.
Thanks
Savan

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Feb 2009, 02:03 PM
Hi Savan,

Do you have references to our WPF dlls in your project?

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Savan
Top achievements
Rank 1
answered on 17 Feb 2009, 05:21 AM
Hi,

Yes I have added all the ddls from folder
C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 -----     
PresentationCore.dll
PresentationFramework.dll
WindowsBase.dll

etc.

and all dlls from C:\Program Files\Telerik\Binaries -----folder.

Should I have to install VS 2008, .NET Framework 3.5 SP1, or SilverLight 2.0 ???

Thanks
Savan
0
Vlad
Telerik team
answered on 17 Feb 2009, 06:16 AM
Hi Savan,

You will need Telerik dlls if you want Visual Studio to recognize telerik prefix.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Savan
Top achievements
Rank 1
answered on 17 Feb 2009, 07:20 AM
Hi,

Now I am able to play with your sample examples.

Can I use this RadCarousel  control in SharePoin Web Parts?

If yes, How? Can you please send me a sample web part application.

Thanks
Savan

0
Vlad
Telerik team
answered on 19 Feb 2009, 02:26 PM
Hi Savan,

Most probably you will need iframe to show WPF XBAP.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Savan
Top achievements
Rank 1
answered on 20 Feb 2009, 05:13 AM
Hi,
Thanks for reply....

Yahhh...I used IFrame to render XBAP file.
Its working.

But I new to RadCarousel  and SilverLight....So Can u please send me some simple code example
which explains me, how to bind RadCarousel control to datatable?


Thanks
Savan
Tags
Carousel
Asked by
Savan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Savan
Top achievements
Rank 1
Share this question
or