How can I set the checked/unchecked messages for my entire application or at least for the page?
Currently, I use something like:
<
kendo-switch
for
=
"BoundProperty"
checked
=
"Model.BoundProperty"
><
messages
checked
=
"@Html.T("
Common.YES")"
unchecked
=
"@Html.T("
Common.NO")" /></
kendo-switch
>
It would be great if I didn't have to include the <messages /> tag each time.
Hi,
Floating labels are great,
thanks!
I'm trying to implement this
new widget for passwords like this:
<kendo-textbox for="Password" type="password" >
<textbox-label content="Mot de passe" floating="true" />
</kendo-textbox>
Here’s my Password
property:
[Required(ErrorMessage = "Ce champ est obligatoire")]
[DataType(DataType.Password)]
public string Password { get; set; }
How can I accomplish this?
Thanks again
What's the best way to pass a filter to an API in order to filter data from a database?
To elaborate: my team is creating a web portal in order to monitor OS deployments. We want the user to be able to filter data which is stored on a Sql database. We plan on using a Kendo Chart to visualize the data and filter the data using a Kendo Filter. We have also created an API to perform our http operations. I know that the filter results are passed to the controller in the form of a DataSourceRequest object. This gets to my question, what is the best way to pass the settings a user picks on the front-end to the API/database? Can I parse the DataSourceRequest object?
Let me know if anything needs clarifying.
I would like to contribute some localization resources. Some translations I'm interested in are missing, other need fixing.
On this page:
https://docs.telerik.com/aspnet-core/globalization/localization#contribution
I've found a link to GitHub repository where I'm supposed to make pull requests with my contributions:
https://github.com/telerik/kendo-ui-core/tree/master/src/messages
But this link leads to "Kendo UI Core" repository, not "UI for ASP.NET Core". And it contains .js files, not .resx files.
My question is:
If I contribute to this repository, will my changes be also automatically ported to UI for ASP.NET Core? Or am I supposed to make my contributions in another way?
I don't know if this is working as expected but when using the tag helper version of the grid it does not seem to read the model's display name for the title. Using the MVC HTML helper I do not have to explicitly specify the title as it reads it from the model. Is this a bug in the tag helper or just working as intended?
On that note, I know the tag helper does not seem to support all the functionality of the html helper version. Is there a document somewhere that compares the working functionality between the two grids? I would love to always use the tag helper version but I just don't because I get half way through programming the grid and find out the tag helper does not support the same functionality.
Thanks
Rick
I have a DatePicker configured:-
@(Html
.Kendo()
.DatePickerFor(x => x.Date)
.HtmlAttributes(
new
{ @
class
=
"form-control"
})
)
When running locally, the date format is correct (for me in en-AU).
When the same code is published to Azure (running en-US) the date format is incorrect.
If the culture is manually set on the client (using kendo.culture("en-AU")) it doesn't make a difference.
If I force the culture on the server side, it works:-
@(Html
.Kendo()
.DatePickerFor(x => x.Date)
.Culture(
"en-AU"
)
.HtmlAttributes(
new
{ @
class
=
"form-control"
})
)
Why is the DatePicker ignoring the client side culture (both implicit and explicit)?
I have some custom validation that has some complicated business rules so I put them all in a function.
On my combobox change event I call the validation function, if it returns true I save the record back to the database and it gets added to the combo.
But if this fails I want to blank out the combo and set focus to it, I have this part all working, the issue I have is that the change event doersn't get triggered the next time they enter the same value.
Example:
1)User types in "Invalid" in the combo, this fails validation so it blanks it out and sets focus
2)If user types in anything OTHER than 'Invalid' then it works as it should, the change event triggers and it executes the logic
3)But if user types 'Invalid' again, it doesn't trigger the change event, it is remembering that value even though it was blanked out.
How do I reset the combo so that anything they type in will trigger the change event?
Hi All,
I have an endpoint that accepts either params username/password or Authorization Header.
I can populate my kendoDropDownList w/o issue using params. (see code below)
var dataSourceAuthorization = new kendo.data.DataSource({
transport: {
read: 'https://restsandbox.azurewebsites.net/services/rest/gettestdata?username=test_api_user&password=Te$tUser1',
type: "GET"
}
});
$("#userList").kendoDropDownList({
dataTextField: "userId",
dataValueField: "userNumber",
dataSource: dataSourceAuthorization,
optionLabel: "Select User"
});
but when I use Authorization header, I'm getting > GET https://restsandbox.azurewebsites.net/services/rest/gettestdata 401 (Unauthorized)
(see code below)
var dataSourceAuthorization = new kendo.data.DataSource({
transport: {
type: "GET",
beforeSend: function (res) {
res.setRequestHeader('Authorization', 'Bearer Te$t_T0ken');
}
}
});
$("#userList").kendoDropDownList({
dataTextField: "userId",
dataValueField: "userNumber",
dataSource: dataSourceAuthorization,
optionLabel: "Select User"
});
Please note that using same Authorization header value with Postman, its working fine. (See attached)
Did I use sendBefore incorrectly? Any idea why its not working with Headers?
Thanks!
Ryan
Under MVC 5 this worked:
@(Html.Kendo().TabStrip()
.Name("tabstrip")
.SelectedIndex(0)
.Items(tabstrip =>
{
tabstrip.Add().Text("Add Children")
.Enabled(false)
.Content(m => Html.Partial("_FamilyIntakeStep3", m))
;
})
})
But under ASP.Net Core, this no longer works. Instead I am getting the class as a string. I am pretty sure this is happening because the call is asynchronous, which means I should add in the await keyword. But I have no idea how to do this in the kendo tabstrip.
Or perhaps there is a completely different solution that I should try?