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

4.5 ItemType?

8 Answers 217 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 20 Sep 2012, 09:43 PM
I don't seem to be able to use the 4.5 "ItemType" "Item" property in my GridTemplateColumn

Now this is my first time trying it, but...does it work, am I doing this wrong?

<telerik:RadGrid ID="learnerGrid" runat="server" OnNeedDataSource="learnerGrid_NeedDataSource" AutoGenerateColumns="false" ShowHeader="true" Height="500px" ItemType="AuthDB.Model.MppProfile">
        <MasterTableView>
            <Columns>
                <telerik:GridTemplateColumn DataField="UserName" HeaderText="Name">
                    <ItemTemplate>
                        <span><%# Item.UserName %></span>
                        <span></span>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="FullNameReverse" HeaderText="Name" />
            </Columns>
            <NoRecordsTemplate>
                No learners
            </NoRecordsTemplate>
        </MasterTableView>
        <ClientSettings>
            <Scrolling AllowScroll="true" ScrollHeight="500px" />
        </ClientSettings>
    </telerik:RadGrid>

8 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 25 Sep 2012, 03:32 PM
Hello,

Unfortunately the current version of the RadGrid does not provide support for this feature. However we have plans for implementing the asp.net 4.5 Model Binding for the next official release of the RadControls for ASP.NET AJAX (Q1 2013). Please excuse us for the inconvenience caused. 

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Bill
Top achievements
Rank 2
answered on 08 Feb 2013, 03:31 PM
Pavlina, I can't find any demos for the beta that use model binding...

I tried looking here, but couldn't find anything on it:
http://demos.telerik.com/aspnet-ajax-beta/Grid/Examples/programming/binding/defaultcs.aspx

Do you know where I can find any demos on this?
0
Pavlina
Telerik team
answered on 13 Feb 2013, 03:29 PM

Hello,

Unfortunately we do not have demos for the ModelBinding into the beta version of our control. The official version will have SDK uploaded where you can find demos with the ModelBindign for the major data bound controls. Also because of ModelBinding is feature introduced into the 4.5 framework the demos will be available only into the SDK, because our demos are hosted on the main stream framework 4.0.

Greetings,

Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Stephen
Top achievements
Rank 1
answered on 25 Feb 2013, 04:35 PM
Hi Pavlina,

  I see that RadControls for ASP.NET AJAX (Q1 2013) has been released since 20th February  2013. Is there any demo available with this particular new feature implemented in it ( Model Binding To a RadGrid).

Regards,
Stephen.
0
Barbaros Saglamtimur
Top achievements
Rank 1
answered on 25 Feb 2013, 08:08 PM
0
Stephen
Top achievements
Rank 1
answered on 25 Feb 2013, 08:17 PM
Thanks for this Barbaros ,

   I have come across this page as well but i was hoping for a working C# example of model binding process.

All the other Tools/Features have a working demo, but though because Strongly typed model binding is  requires .NET 4.5 and Teleriks examples are on a server framework
 4.0. That there may be a demo available on request or at a different Telerik demo link( lets say a server that supports 4.5 to show items they support on that framework).

Regards,
Stephen.
0
Barbaros Saglamtimur
Top achievements
Rank 1
answered on 26 Feb 2013, 10:51 AM
You are right. I am expecting working samples under Data Binding, where the first place I looked for.
0
Pavlina
Telerik team
answered on 28 Feb 2013, 03:53 PM
Hello,

A sample projects which demonstrate the model binding for RadGrid, RadTreeList and RadListView are available in the link below:
https://github.com/telerik/aspnet-sdk/tree/master/Integration/ModelBinding

Greetings,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Pavlina
Telerik team
Bill
Top achievements
Rank 2
Stephen
Top achievements
Rank 1
Barbaros Saglamtimur
Top achievements
Rank 1
Share this question
or