This question is locked. New answers and comments are not allowed.
Hi Guys in my grid my filtering and sorting not working i saw similer threads i tried those thigs but still same problem, my code is
Actually I am using partial class aswell because i need some more properties in model and also some of them [UIHINT], b/c of that sorting and grouping and filtering not working can you tell em why is that.
<% Html.Telerik().Grid<Search>()
.Name("Grid")
.DataKeys(Keys =>
{
Keys.Add(a => a.ID);
})
.ToolBar(commands =>
{
commands.SubmitChanges();
})
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("Select", "Employee")
.TableHtmlAttributes(new { style = "width:590px" })
//.HtmlAttributes(new { @class = "myGrid" })
.Columns(columns =>
columns.Bound(o => o.FirstName).Width(75);
columns.Bound(o => o.MiddleName).Width(150).HeaderTemplate(() => {%>
<table cellspacing="0" class="data-header">
<tr>
<td align="left"><img alt="Can not edit this column." src="../../Content/Images/x.GIF" /> Description</td>
</tr>
</table>
<%});
columns.Bound(o => o.LastName).Width(150);
})
.Scrollable(c => c.Height("440px"))
.Resizable(resizing => resizing.Columns(true))
.Sortable()
.Filterable()
.Pageable(pager => pager.PageSize(20))
.ClientEvents(events => events.OnColumnResize("OnResize"))
.ClientEvents(events => events.OnDataBinding("OnDataBinding"))
.ClientEvents(events => events.OnEdit("onEdit"))
.ClientEvents(events => events.OnError("Grid_onError"))
.Editable(editing => editing.Mode(GridEditMode.InCell))
.KeyboardNavigation()
.Render();
%>
and i am attaching image when i click on filter it is shwoing on wrong place.
Actually I am using partial class aswell because i need some more properties in model and also some of them [UIHINT], b/c of that sorting and grouping and filtering not working can you tell em why is that.
<% Html.Telerik().Grid<Search>()
.Name("Grid")
.DataKeys(Keys =>
{
Keys.Add(a => a.ID);
})
.ToolBar(commands =>
{
commands.SubmitChanges();
})
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("Select", "Employee")
.TableHtmlAttributes(new { style = "width:590px" })
//.HtmlAttributes(new { @class = "myGrid" })
.Columns(columns =>
columns.Bound(o => o.FirstName).Width(75);
columns.Bound(o => o.MiddleName).Width(150).HeaderTemplate(() => {%>
<table cellspacing="0" class="data-header">
<tr>
<td align="left"><img alt="Can not edit this column." src="../../Content/Images/x.GIF" /> Description</td>
</tr>
</table>
<%});
columns.Bound(o => o.LastName).Width(150);
})
.Scrollable(c => c.Height("440px"))
.Resizable(resizing => resizing.Columns(true))
.Sortable()
.Filterable()
.Pageable(pager => pager.PageSize(20))
.ClientEvents(events => events.OnColumnResize("OnResize"))
.ClientEvents(events => events.OnDataBinding("OnDataBinding"))
.ClientEvents(events => events.OnEdit("onEdit"))
.ClientEvents(events => events.OnError("Grid_onError"))
.Editable(editing => editing.Mode(GridEditMode.InCell))
.KeyboardNavigation()
.Render();
%>
and i am attaching image when i click on filter it is shwoing on wrong place.