1. Is it hard to understand the version numbers of our releases? If yes, what makes them hard to understand them?
2. Would semantic versioning (SemVer) of our releases make it easier to understand our version numbers and what's behind them?
3. If we go with SemVer, we might need to start with version 3000.0.0 as we currently use 2022.x.x. Please share your thoughts about this approach and ideas for what number versioning would work best for you.
Hello,
Here is my validator code:
<script type="application/javascript">
$(document).ready(function () {
console.log("Ready");
// Initialize Kendo MaskedTextBox for Phone Number
$("#PhoneNumber").kendoMaskedTextBox({
mask: "000-000-0000"
});
// Set up Kendo Validator with a custom rule
validator =
$(".k-edit-form-container").kendoValidator({
rules: {
phoneMaskRule: function (input) {
// Check if it is the PhoneNumber input and the value matches the mask
if (input.attr("name") === "PhoneNumber") {
var maskedInput = input.data("kendoMaskedTextBox");
// The masked textbox's `raw()` method gets the actual value without placeholder characters
// Checking that it has a complete value (no _ symbols in "raw" value)
var retVal = maskedInput && maskedInput.value() && maskedInput.raw().length === 10;
return retVal;
}
return true; // Let other fields validate as normal
},
nameValidation: function (input) {
// Check for FirstName and LastName validation
if (input.is("[name=UserFirstName]") || input.is("[name=UserLastName]")) {
var retVal = input.val().length > 2; //Ensure there is at least 2 characters in each name.
console.log("Name: " +
(retVal ? "Passed" : "Failed"));
return retVal;
}
return true; // No other inputs are affected by this rule
},
emailFormatValidation: function (input) {
// Check for Email validation
if (input.is("[name=Email]")) {
// Regex for a basic email validation
var emailRegex =/^[a-zA-Z0-9._%+-]+@@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
var retVal = emailRegex.test(input.val());
console.log("email: " +
(retVal ? "Passed" : "Failed"));
return retVal
}
return true; // Other inputs are skipped
}
},
messages: {
phoneMaskRule: "Please enter a valid phone number in the format 999-999-9999.",
nameValidation: "First and Last Name must have at least 3 characters.",
emailFormatValidation: "Please enter a valid email address."
}
}).data("kendoValidator");
});
</script>
This validates the user input and usually works correctly. Once data is entered, I check the validator before submitting:
function submitClinic() {
resetInactivityTimer(duration);
if (model == null) {
model = {};
model.ClinicUserID = "";
}
// Check if form is valid
if (!$(".k-edit-form-container").kendoValidator().data("kendoValidator").validate())
{
return false; // not valid
}...
}
So for some reason, the validator starts returning "not valid" out of the blue. I can click through the form and see that the validator validates the fields correctly, but I press my submit button, and suddenly it claims the fields fail
I thought maybe the validator object is null, but it's clearly calling the validation functions, but for some reason it fails? Any suggestions would be very helpful.
Thanks!
Russ
I am trying to use Kendo's Dialog to get user confirmation of an action. I am using Kendo v 2022 3.913 with jQuery 3.7.1, but I get an error when trying to initialize the component (see below). Has anyone experienced this? If so, how did you fix it? I think I have loaded all the dependencies.
The error:
Hi,
I have few questions regarding kendo grid, i have implemented kendo grid for three nested levels, in every level it has checkboxes, i want to do if i select the parent level checkbox, it should expand its child and all child checkboxes should also selected, is it possible in kendo-grid??
if so do you have any demo link?
i have attached the image for you understanding, but in that it has only one level, in my case i have two nested levels
Thank you
$scope.dataSource = new $kendo.data.DataSource({
pageSize: 10,
serverPaging: false,
serverFiltering: false,
filterable: true,
filter: {},
schema: {
model: {
id: "id"
}
},
transport: {
read: read
}
});
The data source is bound through `k-data-source` in template.
Even if the serverFiltering is set to false, when I write something to the filter textbox, the read function is invoked, but just for the first time.
Any help, please?
Hello I have the following MVC code in a .cshtml file for an ASP.MVC application:
@(Html.Kendo().CheckBoxFor(m => m.IsNotificationSuppressed).Checked(false).Label("some text"))
Until a few days ago, this line worked fine. But we've recently updated Kendo to the most recent version and now it's throwing the following JavaScript error:
Uncaught TypeError: jQuery(...).kendoCheckBox is not a function
And the checkbox appears but without a label.
I've already determined that neither "m" (the view model) nor the property IsNotificationSuppressed are null. I cannot find any information as to what is causing this CheckBoxFor to not function and its use here matches the examples given in every example I can find for the Kendo checkbox.
What is wrong here and how do I fix this?
Also the kendo.all.min.js file appears to be a 2016 version and ctrl-f for kendocheckbox finds nothing. Is this the problem? How do I update this file and why didn't it update when the rest of Kendo was updated?
$.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);
}
});
Hi;
I have a problem with kendo grid on rtl languages. the horizontal scrollbar doesn't move as I drag a column in order to reorder it!
and when trying to move the last column, the scrollbar jumps to the beginning and doesn't let you do your thing.
Here is a replication of my problem: https://dojo.telerik.com/pMuIrqLj
can anybody help me solve this issue?
Hello!
Is there a simple way to remove autocomplete from gridfilter?
I want to use filterbox. I need filterbox. But I don't want autocomplete.
https://dojo.telerik.com/hYMEJZcB
Thank you