Telerik Forums
UI for ASP.NET Core Forum
1 answer
146 views

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

Ianko
Telerik team
 answered on 15 Mar 2018
1 answer
372 views

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>

 

 

 

Neli
Telerik team
 answered on 13 Mar 2018
1 answer
1.7K+ views

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

Dimitar
Telerik team
 answered on 13 Mar 2018
5 answers
697 views

Hi

Does Html.Kendo().TextBox+For have a TagHelper as well? Can't find any documentation about it.

 

Thanks

Giuseppe

 

Veselin Tsvetanov
Telerik team
 answered on 12 Mar 2018
2 answers
1.0K+ views

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!

Konstantin Dikov
Telerik team
 answered on 12 Mar 2018
1 answer
111 views

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

 

Viktor Tachev
Telerik team
 answered on 12 Mar 2018
4 answers
1.6K+ views

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. openCreateWindowopenEditWindow 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.

Viktor Tachev
Telerik team
 answered on 09 Mar 2018
4 answers
589 views

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!

Robert
Top achievements
Rank 1
 answered on 08 Mar 2018
1 answer
394 views
The ListView page at https://www.telerik.com/aspnet-core-ui/listview seems to indicate that there is drag and drop support, but the demo that it links to does not show this. Has anyone tried implementing drag and drop on a UI for ASP.NET Core ListView?
Viktor Tachev
Telerik team
 answered on 07 Mar 2018
6 answers
432 views

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

 

Bozhidar
Telerik team
 answered on 07 Mar 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?