Dumb linking to SQL down(feature request)

4 posts, 0 answers
  1. xx xx
    xx xx avatar
    2 posts
    Member since:
    Mar 2010

    Posted 12 Mar 2010 Link to this post

    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.


  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 12 Mar 2010 Link to this post

    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.
  3. xx xx
    xx xx avatar
    1 posts
    Member since:
    Mar 2010

    Posted 15 Mar 2010 Link to this post

    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.

  4. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 16 Mar 2010 Link to this post

    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.
Back to Top