or
var myDataSource = [{ firstname: 'me', lastname: 'you', Age: 5 }]; $('#grid')..kendoGrid({ data: { dataSource: myDataSource , pageSize: 500 , group: { field: '
firstname ' , dir: "asc" }, groupable: false, columns: [ { field: 'firstname' , title: ''} /* and so on */}); firstname and then sub grouping on lastname when creating the grid. I know it is possible when the grouping is enabled and user can drag and drop multiple columns for nested groping, but I want to restrict the user from selecting himself and do the grouping on showing.
Maybe something like
group: [{ field: '
firstname ' , dir: "asc" },{ field: '
lastname ' , dir: "asc" }]
public JsonResult read() { return this.Json(db.Weapons, JsonRequestBehavior.AllowGet);}var autoCompleteCombo = $("#food-box").kendoComboBox({ autoBind: false, minLength: 3, filter: "contains", suggest: false, dataTextField: "Long_Desc", //JSON property name to use dataValueField: "NDB_No", //JSON property name to use dataSource: autoCompleteDS, change: function (e) { if (this._current) { var item = this.dataSource.view()[this._current.index()]; currentItem = item; //store the selected item //Get the weight navproperty weightDS.transport.options.read.url = item.usda_WEIGHT.__deferred.uri; weightDS.fetch(); fromCombo.enable(); toCombo.enable(); //fromCombo.open(); } } }).data("kendoComboBox"); //Hide the arrow om the combo autoCompleteCombo._arrow.hide() .closest(".k-dropdown-wrap") .addClass("combo-to-autocomplete");fromCombo.enable(); toCombo.enable(); fromCombo.open(); toCombo.open();