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

I have come across scenario that I will have to hide a dropdownlist but need to send the selected value on postback.

Could some one help me with this.

Below is the sample code I am using to load the dropdownlist

@{
                var kendoDropdown = Html.Kendo().DropDownList()
                    .Name("MUAInput")
                    .BindTo(Model.SelectableMUAItems)
                    .DataTextField("Text")
                    .DataValueField("Value")
                    .OptionLabel("Select")
                    .HtmlAttributes(new { name = "MUAInput" });

                if (Model.IsRequired)
                {
                    kendoDropdown.Events(evt =>
                    {
                        evt.Change("onRequiredKendoDropdownChanged");
                    });
                }

            kendoDropdown.HtmlAttributes(new { data_input_required = string.Empty, name = "MUA" });

                kendoDropdown.Render();
            }
Alexander
Telerik team
 answered on 12 Jul 2023
1 answer
282 views

I had a look at the ISchedulerEvent inside the Kendo.MVC.UI namespace and found that it's using predefined binding for column names such as Title, Description, Start, End, etc.

However, I have a data controller and model that has some of those, but I have many other data columns that I need mapped to a Telerik Scheduler-Timeline control.

Is it possible to edit the ISchedulerEvent to allow other columns? I have data that eventually I will need to show up in the Scheduler as a tooltip (custom javascript I can see already here, but very little documentation on how in your website). And how do I customise the CSS too please? I want to change the way the MonthView displays data, down to 12hr blocks per day for a max of 7 days in the one screen.

Also, I noticed the following errors/messages when viewing the control source code:

namespace Kendo.Mvc.UI
{
    public interface ISchedulerEvent
    {
        string Title { get; set; }

        string Description { get; set; }

        bool IsAllDay { get; set; }

        DateTime Start { get; set; }

        DateTime End { get; set; }

        string StartTimezone { get; set; }

        string EndTimezone { get; set; }

        string RecurrenceRule { get; set; }

        string RecurrenceException { get; set; }
    }
}
#if false // Decompilation log
'325' items in cache
------------------
Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.5\ref\net7.0\System.Runtime.dll'
------------------
Resolve: 'Microsoft.AspNetCore.Mvc.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
Found single assembly: 'Microsoft.AspNetCore.Mvc.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
Load from: 'C:\Program Files\dotnet\packs\Microsoft.AspNetCore.App.Ref\7.0.5\ref\net7.0\Microsoft.AspNetCore.Mvc.Abstractions.dll'

What does this mean? I am using .Net 6 not .Net 7.

Obviously, I am new to ASP.Net Core but I am familiar with the EntityFramework to get data from a SQL Server database. I know that part of my project is working, but I am having a hard time understanding the ISchedulerEvent  and why I have to use it, and how to use it to customise my data mappings.

Please don't offer me the Scheduler getting-started-scheduler page. I've done all that and it's very thin on explaining how things are working, and besides the model in the example is purely limited to the existing columns in the ISchedulerEvent  .

Thanks

Alexander
Telerik team
 answered on 11 Jul 2023
1 answer
928 views

Hello,

 

I am new to Kendo grid.  I would like to add a textarea for inline editing of a grid field.  Currently in edit mode there is a text box and I want to replace this with a multi line textarea.  My grid is using Ajax.

thanks.

Bermuda
Top achievements
Rank 1
Iron
Iron
 answered on 10 Jul 2023
1 answer
440 views
How to show password text as '*' in grid Client Detail Templates and Editor Templates.
Alexander
Telerik team
 answered on 10 Jul 2023
1 answer
219 views

Hi,

Is there a way to position the buttons so that the clock button comes after the calendar?This is more logical as the ISO date format used in our application.

Alexander
Telerik team
 answered on 06 Jul 2023
1 answer
862 views

While scanning our projects for security vulnerabilites, we noticed that Telerik.UI.for.AspNet.Core  2023.2.606 references an of .NET Core 2.1 which is 5 years old and long since unsupported?   This means that using Telerik.UI.for.AspNet.Core immediately introduces the critical security vulnerabilies present in .NET Core 2.1.    Why does it depend on this ancient version of .NET?   

Here is a new completely empty project created just now (July 2023!) and you can see the references to .NET Core 2.1:

And here's a resulting security scan of this empty project:

 

Is .NET Core still supported by Telerik because it seems odd this hasn't been fixed in 5 years.

 

Aleksandar
Telerik team
 answered on 06 Jul 2023
1 answer
509 views

we are upgrading to Telerik and we have a grid button that shows details beyond what the row is showing. 

 

i have the button and the pop up working but im unsure on how to make this ->

<div class="modal-footer">
                                        <a asp-action="UpdateClaimStatus" asp-route-claimId="@item.ClaimId" asp-route-newStatus="-1"
                                           asp-route-cycle="@Model.CycleId" asp-route-page="@(Model.Page)" asp-route-status="@(Model.StatusFilter)"
                                           asp-route-sort="@(Model.Sort)"
                                           class="btn btn-outline-secondary @(item.StatusID < 2 ? "" : "disabled")"
                                           onclick="showElement('actionShield')">
                                            <i class="fa fa-refresh"></i>
                                            Re-import Claim
                                        </a>
                                        <button type="button" class="btn btn-outline-primary" data-dismiss="modal">
                                            Close
                                        </button>

 

 

Work with this ....

@(Html.Kendo().Window().Name("Details")
    .Title("Claim Details")
    .Visible(false)
    .Modal(true)
    .Draggable(true)
//.Width(300)
)

 

thanks!!!!

Stoyan
Telerik team
 answered on 05 Jul 2023
1 answer
333 views

I am using the Breadcrumbs widget with an ASP.NET Core MVC application. I have configured it with ".BindToLocation(true)", and placed it within my main layout. This creates breadcrumbs that automatically reflect the current URL within the application. So much easier than having to designate names & URLs for each Action!

The problem is that when I include optional query string parameters into some of my Actions, the query string becomes part of the breadcrumb. This doesn't look clean at all. 

How can I remove the query string from the breadcrumbs?

Mihaela
Telerik team
 answered on 30 Jun 2023
1 answer
350 views

Hello,

I've searched forums and documentation and can't seem to find an example of how to do what I need.  What I am trying to do is I need an editable List View on my page where I want to use my model as the data source (in memory only).  Each time I save a record in the list view I want to add it to the model, then pass the contents of that same model to my server.

The List View will need to display all entries (update with each entry)

I need the data to persist in the model during the session.

Can anybody please point me to an example that does this in MVC C# .NET 6?

Thanks!

Mihaela
Telerik team
 answered on 29 Jun 2023
1 answer
176 views

Hi,

I have a Kendo Window that displays a grid.  I want to use a custom Grid Popup Editor to maintain data in the grid.   However, the editor doesn't pop up out of the window, but is added to the window, below the grid. 

Is this expected behavior?  If so, is there a way to override it so that the Popup Editor appears to display in its own window?

Thanks,

Taylor  

Alexander
Telerik team
 answered on 29 Jun 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?