Telerik Forums
UI for ASP.NET Core Forum
1 answer
1.2K+ views

We see a lot of samples in the demo pages.

However, we would like to see them in action and download the fully functional demo on localhost. 

On Git I didn't found the samples. Is there, and, if is, where, the sources for ASP.NET compoentnts.

I wonder especially for a sample example of DataGrid, like this one https://demos.telerik.com/aspnet-core/grid/editing-custom

.NET 5 (CORE) for RazorPages, by example

Tsvetomir
Telerik team
 answered on 12 Aug 2021
5 answers
963 views

Hello,

I use a Tabstrip in a Grid Editor Template and want to load the the Content with LoadContentFrom and Parameters like:

tab.Add().Text("Profile (0)").LoadContentFrom("GetPartialView_frmMitgliedaktprofileEdit", "Mitgliedakt", new { mitgliedid = Model.Mitglied_ID, aktid = Model.Akt_ID });

The Problem to have aTabstrip in the grid template is that I cannot access the model values:
new { mitgliedid = Model.Mitglied_ID, aktid = Model.Akt_ID }

How can I load the Content of a tab with Parameters on the Client (reload?) or how to pass the two Parameters for loading if the tab is klicked
(I think it must be on the Client with javascript)

robert

 

 

Renu
Top achievements
Rank 1
Iron
Iron
Iron
 updated answer on 11 Aug 2021
1 answer
169 views

Hey guys,

I'm using the PanelBar for side navigation. For describing my issue the following simple setup should work too.

@(Html.Kendo().PanelBar()
                    .Name("panelbar")
                    .ExpandMode(PanelBarExpandMode.Multiple)
                    .Items(panelbar =>
                    {
                        panelbar.Add().Text("Home").Action("Index", "Home");
                        panelbar.Add().Text("Offers")
                             .Items(offers=>
                             {
                                 offers.Add().Text("Show").Action("Index", "Offers");
                             });
                    })
                )

Each item in the PanelBar is connected to an action. When loading "/Home/Index" the selected item in the PanelBar after loading the page is the first item "Home". It works like expected.

But when loading "/Offers/Index", there will be nothing selected in the PanelBar. So in the end only the items in the highest item level are selected by it's action. You can see it when putting the "Offers/Index" directly under "Home/Index".

panelbar.Add().Text("Home").Action("Index", "Home");
panelbar.Add().Text("Offers").Action("Index", "Offers");

Currently I'm using "2021.2.616". I know from a previous project that this behavior wasn't yet in version "2021.1.119". There the subitems were also selected if the current url matched the href of the item.

Maybe a bug?

Aleksandar
Telerik team
 answered on 09 Aug 2021
1 answer
9.6K+ views
Hi everyone,

I have a little problem with containerizing my application and I hope that you can help me.
I am currently programming an ASP.NET Core web application using the Nuget package Telerik UI for ASP.NET Core. In order to use this package I have given a local path on my hard drive where the nupkg file is located. (see picture 1)

For the containerization I created the Dockerfile and the Docker-Compose. Everything worked fine during development, but as soon as I try to containerize the app with the command "docker-compose build", I get the following error. -> Unable to find package Telerik.UI.for.AspNet.Core with version> = 2021.2.511 (see picture 2)

I've read that I need a nuget.config file. I created this with the command "dotnet new nugetconfig". Then I added the package source "local" and "nuget.org". "local" refers to the folder "Package" that I created in the project folder and into which I copied the nupkg file. (see picture 3)

If I run the "docker-compose build" command again, I get another error -> The local source [...] doesn't exist (see image 4)

So my question is what do I have to do in order for the Nuget package to be found and the Docker build to work?
(My Dockerfile and Docker-Compose can also be found in the attachments)

Thanks in advance
Lars
Aleksandar
Telerik team
 answered on 09 Aug 2021
1 answer
249 views

The ASP.Net Core project is using the Kendo grid.

 

 On selection of a dropdown's, item needs to perform a action on all the selected rows (using checkbox checked) .

how to accomplish it.

Mihaela
Telerik team
 answered on 06 Aug 2021
1 answer
545 views
We need to let users view sensitive documents within our application so would like to make sure they cannot be downloaded to the local machine, printed etc. Does the Telerik PDF Viewer cater for this?
Aleksandar
Telerik team
 answered on 04 Aug 2021
1 answer
885 views

I am using the Core Grid with grouping.  I am grouping on a field called "ClassOrder", but would like to display the name of the field called "Class" in the template.  The desired order of display is not alphabetical, but driven by that "ClassOrder" column. 

What is the syntax to use in the group header template to refer to other fields in the row?

 

Thx!

Stoyan
Telerik team
 answered on 30 Jul 2021
2 answers
184 views

Hello guys,

is it possible to display a warning on the scheduler when Update action is triggered? It happens often that users change the dates by mistake when using scheduler (they drag and drop or expand).

    Thanks.

    Boris
    Top achievements
    Rank 1
    Iron
    Iron
     answered on 29 Jul 2021
    1 answer
    837 views

    I have a slider on a page set to a min/max of 0 and 100.   The min/max of this slider is variable and changes depending on what a user has selected in a dropdownlist.  For example, when the user selects an item in the dropdownlist, I change the slider's min/max value of 10 and 50 using setOptions.

     var slider = $("#slider").data("kendoSlider");
                    slider.setOptions({
                        min: 10,
                        max: 50,
                        smallStep: 1,
                        largeStep: 5,
                        value: 10
                    });

    slider.resize();

    This seems to work as the slider updates to the properties I set in setOptions.  But after I do this, it doesn't consistently let me jump to a value in the slider.   For example, if I try to click the slider line at 40, the slider won't move to it.  Sometimes it will, sometimes it won't.   If I drag the slider ball to a number it works fine, if I user the increase/decrease arrow buttons it works fine.  But clicking on a number in the slider bar does not work.  

    - This jumping to a number in the slider works fine before I dynamically change the properties using "setOptions".
    - This problem occurs regardless of what property in the slider I change using "setOptions". 

    Any ideas? Thanks.

    Stoyan
    Telerik team
     updated answer on 27 Jul 2021
    3 answers
    806 views

    Hi,

    I am trying to change the culture for the PDFViewer page of the AspNet.Core example, but it is not working. I have searched this forum and all the documentation available with no success. This is the code I am puting at the beginning of the page:

    @section scripts{

        <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.js"></script>
        <script>
            window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';
        </script>
        <script src="~/lib/kendo/js/jquery.js"></script>
        <script src="~/lib/kendo/js/kendo.all.min.js"></script>
        <script src="~/lib/kendo/js/cultures/kendo.culture.pt-BR.min.js"></script>

    }

    <script type="text/javascript">
        //set the Kendo UI culture
        kendo.culture("pt-BR");
    </script>

    It should work, but the page still shows up with the english language.

    I would appreciate any help.

     

    Patrick | Technical Support Engineer, Senior
    Telerik team
     answered on 27 Jul 2021
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Jay
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    yw
    Top achievements
    Rank 2
    Iron
    Iron
    Stefan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Kao Hung
    Top achievements
    Rank 1
    Iron
    Bohdan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Jay
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    yw
    Top achievements
    Rank 2
    Iron
    Iron
    Stefan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Kao Hung
    Top achievements
    Rank 1
    Iron
    Bohdan
    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?