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

Kendo UI MVC Grid equivalent to ForeignKey Column Feature of Telerik Grid?

1 Answer 348 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 10 Jul 2012, 07:19 AM
UPDATE: NEVERMIND, THIS FEATURE IS AVAILABLE IN FINAL RELEASE



Hello,

I'm evaluating if we can port all features (that we need) of our Telerik MVC Extensions Grid to the Kendo UI MVC Grid. I wasn't able to find an equivalent to the ForeignKeyfeature, which we use like this:

@(Html.Telerik().Grid<RowModel>()
.DataBinding(dataBinding => dataBinding.Ajax().Select("_GetData", "Data"))
.Columns(x =>
    {
        x.Bound(y => y.Id).Width(40);
        x.Bound(y => y.Description).Width("40%");
        x.ForeignKey(y => y.SomeForeignId, Model.ForeignIdResolveCollection, "ID", "Name").Width("80%");
    })
)

We don't use the Built in edit features but it's very useful for the column filtering feature, for example. Is there a replacement for this feature, if not, will there be one in future?

Best regards
Thomas

1 Answer, 1 is accepted

Sort by
0
andrew
Top achievements
Rank 1
answered on 24 Jul 2012, 10:28 AM
Hi Thomas,

I've been struggling with this for over a week now and I have a deadline of next monday to get a sample application up and running. Have you managed to get anywhere with it?

Here is a sample project with my attempt so far, I managed to get the read action working (but don't think the way I have done it is correct) but I can't get the add, edit and delete working with foreign keys.

Also I am using a client side approach as I kept getting errors on Html.Kendo() I think its something to do with the MVC.Web extensions but I couldn't figure it out.

Any help would be much appreciated.

Andy
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
andrew
Top achievements
Rank 1
Share this question
or