I still struggle continually with this issue. If I use a nullable int on my model and use .ForeignKeyFor in my .cshtml, then when I select the first item in the list, it goes blank. I've added .ValuePrimitive(true) to my GridForeignKey.cshtml editor template, but this is still a problem. Also, I think it's not unreasonable to expect if you add a row to the grid that it would default the value to null and let you select the first item in the list. I don't think anything I've tried has let me do this. The best I've been able to do is create an actual item for null with a value of 0 or something and then code it on the server side to treat 0 as null. I don't feel like this is a great solution. Anyone had better luck that me? Telerik do you have a recommendation or an example?

I have a ComboBox that displays values and text (descriptions) in the drop-down list. Everything works well, except I need the value to display in the textbox (input) portion of the ComboBox, not the text description. For example, an entry contains "Jr." as the value and "Junior" as the text description. When selected, I want the textbox to display "Jr." instead of "Junior". How can I make this happen? I'd like to keep the text descriptions in the drop-down if possible.
Thanks.
Hi there
When binding enabled/disabled or visible/invisible I normally use callback functions to check the current state. Unfortunately the element itself is not given to these callback functions.
In my case, to determine the state of the element, I would need to check if the element, which called the callback function, is part of a disabled tab strip tab. But since there is no element given, I need to search for it in the DOM, which probably is not always reliable and could return multiple elements.
So my Questions:
Why is it, that no params are given to the callback function?
Can I change that?
Regards,
Patric
Hello,
I currently have a grid in my application that has a custom editor template. This template has the default window close, update, and cancel that the editor template provides. I noticed that when I close this editor, my page jumps to the top of the screen. I believe the anchor being set to "#" is the cause. Is this so? Is there a way I can remove this?
Thank you in advance for helping me with this issue.
Alex
Hi,
How to replace kendo icon (k-plus) with bootstrap icon (glyphicon glyphicon-plus-sign), and kendo icon (k-minus) with bootstrap icon (glyphicon glyphicon-minus-sign) in CSS.
Regards,
Rajender Kumar
I just upgraded to 2016.1.112 and I noticed that the grids now have a grey gradient background color over rows that are hovered over. The grid did not used to do this in 2015.3.1111. You can change the target version in the following example to demonstrate:
http://dojo.telerik.com/aDUPi/2
Also, the hover background color of the grid does not follow the hover background color for any other widget and does not seem to be controlled by the same hover background color variable in the styles. This is evident when you change the "Hover background" color in the theme builder and all widgets have the new hover background color except for the grid:
http://demos.telerik.com/kendo-ui/themebuilder/
How can I either remove the hover background color on grids or change the color to match all other widgets?
Thanks,
Michelle
I'm attempting to use the Grid component's built-in support for exporting to excel, applying custom cell formatting as shown in these Telerik docs:
http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/excel/cell-format
My question is - how can I identify the actual field / column relating to the cell being formatted from within this handler? The approach using row / cell indexes comes with the rather obvious issue when exporting a grid with a prior hidden column displayed - best way to reproduce is to refer to this jsfiddle:
https://jsfiddle.net/3anqpnqt/1/
What I need to be able to do is identify the cell to format as the 'unitPrice' and apply the format, but inspection of the object model within the excelExport handler doesn't give me any way to make this link. In my real application, I have several custom formats to apply (percentages, n0, n2 etc) so it's not as simple as going $.isNumeric(cell.value) or otherwise.
Am I missing something, or is this simply not possible?

Hi,
I am binding JSON data to grid.but facing issue on it
can u pls provide example for asp.net without mvc to bind data to kendo grid.
<div id="grid"></div>
<script>
$(document).ready(function () {
$.ajax({
type: "POST",
url: "Default.aspx/Test,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
BindGrid(response.d);
}
});
});
function BindGrid(sourcedata) {
$("#grid").kendoGrid({
sortable: true,
groupable: true,
scrollable: true,
height: "300px",
pageable: {
pageSizes: 9
},
dataSource: sourcedata
});
}
</script>
Hey everyone,
I'm currently working on this http://dojo.telerik.com/IMELI and I would like to have a date above every day of the month.
I tried to look into other schedulers where there is one in it, but I wasn't able to find it.
Thanks in advance.
Greetings,
Max