Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
<script>
var grid = new ej.grids.Grid({
dataSource: new ej.data.DataManager({
url: "/api/Values",
adaptor: new ej.data.WebApiAdaptor(),
crossDomain: true
}),
...
actionBegin:function(args){
if (args.requestType == "searching") {
for (var i = 0; i < this.getColumns().length; i++) {
if (this.getColumns()[i].field) {
this.searchSettings.fields.push(this.getColumns()[i].field) //These columns fields will only be included in searching. So
}
}
}
},
...
});
grid.appendTo("#Grid");
</script>
|