Telerik Forums
UI for ASP.NET MVC Forum
1 answer
241 views

I am trying to stop the user from switching to another tab if there are fields on the current tab that are not valid.  Here is the scenario.  I have a grid with a custom button that opens a partial view in a modal window.  This partial view has tabs on it which calls other partial views.  Before someone leaves a tab I would like to see if there are any fields that need addressing.  I'm doing this because I can't figure out how to return to the correct tab after I return from the controller when the model state is false.  (hint If this is an easier thing then please let me know)

The Application Number is required.  When I click on the other tabs it shows you in the console the previous tab, the length of the object and the fact that KendoValidator.Validate returns true.  Even though the application number is obviously blank.

Other Information Tab:

"Main" Partial View with the Tabs:

What am I doing wrong here?  Or is there an example that shows me how to take the user back to the tab with the fields that cause the model state to be invalid.

Here's the controller just in case:

 

 

 

 

 

 

Nikolay
Telerik team
 answered on 13 Apr 2026
1 answer
297 views

The issue I am having is when using Batch editing with the following conditions the field that I am attempting to update(using a dropdown list/component) does not render (see attachment) as a dropdown list.

  • Grid component with field that is an object
  • Column configured as Client Template
  • Field that is bound has the UHint attribute  set to an Editor template
  • A custom filter is set

 

ex: The code below shows a custom filter. When this custom filter is set then this dropdown field DOES NOT render as dropdown. If I remove the the custom filter the drop down renders properly when batch editing.

 


        columns.Bound(p => p.SubProgramObject.SubProgram).ClientTemplate("#=sanitizeNulls(SubProgramObject?.SubProgram)#").Sortable(true).Width(160).Title("Sub Program").Filterable(filterable => filterable
        .UI("subProgramFilter").Extra(false)
        .Operators(operators => operators
        .ForString(str => str.Clear()
            .IsEqualTo("Is equal to")
            .IsNotEqualTo("Is not equal to")
            .IsNullOrEmpty("Is null")
            .IsNotNullOrEmpty("Is not null")
        )));

 

Note: If I do NOT configure a custom filter the dropdown renders as expected. See PDF attached

Eyup
Telerik team
 answered on 10 Apr 2026
1 answer
176 views

I am developing a RangeBar chart that shows the timeline (date range) a medication was taken by a patient. I haven't been able to get the value axis to display dates or the bar to show at all. This is how the chart is built:

        @(
            Html.Kendo().Chart<ChartDetailDto>()
                .Name("rangeChart_" + Model.ElementId)
                .HtmlAttributes(new { @class = "w-100 rangeChart" })
                .ChartArea(ca => ca.Background("var(--bs-body-bg)"))
                .Legend(l => l.Visible(false))
                .ToClientTemplate()
        )

        function loadRangeBarChart(patientId, medId, isMedClass, medName) {
            abp.ajax({
                url: abp.appPath + 'App/PatientFigures/GraphRangeChartData',
                dataType: "json",
                data: {
                    id: patientId,
                    medId: medId,
                    isMedClass: isMedClass
                },
                type: "GET",
                traditional: true,
            }).fail(function (e) {
                console.log(e);
            }).done(function (result) {

                var data = result.map(m => ({
                    dose: m.dose,
                    startDate: new Date(m.startDate),
                    endDate: new Date(m.endDate)
                }));

                var chart = $("#rangeChart_" + medId).data("kendoChart");
                chart.setOptions({
                    dataSource: {
                        data: data
                    },
                    series: [{
                        type: "rangeBar",
                        fromField: "startDate",
                        toField: "endDate",
                        categoryField: "dose",
                        name: medName,
                        color: "#48A103",
                        opacity: 0.5,
                        gap: 5
                    }],
                    valueAxis: {
                        type: "date",
                        field: "date",
                        baseUnit: "months",
                        labels: {
                            format: "{0:dd/MM/yyyy}",
                            rotation: 30
                        }
                    }
                })
            });
        }

this is how it currently looks:

 

the category axis works fine.

Also, does the rangeBar chart allow zoom and pan?

Kenia
Top achievements
Rank 1
Iron
 answered on 09 Apr 2026
