This question is locked. New answers and comments are not allowed.
...so the setup is:
<%= Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Add(o => o.Name).Width(100);
columns.Add(o => o.ShipAddress).Width(200);
})
.Ajax(settings => settings.Action("_CustomBinding", "Grid"))
.Pageable(settings => settings.Total((int)ViewData["total"]))
.EnableCustomBinding(true)
.Filterable()
.Sortable()
%>
it works like a charm....but as soon as you change the property name to include a number (any number, anywhere):
columns.Add(o => o.Name2).Width(100);
columns.Add(o => o.ShipAddress).Width(200);
or
columns.Add(o => o.N2ame).Width(100);
columns.Add(o => o.ShipAddress).Width(200);
I get from Ajax Object ref not set... on this line:
public void Visit(PropertyNode propertyNode)
{
((FilterDescriptor)CurrentDescriptor).Member = propertyNode.Name;
}
in "FilterNodeVisitor". It says that the CurrentDescriptor is null?!
Any ideas?
Thnx!
Vladan
<%= Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Add(o => o.Name).Width(100);
columns.Add(o => o.ShipAddress).Width(200);
})
.Ajax(settings => settings.Action("_CustomBinding", "Grid"))
.Pageable(settings => settings.Total((int)ViewData["total"]))
.EnableCustomBinding(true)
.Filterable()
.Sortable()
%>
it works like a charm....but as soon as you change the property name to include a number (any number, anywhere):
columns.Add(o => o.Name2).Width(100);
columns.Add(o => o.ShipAddress).Width(200);
or
columns.Add(o => o.N2ame).Width(100);
columns.Add(o => o.ShipAddress).Width(200);
I get from Ajax Object ref not set... on this line:
public void Visit(PropertyNode propertyNode)
{
((FilterDescriptor)CurrentDescriptor).Member = propertyNode.Name;
}
in "FilterNodeVisitor". It says that the CurrentDescriptor is null?!
Any ideas?
Thnx!
Vladan