Friday 15 August 2014

c# - Time Filter in GridMvc -



c# - Time Filter in GridMvc -

i not getting time filter properly, displays calendar instead of time. calendar should displays when date filter selected. below code view have attached image. downloaded sample source code next link https://gridmvc.codeplex.com/

view

@using gridmvc.html @using gridmvc.sorting @model ienumerable<gridmvc.site.logging> @html.grid(model).named("ordersgrid").columns(columns => { /* adding "orderid" column: */ columns.add(o => o.id) .titled("number") .setwidth(100); columns.add(o => o.datetime, "date") .titled("date") .sortinitialdirection(gridsortdirection.descending) .format("{0:dd/mm/yyyy}") .setwidth(110); columns.add(o => o.datetime, "time") .titled("time") .sortinitialdirection(gridsortdirection.descending) .format("{0:hh:mm tt}") .setwidth(110); columns.add(o => o.type) .titled("type") .setwidth(150) .thensortbydescending(o => o.id); //.setfilterwidgettype("customcompanynamefilterwidget"); columns.add(o => o.description) .titled("description") .setwidth(250); columns.add(o => o.reference) .titled("reference") .setwidth(150) .css("hidden-xs"); //hide on phones columns.add(o => o.response) .titled("response") .setwidth(150) .css("hidden-xs"); //hide on phones }).withpaging(15).sortable().filterable().withmultiplefilters()

sir there no feature filtering time on datatypes. grid.mvc back upwards several types of columns (specified in add together method):

system.string system.int32 system.int64 system.boolean system.datetime system.decimal system.byte system.double system.single

https://gridmvc.codeplex.com/wikipage?title=filtering

c# asp.net-mvc-4 mvcgrid

No comments:

Post a Comment