1 answer
146 views
While security testing through OWASP ZAP, a medium risk issue 'Sub Resource Integrity Attribute Missing' is flagging because kendo.all.min.js internally loads pdf.worker.mjs from Cloudflare CDN without SRI hash.

How to resolve this?
Anton Mironov
Telerik team
 answered on 09 Apr 2026
1 answer
119 views
While security testing through OWASP ZAP, a medium risk issue 'Sub Resource Integrity Attribute Missing' is flagging because kendo.all.min.js internally loads pdf.worker.mjs from Cloudflare CDN without SRI hash.

How to resolve this?
Anton Mironov
Telerik team
 answered on 09 Apr 2026
1 answer
93 views

I have a multiseries scatterLine chart built in js that also has multiple yaxis shown one at a time as you hover on the series.

Sometimes series can be close to each other and therefore when zooming in or scrolling left and right in a blank space of the chart, the hover event fires taking another series (not necessarily the closest one to mouse position) and therefore changing the one being showcased and restarting zoom, this is my hover event:

        function onHoverScatter(e) {
            if (lockedAxisSeries && lockedAxisSeries !== e.series.yAxis) return;
            if (hoverLock && currentHoverAxis !== e.series.yAxis) return;

            let chart = e.sender;
            var hoveredSeriesIndex = e.series.index;

            let series = chart.options.series;
            let yAxis = chart.options.yAxis;
            hoverLock = true;
            if (currentHoverAxis === hoveredSeriesIndex) return;
            currentHoverAxis = hoveredSeriesIndex;

            for (let i = 0; i < series.length; i++) {
                if (i === hoveredSeriesIndex) {
                    series[i].opacity = 1;
                } else {
                    series[i].opacity = 0.2;
                }
            }

            if (!Array.isArray(yAxis)) yAxis = [yAxis];
            yAxis[hoveredSeriesIndex].plotBands[0].opacity = 0.5;
            yAxis[hoveredSeriesIndex].visible = true;

            yAxis.forEach(function (axis, i) {
                if (i !== hoveredSeriesIndex) {
                    axis.visible = false;
                    axis.plotBands[0].opacity = 0.0;
                }
            });

            chart.options.series.forEach(function (s) {
                if (!s.markers) s.markers = {};
                s.markers.size = 6;
            });

            chart.setOptions({
                series: series,
                yAxis: yAxis,
                xAxis: {
                    min: null,
                    max: null
                }
            });
        }               

 

this is how the series look:

 

this is an example of the hover event firing for a marker much further away than the intended one:

(the blue circle represents where the mouse was positioned)

                                        
Anton Mironov
Telerik team
 answered on 07 Apr 2026
1 answer
81 views

I am working with a scatter chart and trying to modify the zoomable feature to change the markers size dynamically. So while zoomed out the markers will be smaller and as you zoom in they will be getting bigger. This is to avoid saturation when there's markers close to each other.

Is that possible?

                chart.setOptions({
                    series: seriesList,
                    yAxis: yAxisList,
                    xAxis: {
                        type: "date"
,                        labels: {
                            format: "{0:MM/dd/yyyy}",
                            rotation: 30
                        }
                    },
                    zoomable: {
                        mousewheel: {
                            lock: "y"
                        },
                    },
                    pannable: {
                        lock: "y"
                    }
                });

 

I've tried using this function on zoom but it doesn't work, it freezes the zoom:

                function onZoom(e) {
                        let chart = e.sender;

                        let xRange = e.axisRanges?.xAxis;
                        if (!xRange) return;
                    
                        let zoomLevel = xRange.max - xRange.min;
                    
                        let size =
                            zoomLevel > 365 ? 3 :
                            zoomLevel > 100 ? 4 :
                            zoomLevel > 30  ? 5 :
                            zoomLevel > 10  ? 10 : 8;
                    
                        // prevent constant redraw spam
                        if (chart._lastMarkerSize === size) return;
                        chart._lastMarkerSize = size;
                    
                        chart.options.series.forEach(s => {
                            if (!s.markers) s.markers = {};
                            s.markers.size = size;
                        });
                    
                        chart.setOptions({
                            series: chart.options.series
                        });
                  }

Eyup
Telerik team
 answered on 27 Mar 2026
0 answers
128 views

Hello!

