I ran into a error when trying to use a template to provide an axis label. After digging into it further, it appears that the chart resolves its axis labels twice when there is no font associated with the label, and the first time through the series data isn't fully populated, and the value that is passed in is not the final value.
Here is a dojo for reference. If you run this, the console will have messages where the series data element is undefined and for one set of values, followed by messages where it is defined with the correct values. If you then uncomment the font line in the valueAxis label definition and run it again, the console will only have messages where the series data element is defined.
I don't know if it's a bug, but it certainly caught me by surprise.
Hi, i want to remove the delete functionality for tasks within the gantt based on several aspects, one of which would be a field in the record set, another would be based on a user permission level.
I have the delete being cancelled but i'd like to stop the delete key from working and removal of the delete icon.
Any help would be appreciated.
Edit: we are using gantt within an MVC application
Dears,
I have issue that offline feature not update grid column with dropdownlist
non-dropdownlist is working but I have e.g category and product in my grid when update it shows old value
after update when click edit again it shows the update value
please help
Thanks
In previous version of kendo UI 2017 R3, kendo grid was sending separate instances of row when expanding multiple rows together. But, in latest version Kendo UI 2021 R3, it is sending all the instances together, due to which DetailInit method is repeating the rows.
Steps:
Copy paste the below code in kendo dojo
Select old version 2017 R3 and run.
Then change the version to 2021 R3 then run.
kendo Dojo Code:
<script>Output in old version:
Output in latest version:
Hello,
I have a question about grids loading: some customers could receive the fully loaded content on the UI, while some received a different loaded content for the same JSP code. Here are how the loaded HTML using the same code look like in the browser for two different customers:
for one customer:
<div id="transportGrid">
<div class="k-header k-grid-toolbar ">...</div>
<table role="grid" tabindex="0" data-role="selectable" class="k-selectable" style aria-activedescendant="transportGrid_active_cell">...</table>
<div class="k-pager-wrap k-grid-pager k-widget k-floatwrap userDefinedBgColor" data-role="pager">...</div>
<div class="k-resize-handle">...</div>
</div>
for the second customer:
<div id="transportGrid">
<div class="k-header k-grid-toolbar">...</div>
<div class="k-grid-header" style="padding-right: 17px;">...</div>
<div class="k-grid-content k-auto-scrollable userDefinedBgColor">...</div>
<div class="k-pager-wrap k-grid-pager k-widget k-floatwrap userDefinedBgColor" data-role="pager">...</div>
</div>
so for the first customer, the <divs> containing the k-grid-header and k-grid-content are ignored and replaced by <table> element.
Do you know the reason of the difference of the loaded contents?
Thanks in advance for your help and answer.
Best regards,
Antsa Rakotoarimalala
When opening the viewHtml window from the Editor widget, I want to bind to that window's open event and access the KendoWindow instance so that I can update the options for the window using the setOptions method.
How do I do this?
Any tips are appreciated.
Thanks!
Hi,
Is it possible to remove or hide the space that is highlighted in green on the attached screenshot?
I want to make it look like this below:
This is for the Spreadsheet widget.
Thanks!
Hi guys,
I'm able to perform cell validation by providing a list of acceptable values. This provides the user with a dropdown to select a suitable value. This is great, but I need to extend it so that it is mandatory when the value in another cell is provided, but must be blank if the other cell is not populated. For example:
Is it possible to achieve this?
Hello Team,
I have a following scenario.
<script id="OuterTemplate" type="text/x-kendo-template">
# for (var i = 0; i < data.length; i++) { #
<a href="\\#'" data-bind="click: onOuterLinkClick" data-index="#: i #">#: data[i].displayText #</a>
#}#
#= renderMyTemp(data[i].innerLinks) #
</script>
<script id="InnerTemplate" type="text/x-kendo-template">
# for (var j = 0; j < data.length; j++) { #
<a href="\\#" data-bind="click: onInnerLinkClick"
data-index="#: j #">#: data[j].displayText #</a>
# } #
</script>
<script type="text/javascript" >
function renderMyTemp(data) {
return kendo.Template.compile($('#InnerTemplate').html())(data);
}
</script>
And my data which is getting passed to OuterTemplate, looks like following:
var data = [
{
"displayText" : "outer link abc",
"onOuterLinkClick" : () => {},
"innerLinks" : [
{
"displayText" : "inner link abc1",
"onInnerLinkClick" : () => {}
},
{
"displayText" : "inner link abc2",
"onInnerLinkClick" : () => {}
}
]
},
{
"displayText" : "outer link def",
"onOuterLinkClick" : () => {},
"innerLinks" : [
{
"displayText" : "inner link def1",
"onInnerLinkClick" : () => {}
},
{
"displayText" : "inner link def2",
"onInnerLinkClick" : () => {}
}
]
}
]
I pass the data as follows:
var template = kendo.template($('#OuterTemplate').html());
template(data);
Question : In above code, inside outerTemplate, onOuterLinkClick binding is working properly. But inside InnerTemplate, onInnerLinkClick binding is not working. can you please tell me, what's the correct way to do it?
Thanks & Rergards
Karan
Hi,
I'm using client-side filtering after the kendo grid is rendered and I wanted to export to excel the filtered data in some situations.
I tried using $("#reportResultsGrid").data("kendoGrid").dataSource.view() and that gives me the current object of what I want to export to excel, but I can't figure out how to use the saveAsExcel() method to export what's in that current view() in the kendo grid. I can console log it, but I just can't figure out how to export the filtered data.
My goal originally was to create a custom button in excel toolbar and use that to export the data but, now I'm just using a stand alone button at the top of the page for testing purposes. Ideally I would like to create a button in the excel toolbar that just exports whatever is in the current kendo grid view.
Below is as far as I've figured out.
$('#testSaver').on("click", function () {
$("#reportResultsGrid").data("kendoGrid").dataSource.view()
console.log(clientSideFilterData);
});