telerik - Kendo Grid Mobile with JSP Wrappers -
i cannot mobile adaptive grid features work using kendo jsp wrappers. have cut down as possible, , not work wrappers. can working fine javascript. following works fine:
<div id="grid"></div> <script> var gridconfig = { columns: [ {field: "name", title: "name"}, {field: "age", title: "age"} ], filterable: true, columnmenu: true, mobile: true }; $("#grid").kendogrid(gridconfig); </script>
when @ grid in desktop browser, filter , column menus appear expect. when view grid on cell phone, filter , column menus push grid aside , appear standard mobile selection list. if create same grid using jsp wrappers, doesn't work:
<div id="grid"> <kendo:grid name="grid" filterable="true" columnmenu="true" mobile="true" > <kendo:grid-columns> <kendo:grid-column title="name" field="name" /> <kendo:grid-column title="age" field="age" /> </kendo:grid-columns> </kendo:grid> </div>
the filter , column menus display on phone on desktop, makes them unusable since slide off viewing area , disappear when try scroll them.
i know obvious question why bother wrappers, have due our usage of freemarker throughout application.
what missing here?
had modify source of latest release (2016.1.112) myself. in case else has similar issue, adjust setmobile method of com.kendoui.taglib.gridtag.java.
public void setmobile(java.lang.object value) { if (value instanceof string && (((string)value).equalsignorecase("true") || ((string)value).equalsignorecase("false"))) { setproperty("mobile", boolean.valueof((string)value)); } else { setproperty("mobile", value); } }
could better, it's functional , need now.
Comments
Post a Comment