I want to ask where can I find some informations or tutorial to migration from old version Telerik to new Telerik UI with Kendo for ASP.NET MVC?

"Old version" - I mean TelerikMvcExtensions from 2013.

I tried here https://www.telerik.com/aspnet-mvc/documentation/migration/migrating-from-telerik-extensions-for-aspnet-mvc but this site doesn't exist anymore.

 

BR,

Piotr

Piotr
Top achievements
Rank 1
 updated question on 05 Mar 2026
2 answers
104 views

In a grid I'm setting up the column menu with the tabbed component style. I would like to add a menu to the second tab.

In the documentation, I found Column Menu mentioning the ColumnMenuInit event. I was able to set up this event and it gets triggered when first opening the menu for a field. But I cannot locate the kendoMenu with

let menu = e.container.find(".k-menu").data("kendoMenu");

I could locate the panels through

let tab = e.container.find("[role=tabpanel]");

but my quest stranded there.

The grid is something like this

 @(Html.Kendo().Grid<DashboardViewModel>()
     .Name("dashboard")
     .Columns(...)
     .Events(e => e.ColumnMenuInit("menuInit"))
     .ColumnMenu(menu =>
     {
          menu.ComponentType("tabbed");
          menu.ClearAllFilters();
          menu.AutoSize();
     })
     ...
)

So how can I accomplish adding a menu to the second tab?

Thanks in advance

Boardy
Top achievements
Rank 2
Veteran
Iron
 answered on 02 Mar 2026
1 answer
409 views

This really has got me stumped. I have a grid that has a tabstrip in it's custom editor template. This tabstrip calls a partial view with a grid in it. I'm getting to the partial view just fine.  But when I call my read action method it can't find it because it has my controller name twice in the url.  When I had this before it was because something was not defined in my grid correctly.  I don't think that is the case here since it is so simple.  I am using areas.

I'm going to show the code from the EditorTemplate onwards.  Please let me know if you need the initial view.

EditorTemplate

@using Compass.Areas.HookupCharges.Models
@using Compass.Areas.Lookup.Models
@model HookupChargeViewModel

<div class="container-fluid">
    <form>
        <div class="form-group">
            <div class="row">
                <kendo-tabstrip tab-position="left" name="tabstrip-left">
                    <items>
                        <tabstrip-item selected="true" 
                                       text="Property Information" 
                                       content-url="@Url.Action("PropertyInformation", "HookupCharges", new { hookupId = "#=Id#" })"
                                       type="POST">

                        </tabstrip-item>

 

Controller

namespace Compass.Areas.HookupCharges.Controllers
{
    [Area("HookupCharges")]
    public class HookupChargesController(HookupChargeServices hookupChargeServices, LookupService lookupService) : BaseController

{...

public IActionResult PropertyInformation(int hookupId)
 {
     ViewData["HookupId"]= hookupId;
     // You can pass a model to your partial view here if needed
     return PartialView("_PropertyInformation");
 }

...}

Partial View

@using Compass.Models;
@{
    var _hookupId = (int)ViewData["HookupId"];
}

@(
Html.Kendo().Grid<PropertyInfoViewModel>()
    .Name("HookupChargePropertyGrid")
    .Columns(columns =>
    {
        columns.Bound(p => p.Id);
        columns.Bound(p => p.Address);
        columns.Bound(p => p.AddressDirection);
        columns.Bound(p => p.StreetUnit);
        columns.Bound(p => p.TaxAccount);
    })
    .Pageable()
    .Sortable()
    .DataSource(dataSource => dataSource
        .Ajax()
        .PageSize(20)
        .Read(read => read.Action("HookupPropertyInfo_Read", "HookupCharge", new { hookupId = _hookupId }))
    )
)

Controller

It Never Gets Here

[HttpPost]
public async Task<IActionResult> HookupPropertyInfo_Read([DataSourceRequest] DataSourceRequest request)
{
    var model = await _hookupService.GetAllHookupChargePropertiesAsync(1279);
    var result = model.ToDataSourceResult(request);

    return Json(result);
}

Output

 https://localhost:44358/HookupCharges/HookupCharge/HookupPropertyInfo_Read

I have no idea about the aria message.  I'll work on that while I wait for an answer.

 

Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 24 Feb 2026
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
DropDownButton
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
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
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?