Hi
How to make column of Grid for the password in a kind " ***** "
@(Html.Kendo().Grid(Model)
There is one requirement where I need to sort column data on custom order. by default kendo grid support either ascending or descending order. is there any work around where I can sort data by custom order.
i.e. there is status column in the grid and data is grouped by this column and its possible values are - Critical (1), Suspect(2) and ok (0) and the requirement is data should be sorted like Suspect, ok and critical. this order is neither ascending or descending (by status name or status id).
Thanks,
Dharmesh

Please see the attached image for an example.
Is there a way I can get rid of or hide the extra header cells in the row area?
For example, let's say my data source is a JSON object similar to:
[{"MAIN NAME": "MAIN NAME 2", "SUBNAME": "SUBNAME 1}, {"MAIN NAME": "MAIN NAME 2, "SUBNAME": "SUBNAME 2"}]
For example, can I combine the cells for SUBNAME and SUBNAME1?
As it is, the extra MAIN NAME and SUBNAME cells being rendered are taking up a lot of horizontal real estate.
Thanks
I am using Kendo Commercial - 2015.3.1111.
I am using the following widgets/frameworks in SPA-architectured application.
jQuery 2.1.4
Kendo Router
Kendo View
Kendo Layout
Kendo MVVM
RequireJs
RequireText - For loading external views
Kendo Grid,Window,ComboBox
When the Grid's filter mode is set to Row, there are several k-list-containers (k-popup also) that are appended outside of my View's top level HTML element, but are appended in the BODY element. This same behavior happens for the Kendo ComboBox. However, the Kendo ComboBox has an option named AppendTo that allows the auto-generated elements to be placed in the View's top level element.
Is it possible to set an option (appendTo?) on the Grid that will place these auto-generated elements in the container of my choice?
This would allow the DOM to remain "cleaner" without having to destroy the View. Perhaps, destroying the view is the intended action. If so, I am also struggling with re-initalizing the View when it is subsequently navigated.
Example of ComboBox with AppendTo:
HTML:
<input id="timeZoneInfoId" data-bind="source: timeZones, value: selectedUser.timeZoneInfoId" style="width:100%" />JavaScript: (this is in the View's Init event) (#viewMaintenance is the top level View element)
$('#timeZoneInfoId').kendoComboBox({ dataTextField: 'name', dataValueField: 'timeZoneInfoId', popup: { appendTo: $('#viewMaintenance') } });My Grid:
HTML:
<div id="gridMaintenance" name="gridMaintenance" data-role="grid" data-selectable="row" data-scrollable="true" data-sortable="true" data-editable="false" data-filterable="{mode: 'row'}" data-columns="[ { field: 'tenantUserId', title: 'User Id' }, { field: 'firstName', title: 'First Name' }, { field: 'lastName', title: 'Last Name' }, { field: 'isActive', title: 'Active'} ]" data-bind="source: users, events: {change: gridSelectionChange}" data-auto-bind="false" data-toolbar="[{template: kendo.template($('#gridToolbar').html())}]"> </div>Thanks for your help,
Ben
Is there a way to scroll the body of the treelist table and have the header and footer stagnant? We use this table for large numeric datasets and users have to scroll to the bottom of the table to see totals. I like how the kendo grid handles scrolls.
Any help, workarounds, etc., would be much appreciated.
Thanks
T
Hi,
I have a Kendo grid reading from a DataSource that maps to some JSON returned from our application's API. The JSON contains some main objects which can have zero or more subobjects, like this:
[ { "itemId": 123, "text": "blah", "subItems": [ { "subItemId": 1, "subItemText": "foo" }, { "subItemId": "2", "subItemText": "banana" } ] }, ...]Using DataSource.schema.model I can easily define the data types for the fields in the main objects:
var dataSource = new kendo.data.DataSource({ schema: { model: { id: 'itemId', fields: { itemId: { type: 'number' }, text: { type: 'string' } } });How do I go about defining the model for the fields in the subitems?
Thanks for any help,
Nigel

What is the max number of columns allowed in the spreadsheet?
Unless I am doing something wrong, I am only able to go out to column "AX".
Our use case will have over 300 columns in some cases. Is this possible?
i use the the window widget and when the window is active/open - there are no css styles available attached to the content template inside the window.
even the bootstrap theme is not available inside the window widget.
i simply open the window like this:
<div id="win1" kendo-window="windowWidget" k-options="windowWidget"></div>
... inside a view, in which the boostrap css files are available.
the config object looks like this:
windowWidget= {
width: "80%",
height: "80%",
modal: true,
visible: false,
title: "lalalal",
actions: ["Maximize", "Close"],
animation: {
close: false,
open: false
},
content: "./././window.view.html"
}
do i miss something inside the config object?
thanks
werner