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

Dumb linking to SQL down(feature request)

3 Answers 24 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
xx xx
Top achievements
Rank 1
xx xx asked on 12 Mar 2010, 03:25 PM
I guess i'm not nearly as tech savvy within the web environment as many others.  I love what I see on the Telerik demo's for silverlight...looks very powerful.

I wish telerik would add some sort of wizard to massively dumb down connecting their controls to SQL data.  In dot .net it is so easy to drop a new SQL data source onto the page...and tie controls to it.  In silverlight, unless i'm missing something...it takes an act of congress to to get your control to tie to data.  I'm pretty sure thats a side effect of sliver light.....maybe telerik could make it easier.


3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Mar 2010, 03:37 PM
Hello,

You can try WCF RIA Services - you can bind the grid to DomainDataSource completely codeless.

Best wishes,
Vlad
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.
0
xx xx
Top achievements
Rank 1
answered on 15 Mar 2010, 04:02 PM
Well RIA got me a lot closer....

I've got an ado.net entity data model and data domain service set up correctly tied to a SQL database.  I also have the radgrid sitting on a silverlight page I just can't figure out how to tie the control to the data domain service without going into code?  Its probably simple.

0
Milan
Telerik team
answered on 16 Mar 2010, 09:59 AM
Hello xx xx,

You can check out our RIA Services example which demonstrates codeless binding. Here is stripped-down version of the example:

<Examples:GridViewExample x:Class="Telerik.Windows.Examples.GridView.DomainDataSource.Example"
    xmlns:riaData="clr-namespace:System.Windows.Data;assembly=System.Windows.Controls.Ria"
    xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Ria"
    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    xmlns:Examples="clr-namespace:Telerik.Windows.Examples"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
    xmlns:e="clr-namespace:ExamplesWeb">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <!-- QueryName specifies the query to be used to load data-->
        <riaControls:DomainDataSource x:Name="DomainDataSource1" AutoLoad="True" QueryName="GetCustomers" PageSize="10">
            <riaControls:DomainDataSource.DomainContext>
                <!-- Replace with your DomainContext here -->
                <e:NorthwindDomainContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <telerik:RadGridView x:Name="RadGridView1" ItemsSource="{Binding Data, ElementName=DomainDataSource1}"/>
    </Grid>
</Examples:GridViewExample>

Greetings,
Milan
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.
Tags
General Discussions
Asked by
xx xx
Top achievements
Rank 1
Answers by
Vlad
Telerik team
xx xx
Top achievements
Rank 1
Milan
Telerik team
Share this question
or