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

Hi

Reasking the same question below that some else asked in 2016 from here https://www.telerik.com/forums/expressionbuilder-expression(filters)-in-kendo-mvc-grid-not-working-for-navigation-collection 

Is this still the same answer 5 years on?

Cheers

Kyle

Original Question from 2016

"We are using Kendo MVC Grid in our application. We are using LINQ to EF to query the tables.

Following is a query in our application:

query.Where(ExpressionBuilder.Expression<ParentTable>(command.Request.Filters))

This works fine as long as the filters are any columns from the "ParentTable". However, the ParentTable has a navigation collection ICollection<ChildTable> and the ChildTable has a property ChildProperty and the method ExpressionBuilder.Expression fails when we use this ChildProperty for filtering.

Any solution for this problem?

Thanks"

Original Answer

"Hi,

I'm copying my reply to your support ticket here for customer reference.

I'm afraid the Where extension does not support filtering by collection.
This is not a design goal of the data engine.

Regards,
T. Tsonev
Telerik"

Kyle
Top achievements
Rank 1
 asked on 15 Dec 2021
1 answer
637 views

Using the Kendo UI Editor successfully in my application, I recently try to implement a dark mode through an external library.

To my surprise, the editor itself seems to be not able to work correctly in dark mode in general.

I.e. I see dark font color on dark background.

Even the very own demos with the very own Telerik skins fail to work correctly. E.g.:

demos.telerik.com/kendo-ui/editor/index?autoRun=true&theme=material-main-dark

I found no way and no CSS to specify a light default text color.

My question:

How can I configure the Kendo UI Editor to correctly work with a dark background?

Yanislav
Telerik team
 answered on 14 Dec 2021
1 answer
239 views

Hi,

I am using Kendogrid sort on a column which is a string with alphanumeric characters. For some reason the sort does work example I have a strings

DDD-TEST AUTO

BARROWCLOUGH

empty string

the order which i get when i sort are

DDD-TEST AUTO

empty string

BARROWCLOUGH

When i sort always puts DDD- as first whether its ascending or descending, next is the empty and then BARROW. Can you please help me on this as why is this happening.

 

Thanks,

 

Yanislav
Telerik team
 answered on 14 Dec 2021
1 answer
376 views

Hey, I want to create a chart with a trend line in kendo MVC.

Is there a way to accomplish this in kendo MVC?

Or do I have to calculate every single point in the trend line myself?

Anton Mironov
Telerik team
 answered on 14 Dec 2021
1 answer
581 views
Hi - is it possible to rotate images with the image editor in ASP.NET MVC library?
Yanislav
Telerik team
 answered on 13 Dec 2021
0 answers
118 views

Hello, I'm trying to add one kendogrid to my page and load the data received in a property of my model and then sumbit them again.

I can show items but whsn send back to controller with a submit I recevive null in controller.

Anyone could help me?

This is my current code:

View

 

Controller

Miguel
Top achievements
Rank 1
 asked on 13 Dec 2021
1 answer
330 views

Hello, I followed the example described here to add a new row to a grid for .net core. 

https://demos.telerik.com/aspnet-core/grid/editing-custom?_ga=2.26293876.833224250.1638885818-877575679.1613496852&_gac=1.254567930.1636639521.CjwKCAiAm7OMBhAQEiwArvGi3LGIkgkIa0cryh_i3sqYkeTw5t6X4lLPrldP-jBbXgDwqmTnAOAOkhoC-yQQAvD_BwE

All works fine as it is in the example but if I change the GridEditMode to Popup then when it opens the popup it doesn't show the editor template DropDownListFor.

Can you help me out in order to have this working with the GridEditMode.Popup ?

 

Thanks,

Pedro

Yanislav
Telerik team
 answered on 13 Dec 2021
2 answers
203 views

I want to add checbox to my grid. I tried to use the Select() method but the method shows an error No overload for method Select takes 0 arguments.  I need to pass to controller a collection of id elements that the user has selected.

    @(Html.Kendo()
             .Grid<Model>()
             .Name(gridId)
             .Columns(col =>
             {
                 col.Select();
                 col.Bound(fds => fds.Id);
                 col.Bound(fds => fds.CreateDateTime).ClientTemplateDateTime();
                 col.Bound(fds => fds.IdClient);
             })
             .Pageable()
             .Sortable()
             .DefaultPageable()
             .Resizable(c => c.Columns(true))
             .AllowCopy(true)
             .DataSource(d =>
                  d.Ajax()
                        .Model(m => m.Id(vm => vm.Id))
                        .Read("GetAnalysis", "Export")))

 


Anonim
Top achievements
Rank 1
Iron
 answered on 13 Dec 2021
1 answer
214 views

Hi,

I have a Model object which is used to create the parent Kendo Grid. This Model object contains a list of object which is used as a data source to another nested grid created with a ClientDetailTemplate and DetailInit event. The nested grid is coming up fine but I am unable to perform any grid operations like sorting or filtering. It does not give any error but the grid just closes down.

I think I might be missing some configuration in DetailInit event method to make sure the sorting/filtering operations does not do server operations. So I used  grid.dataSource.serveroperation = false; in detailInit event. still the grid just closes in and looks like its trying to do server operation for sorting and filtering. Following is an example of the code that I am using:


public class ParentModel
   {
      public long ParentId { get; set; }
      public List<ChildModel> ChildModelList{ get; set; }
      ...
   }

@(Html.Kendo().Grid<ParentModel>()  
    .Name("Grid")
    ...
    .ClientDetailTemplateId("nested_grid")
    .Events(e => e.DetailInit("detailInit"))
    ...
)
  
<script id="nested_grid" type="text/kendo-tmpl">
    @(Html.Kendo().Grid<ChildModel>()
               .Name("ParentModel_#=ParentId#")
               .Sortable()
               .Filterable()
               .ToClientTemplate()
     )
</script>
  
<script>
    function detailInit(e) {
        var grid = $("#ParentModel_" + e.data.Name).data("kendoGrid");
        grid.dataSource.data(e.data.ChildModelList);
        grid.dataSource.serveroperation = false;
        }
</script>
Thanks!
Eyup
Telerik team
 answered on 13 Dec 2021
1 answer
110 views

Hello,

My MVC project used kendo grid control which contain date column.  It seems date filter does not work  - after I clicking Filter button as below Page refreshed without filter. Any suggestion? Thanks in advance.

 

 

in View:

...

 columns.Bound(model => model.HireDate).Width(120).Format("{0:yyyy/MM/dd}");

...

  .ColumnMenu(columnMenu => columnMenu.Enabled(true).Filterable(true).Sortable(false).ComponentType("modern"))

Anton Mironov
Telerik team
 answered on 13 Dec 2021
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?