Telerik Forums
UI for ASP.NET MVC Forum
0 answers
257 views

Hi,

I would like to know if it is possible to Bind a Grid to a property of an object which is a list of primitive type (i.e. a List<string>).

My ViewModel is something like that:

public class ExampleViewModel
{
   public SomeType { get; set; }
   public SomeOtherType { get; set; }
   public List<string> SomeValues { get; set; }
}

And I imagined I could build the grid like that:

Html.Kendo().Grid<string>(Model.SomeValues)
   .Name("SomeValuesGrid")
   .Columns(columns => columns.Bound(x => x))

As you understand, it would be a very simple grid consisting of only one column, with each row displaying one of the string values.
Is it possible, or can grid only work with objects and not with primitive types?

If I do that, it is to keep the Kendo's grid visual style, instead of manually writing and styling a table.

Thanks for your help.

Thibault
Top achievements
Rank 1
 asked on 08 Dec 2022
1 answer
277 views
Is there a way to control the way selected list view items are rendered? Can it be selected with a radio button instead of being highlighted?
Ivan Danchev
Telerik team
 answered on 06 Dec 2022
1 answer
118 views
Hi! I want to disable aria-pressed when I click on the button in buttons group.
How do it?

Anton Mironov
Telerik team
 answered on 06 Dec 2022
1 answer
173 views

Hi! I want to disable aria-pressed when I click on the button in buttons group.

How do it?

Anton Mironov
Telerik team
 answered on 06 Dec 2022
1 answer
96 views

Hello Everyone,

I want to display on a gridview data from a table A with cardinality 1-N with several tables (B,C,D, E ..) . I want to display all table data (A,B,C,D, E ..) with a condition : to have exactly one line for each data from table A. the data from tables B, C, D … I want to display them as many columns, and iterate as long as I have data.

How can I achieve this? I thought of Pivotgrid but that does not answer exactly what I ask?

Please fined in attach what’s the grid should look like.

PS: i need also to export the Grid in an Excel file .

Thank you  .

Anton Mironov
Telerik team
 answered on 05 Dec 2022
1 answer
342 views

Hello,

I am trying to create new Telerik C# ASP.NET MVC Application using VSD version 2019.  After project created, Under Reference folder system loaded Kendo.Mvc & System.Web.Mvc DLLs are added.  System.Web.Mvc version 5.2.9.0. Kendo.Mvc version 5.2.7.0.

when I used  @(Html.Kendo() - gives an below error

Warning CS1702 Assuming assembly reference 'System.Web.Mvc, Version=5.2.7.0, Culture=neutral, 
PublicKeyToken=31bf3856ad364e35' used by 'Kendo.Mvc' 
matches identity 'System.Web.Mvc, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' of 'System.Web.Mvc',
 you may need to supply runtime policy 3_Views_Home_Index.cshtml

Could you please help, how to get Kendo.Mvc using System.Web.Mvc version 5.2.9.0

Thanks in advance for help.

Raja

 

 

 

 

Eyup
Telerik team
 answered on 02 Dec 2022
0 answers
205 views

Hi,

is it possible to have the grid save on leaving a row, and omit most of the buttons like 'Save' or 'Edit'?

We'd like the grid to do as much as possible automatically without the user having to trigger each function/event manually...

AutoSync(true) doesn't work for us, because it collides with our required fields, and always fires validation errors with each change of a cell value.

We tried this solution, but it doesn't cover all the bases: https://www.telerik.com/forums/auto-save-row-when-moving-to-the-next-row 
F
or example a record is not automatically saved, if it is the only one in the grid, because the solution requires to click another row.
Also the Delete-Event is not fired until another row was clicked.

I'd wish this was a standard feature for the Telerik Grid, because I have seen other vendors where their grid works like this by default, no scripts or whatever required.

 

 

Stefan
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 25 Nov 2022
4 answers
16.1K+ views

Hi,

Am getting 'Kendo is not defined' error while using date picker MVC UI control.

Uncaught ReferenceError: kendo is not defined

 

Anubhav
Top achievements
Rank 1
Iron
 updated answer on 24 Nov 2022
2 answers
222 views

I am using kendo grid UI in my MVC application. I want to filter the multiple comma separated input values row wise, for single input value its working fine but for multiple comma separated values its not working. 

Please let me know if it is possible to filter the multiple comma separated values.

Thanks in Advance!

Milena
Telerik team
 answered on 23 Nov 2022
1 answer
119 views

I'm trying to use a menu helper in the drawer's Template and it's not working. Is this even possible?  Do you have any examples of using other controls with the helper? All the examples are pretty simple.

 

Ivan Danchev
Telerik team
 answered on 17 Nov 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?