Hi,
I was trying to insert rows when my one of my columns in the spreadsheet has values in all rows. Are we able to detect the function or event before the data loss validation?
What i want to achieve is that before this validation is trigger, i will delete off some of the rows automatically in the spreadsheet itself.
I tried the insertRow event, but this validation check will take place before that was executed. Thanks in advance.
Regards,
Brian
I'm using UI for ASP.NET Core release 2021.3.1207
I have a modal dialog, containing a Switch control plus a few other controls, that is displayed when a button is pressed.
When I simply show the modal, all is fine.
When I try to set the value of the Switch 'check' then show the modal, the switch is being re-initialized and there are TWO 'k-switch-container' tagsets. Closing the dialog and showing again adds a THIRD 'k-switch-container'. etc. etc.
These extra 'k-switch-container' effects are:
- cannot tab directly to the next field, as focus disappears until TAB is pressed again. Happens for every additional <span> so eventually you need to press multiple tabs just to visit the next field.
- also when you are 'focussed' on one of these phantom locations, you can still press SPACE which toggles the Switch.
Have I done something wrong or is this a bug?
Thanks,
My Dialog
<div class="modal-body">
<form id="frmEvent" novalidate="novalidate" class="form-validation">
<div class="form-group">
<label>@L("Title")</label>
<input id="txtTitle" type="text" class="form-control border-2" placeholder="@L("title")" />
</div>
<div class="mb-2">
<div class="form-group">
@(Html.Kendo().Switch()
.Events(ev => ev.Change("onChangeAllDay"))
.Name("swAllDay")
)
<label class="ml-2 mb-2">
@L("AllDayEvent")
</label>
</div>
</div>
....
</form>
</div>
My Button Event
** if I uncomment these two lines, I start getting additional nested k-switch-container span tags upon EVERY show of the modal
function newEvent() {
var today = new Date();
$("#txtTitle").val('');
$("#txtDescription").val('');
$("#StartDatePicker").val(today.toLocaleDateString(kendoCurrentCulture));
$("#StartTimePicker").val('');
//var allDaySwitch = $("#swAllDay").kendoSwitch().data("kendoSwitch");
//allDaySwitch.check(false);
$("#eventModal").modal('show');
}
Here's the HTML after just loading the modal WITHOUT setting check.
<div class="form-group">
<span class="k-switch k-widget k-switch-off" role="switch" tabindex="0" aria-checked="false" style="">
<input id="swAllDay" name="swAllDay" type="checkbox" value="true" data-role="switch">
<span class="k-switch-container">
<span class="k-switch-label-on">On</span>
<span class="k-switch-label-off">Off</span>
<span class="k-switch-handle"></span>
</span>
</span>
<input name="swAllDay" type="hidden" value="false">
<script>kendo.syncReady(function(){jQuery("#swAllDay").kendoSwitch({"change":onChangeAllDay});});</script>
<label class="ml-2 mb-2">
All Day Event
</label>
</div>Here's the HTML after just loading the modal WITH setting check, several times.
<div class="form-group">
<span class="k-switch k-widget k-switch-off" role="switch" tabindex="0" aria-checked="false" style="">
<span class="k-switch k-widget k-switch-on" role="switch" tabindex="0" aria-checked="true" style="">
<span class="k-switch k-widget k-switch-off" role="switch" tabindex="0" aria-checked="false" style="">
<span class="k-switch k-widget k-switch-on" role="switch" tabindex="0" aria-checked="true" style="">
<span class="k-switch k-widget k-switch-off" role="switch" tabindex="0" aria-checked="false" style="">
<span class="k-switch k-widget k-switch-off" role="switch" tabindex="0" aria-checked="false" style="">
<input id="swAllDay" name="swAllDay" type="checkbox" value="true" data-role="switch">
<span class="k-switch-container">
<span class="k-switch-label-on">On</span>
<span class="k-switch-label-off">Off</span>
<span class="k-switch-handle">
</span>
</span>
</span>
<span class="k-switch-container">
<span class="k-switch-label-on">On</span>
<span class="k-switch-label-off">Off</span>
<span class="k-switch-handle"></span>
</span>
</span>
<span class="k-switch-container">
<span class="k-switch-label-on">On</span>
<span class="k-switch-label-off">Off</span>
<span class="k-switch-handle"></span>
</span>
</span>
<span class="k-switch-container">
<span class="k-switch-label-on">On</span>
<span class="k-switch-label-off">Off</span>
<span class="k-switch-handle"></span>
</span>
</span>
<span class="k-switch-container">
<span class="k-switch-label-on">On</span>
<span class="k-switch-label-off">Off</span>
<span class="k-switch-handle"></span>
</span>
</span>
<span class="k-switch-container">
<span class="k-switch-label-on">On</span>
<span class="k-switch-label-off">Off</span>
<span class="k-switch-handle"></span>
</span>
</span>
<input name="swAllDay" type="hidden" value="false">
<script>kendo.syncReady(function () { jQuery("#swAllDay").kendoSwitch({ "change": onChangeAllDay }); });</script>
<label class="ml-2 mb-2">
All Day Event
</label>
</div>
Hello, I can try add years after change calendar. but is not working
- using culture:"th-TH" (not working)
- set value: example value: moment(new Date()).add(543, 'years').format('DD/MM/YYYY') (not working after change calendar)
I want results after change calendar:
12/01/2565 (Buddhist Year) just add 543
example link
$("#datepicker").kendoDatePicker({
culture:"th-TH",
format: 'dd/MM/yyyy',
value: moment(new Date()).add(543, 'years').format('DD/MM/YYYY'),
open: function(e) {
console.log('open');
this.value(moment(this.value()).add(543, 'years').format('DD/MM/YYYY'));
},
change: function(e) {
e.preventDefault();
console.log('change');
console.log(this.value());
console.log(moment(this.value()).add(543, 'years').format('DD/MM/YYYY'));
},
close: function() {
console.log('close');
// this.value(moment(this.value()).add(543, 'years').format('DD/MM/YYYY'));
}
});
I have tried to find the issue - but nothing. I can remove all the tabs and sections -- just leaving the grid; the result shows the grid and data just fine. It seems to make me think it has an issue with the page size. I hope that this is not the case - because I will want to insert 3-5 more grids on this page. Separated by CSS Tabs.
AJ
Hello i am using ajax and kendogrid to put into the table and format it however i realize i have no idea how to when user selected a row it display the id maybe in console.log etc ? how can i do it
This is my ajax call and append into the table and kendogrid format it

This is being call from my ajax query to be append into this table
This is how my code look like
I would need some help as to how to display the userID as this is my response for my response database ?
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