I am trying to use the kendo numeric text box (jquery), however I'm having an issue. I'm using the text box to collect the user's year of birth. This can realistically be a value between 1902 and 2022 (the current year). I set the min to 1902 and the max to 2022. The user can also choose to leave this field blank and not provide a year of birth. When a user types 19 into the field it changes it to 1902. I don't want this as the likelihood that the user's year of birth is actually 1902 is very small. Instead I would like it to blank the field out. I have tried getting rid of the min and max values but then the up/down arrows become virtually useless since the user would have to click up 1,902 times just to get to a valid value. How can I keep the up arrows starting at 1902 and ending at 2022 while also not having kendo change the value to the min or max?
I have seen a few other posts on the topic that are old and the issue was never properly addressed.
I am using a Kendo Context Menu on a treeview and some other divs on the page.
Occasionally, when right clicking, I get the browser's right click menu when right clicking. Its not often, but does occur in both IE11 and Chrome. (probably 1 out of every 20 times with IE, 1 out of every 30 times with Chrome)
I've tried to narrow down when it happens by clicking in different areas of the treeview items, but there doesn't seem to be a pattern. The menu is simple: only a couple items, and is not dynamic.
I'm guessing kendo uses oncontextmenu - so this is a browser issue. I'm just seeing if you have ever seen this issue, and if there is anything that can be done to avoid it. (or do we just have to accept it)
Hi,
Is there any api that i can use to check if the row in the spreadsheet is hidden? TIA.
Regards,
Brian
Hello,
I'm using the Kendo Grid with Editing custom editor like the doc Edit custom but I have a real problem when I click on the "add button" there's no focus on the first column's new row.
I have the Datasource :
let DataSource = new kendo.data.DataSource({
data: data,
autoSync: true,
schema: {
}
})
And the grid
$('#grid').kendoGrid({
dataSource: DataSource,
pageable: false,
height: 550,
toolbar: ["create"],
columns: [],
editable: true
})
Of course schema and column are good with fields and model.
However when I add a new record, there's a new row but there's no focus on the first column input which have { validation: { required: true } }.
If I remove autoSync: true, I have the good action, and I focus out the error message display but I want to save when the focusout is fired on the field..
I don't understand why it's not working but if someone can help me it will be nice because I made it again and again whithout finding the solution (listening events 'Edit', 'BeforeEdit', 'EditRow' & 'EditColumn' but it only work with "inline" or "popup" edit mode, or trying to focus on the first column's new row when the add button is fired).
Hope you see my problem.
Regards
Hi,
How do I set a dropdown list in the spreadsheet control cell manually? I will specify the list via the UI, I do not want to inputting the cell with the json injection.
TIA.
Regards,
Brian
Hi
Is this the example for REST API and the Grid ?
https://demos.telerik.com/kendo-ui/grid/editing
Hi
How I can make cascade drop downlist inside a grid like in this example :
https://demos.telerik.com/kendo-ui/grid/editing-custom
Hi
I would like to send a value (userid) with the read command of dataSource. I've done several tests but I can't catch the posted value in PHP.
Working ( $userid = $_POST["userid"] = 1234 on server side):
$.ajax({
type: 'POST',
url: 'readparameter.php',
data: {userid: "1234"},
async: true,
dataType: 'json',
success: function(result) {
console.log (result);
}
});
Not working ( $userid = $_POST["userid"] = NULL on server side):
var mySource = new kendo.data.DataSource({
dataType: 'json',
transport: {
read: function (options) {
$.ajax({
type: "POST",
dataType: 'json',
async: true,
data: {userid: "1234"},
url: "readparameter.php",
success: function (result) {
console.log (result);
}
});
}
}
});
My assumption is that the posted userid never reaches the server using dataSource. I'm trying since a lot of time and tried several ways like also Json.stringify etc. What am I doing wrong or is it just not possible to pass a value with dataSource?
Hi,
I have one requirement from our manager who wants to display some data as part of bubble chart like pie chart. (basically he wants to see something in bubble chart, but then split bubble value based on proportion (for example: bubble is total amount of resources used, but then its split based on how much of each resource participated in this).
Is it possible to achieve this somehow?
Thanks a lot!
Regards,
Vedad
I know how to do this, but I was wondering if there is a simpler way that I do not know. The solution I found seems a bit complicated for something that seemed simple at first.
I have a non-editable grid. For each item in Y, I have multiple cells in X displaying a counted number. I don't care about zeroes, so as to not draw attention to them I output a number only if it's not zero. To do that, the values I feed in my datasource needs to be in string format.
When I export this grid to Excel, by default all cells are of the "General" type. If I manually try to switch the cells to the "Number" type, it doesn't work right because the data is still a string.
I want my Excel export to have it's cells already in the "Number" type with it's data in the right format.
What I had to to is this :
- Change the values in my datasource to numbers, but now my grid displays zeroes.
- Create a template for my cells to control when to display numbers or not.
- Add a excelExport event handler to set my cells' format. The resulting cell type is always tagged as "Custom". Isn't there a way select one of the defaut Excel cell types? Is seems to work, but it feels weird to have to create custom formats to replicate default ones.
Did I miss something that would have made my life easier?
Thank you