Hi there! I'm not a developer but working with one to try and get a fix for my web application. This specific issue is not happening on any desktop computer but appears to be happening on my MacBook Pro when using Safari (not Chrome) and my 5th Gen iPad in both Safari and Chrome. When access a specific section of the program it begins to 'tab' through every field on that page endlessly. When I check the network log it states 'PerformValidationActions' appears to be in a loop cycling through 'text1_enter' 'text1_leave' 'text2_enter' 'text2_leave' 'text3_enter' 'text3_leave' etc. It EVENTUALLY ends but then when you try to log out you get the error Object reference not set to an instance of an object.
Any help would be GREATLY appreciated!
$.ajax({
url: SendPrompt.fmt(encodedMessage, encodedUserName),
async: true,
contentType: 'application/json',
type: "POST",
dataType: "json",
processData: false,
headers: { Authorization: tokenData() },
beforeSend: setHeader,
success: function (data) {
var answer = data.Answer.replace(/(?:\r\n|\r|\n)/g, '\n\n');
chat.renderMessage({
type: "MyText",
text: answer
}, {
id: kendo.guid(),
name: gptName
});
}, error: function (jqXHR, textStatus, errorThrown) {
console.log("Status:", textStatus);
},
complete: function () {
messageTemplate.animate({ opacity: 0 }, 500, function () {
$(this).css({ display: 'none' });
});
chat.wrapper.find(".k-input").prop('disabled', false);
chat.wrapper.find(".k-button-send").prop('disabled', false);
}
});
I am trying to call a function from the javascript from filter. If I try to filter the column , the function is not being called. There is no any error in console and the value is coming into the grid. But just that trigger is not called when filter the column. Also I wondering if I remove the function from the script , it will look for the function and will give the error function not found. But if there is function, it will not call the function and alert message is not getting
We are using the latest version of Kendo Telerik grid. Why the filterable.UI does not work in Asp.net core MVC? How can I find the reason why it is not called?
Here is my code
columns.Bound(e => e.City)
.Filterable(filterable => filterable.UI("cityFilter"))
.Width(200);
<script type="text/javascript">
function cityFilter(element) {
alert('testting'
}
</script>
I have a model DateTime property called CreatedDate and If I try to filter by date using the filter 'Is equal to' for a single date, it will not filter the records for the given date due its time part in it filter checking. So How can I make it filter truncating the time part from the filter ?
Pol
public class EmployeeViewModel { public string Name{get; set;} public DateTime CreatedDate{get; set;} } In Kendo Grid column.Bound(c=>c.CreatedDate).Title("Created Date")
I am trying to sort alphabetically string values inside the multi filter combobox in Kendo Grid to filter. Now it shows randomly there is no any order in mvc. Here is the code
columns.Bound(c => c.EmpName).Title("Employee Name") .Filterable(filterable => filterable .Multi(true)
Given this code:
cols - API Reference - Kendo UI TextArea - Kendo UI for jQuery (telerik.com)
If I change the cols from 30 to 3 it doesn't seem to change the width of the textarea? Isn't the width of the textarea supposed to decrease?
<textarea id="description"></textarea>
<script>
$("#description").kendoTextArea({
rows:20,
cols:30,
resizable: "vertical"
})
</script>
Is this a bug?
Thanks!
George
We are testing 2023.3.1114. I checked the release notes of 2024.1 and didn't see anything. We are using LitElement to make a custom control that creates the kendoSwitch as show below. Not sure what is triggering the 2nd event. Although, I think
initWidget() {
const selector = '#' + this.elemId;
const chkMsg = (typeof this.checkedMsg === 'string') ? this.checkedMsg : 'yes';
const unchkMsg = (typeof this.uncheckedMsg === 'string') ? this.uncheckedMsg : 'no';
const options = {
checked: this.isChecked,
enabled: this.isEnabled,
messages: {
checked: chkMsg,
unchecked: unchkMsg,
},
change: (e) => {
this.updateValue(e.checked);
}
};
$(selector).kendoSwitch(options);
}
updateValue(newValue) {
// fire a change event to the element
$(this).trigger(CHANGE, [newValue]);
this.textValue = String(newValue);
this.requestUpdate();
}
HI,
I am using Kendo jQuery.
FileManager is not showing the folder names , instead it is showing as "undefined".
Version :
<!-- Kendo UI -->
<script src="~/lib/kendo-ui-2023.3.1010/js/kendo.all.min.js"></script>
<script src="~/js/kendo-ui-license.js" type="text/javascript"></script>
Visual Studio C# backend response
c# Code :
public virtual JsonResult OnPostFileManagerRead(string target)
{
try
{
........
........
var files = directoryBrowser.GetFiles(path, Filter);
var directories = directoryBrowser.GetDirectories(path);
var result = files.Concat(directories).Select(f => new
{
Name = f.Name,
Size = f.Size,
Path = VirtualizePathString(f.Path),
Extension = f.Extension,
IsDirectory = f.IsDirectory,
HasDirectories = f.HasDirectories,
Created = f.Created,
CreatedUtc = f.CreatedUtc,
Modified = f.Modified,
ModifiedUtc = f.ModifiedUtc
});
return new JsonResult(result.ToArray());
}
catch (DirectoryNotFoundException)
{
throw new Exception("File Not Found");
}
}
throw new Exception("Forbidden");
}
catch(Exception ex)
{
return new JsonResult(ex);
}
}
Query :
1. What might be the issue ?
2. How can i resolve this issue ?
Hi. I have a single JSON Array like this:
[{
"country": "Spain",
"year": "2008",
"unit": "GWh",
"solar": 2578,
"hydro": 26112,
"wind": 32203,
"nuclear": 58973
}];
And, What I want to do is make this single array into a chart. (I hope the name of the series is the same as the axis text.)
Like this.
but, If I write code like this... All series are included in one category. How can I solve this?
var tempData = [{
"country": "Spain",
"year": "2008",
"unit": "GWh",
"solar": 2578,
"hydro": 26112,
"wind": 32203,
"nuclear": 58973
}];
$("#chart").kendoChart({
dataSource: {
data : tempData
},
series:
[{
field: "nuclear",
name: "Nuclear"
}, {
field: "hydro",
name: "Hydro"
}, {
field: "wind",
name: "Wind"
}],
categoryAxis: {
categories: ["Nuclear", "Hydro", "Wind"]
}
});
AngularJS version 1.5.8.
Kendo UI version 2016.3.914+Official
I have a kendo grid with the resizeable property set to true. However, when I display the grid and then use my cursor to resize the grid, it appears the grid rebinds the data and reverts all columns to their original size.
How do I make resized widths stay set?
Are there any properties I should look at to help with this issue?