Help to use source classes code instead of dll
Hi,
I uninstalled nuget grid.mvc and would like to use the source code because you had improve it with the enum column filter.
So i created a a folder to my project , copied grid.mvc folder to it and removed assembly but i experience trouble with resource files not linked to my project and i don't know how to do.
Could you please help ?
BR
Was drunk. Only add a new project to your solution to make it works.
But take care of assembly, i had to install nuget package mvc 3.0 to make it works.
Im actually stuck with enum filter because i think there is some missing code like this :
In filtertyperesolver :
publicFilterTypeResolver(){
//missing one :
_filterCollection.Add(new EnumFilterType());
}
But i m working with icollection like this :
columns.Add(o => o.ROOT_CAUSE_CATEGORIES).Titled("Category").Encoded(false)
.RenderValueAs(o => CustomRenderingCategoryColumn(o)).Filterable(true).SetFilterWidgetType("CategoryFilterWidget");
but seems not work when trying this method : not same type
public IFilterType GetFilterType(Type type)
{
foreach(IFilterType filterType in _filterCollection)
{
//if(filterType.TargetType.FullName == type.FullName)
if (filterType.TargetType.FullName == type.FullName)
return filterType;
}
if(type.IsEnum)
{
return new EnumFilterType();
}
return new TextFilterType(); //try to process column type as text (not safe)
}