This question is locked. New answers and comments are not allowed.
Is it possible to use nhibenrate with ajaxfied grid? When I try to bind data i get error message
My Grid:Incorrect syntax near 'Index'. If this is intended as a part of a table hint,
A WITH keywordand parenthesis are now required. See SQL Server Books Online for proper syntax.
My repository method:@(Html.Telerik().Grid<
Product
>()
.Name("Grid")
.DataBinding(dataBinding => dataBinding.Ajax().Select("_GetProducts", "Home"))
.Columns(c =>
{
c.Bound(o => o.Name).Title("name");
})
.Groupable()
.Sortable()
.Pageable()
.Filterable()
public IList<
Product
> GetProducts()
{
return _session.Query<
Product
>().Where(x => x.Status == "A").ToList<
Product
>();
}