I have a View with that I am injecting a service using @inject . The service provides Lookup list data that is not provided from the controller.
i.e. @inject ProfileOptionsData options
How would I set the datasource property to bind the dropdownlist to a method from this service?
Thank you
I have a problem configuring the MultiSelect using the taghelpers, while the htmlhelpers give me no problem at all.
I get no data in the multiselect when using the taghelper, while the htmlhelper does.
Any ideas ?
Example:
HtmlHelper:
@(Html.Kendo().MultiSelect()
.Name(
"roleSelect"
)
.DataTextField(
"roleName"
)
.DataValueField(
"id"
)
.DataSource(source =>
{
source.Read(read =>
{
read.Action(
"GetAvailableRoles"
,
"Users"
);
});
})
)
Taghelper:
<
kendo-multiselect
name
=
"roleSelect2"
datavaluefield
=
"id"
datatextfield
=
"roleName"
>
<
datasource
type
=
"DataSourceTagHelperType.Ajax"
>
<
transport
>
<
read
url
=
"@Url.Action("
GetAvailableRoles", "Users")" />
</
transport
>
</
datasource
>
</
kendo-multiselect
>
Hello,
I was struggling with the kendo-toolbar taghelper to add an html attribute to a toolbar item, but eventually figured it out.
Is this the correct way to use the html-attributes taghelper or is there a shortcut ?
<item type="CommandType.Button" text="Delete" html-attributes='new Dictionary<string, object>{ ["class"] = "float-right" }' />
Thanks in advance
Hi
Does Html.Kendo().TextBox+For have a TagHelper as well? Can't find any documentation about it.
Thanks
Giuseppe
I'm using a Grid, with InLine AJAX editing enabled. The grid has a single text column, and my Model has an ID property (a GUID). When I add a row to the grid, set the text value, and hit Save, on the server the ModelState.IsValid property is set to false and it's complaining about the empty ID. Of course it's empty - the database assigns that.
How do I get that to stop being treated as invalid? I already have the ID decorated as DatabaseGenerated (I'm using efcore). Help!
i have added kendo grid in my asp.net core 2 project ..
i have a checkbox column in it which is bound to IsVisible field
when i click edit or create button , i get a validation error which is 'The IsVisible field is required.'
i think there is a bug with the grid validation , because a checkbox always has a selected value (checked or not checked)
you can see the issue by adding or editing a row in telerik inline editing sample : https://demos.telerik.com/aspnet-core/grid/editing-inline
I'm trying to use Kendo grid with tag helpers, documentation you have right now is pretty much useless for my problems. I have a really simple Kendo grid, and I'm trying to create functions for create, edit, and delete buttons.
1. openCreateWindow, openEditWindow and openDeleteWindow - How to pass an Id (in my example LanguageId)?
2. openCreateWindow - Click event doesn't work at all inside toolbar (toolbar-button), what to do?
With these functions I will call server side actions to create separate popup editors with different fields and terms using Kendo Window and Ajax forms, and I have pretty much strong reasons why I need something like this.
...
<columns>
<column field="LanguageId" width="240" hidden="true"/>
<column field="Name"/>
<column field="Culture"/>
<column width="100">
<commands>
<column-command name="edit" text="Edit" click="openEditWindow(LanguageId?)"></column-command>
</commands>
</column>
<column width="100">
<commands>
<column-command name="delete" text="Delete" click="openDeleteWindow(LanguageId?)"></column-command>
</commands>
</column>
</columns>
<toolbar>
<toolbar-button name="custom" text="Add new record" click="openCreateWindow(LanguageId?)"></toolbar-button>
</toolbar>
...
I'm looking forward to hearing from you.
Kind regards,
Asmir M.
Hi,
I have followed the steps from https://docs.telerik.com/devtools/aspnet-ajax/installation/installing-the-telerik-controls-from-nuget-package
to include Telerik's nuget package source to VS2017 but at the final step there is no package "Telerik.UI.for.AspNet.Core
!Capture.PNG!
I"m sure you guys are working on this but would it help everyone if we started to add to the demos to show aspects of using these tools against Core Razor Pages?
I'm just conscious of not wanting to post too many questions when i can't find demos i'm interested in.
Cheers,
John