Telerik Forums
UI for ASP.NET Core Forum
2 answers
111 views

Hello,

Is there a way to insert some html at the current cursor position, but from some jQuery script instead of using the Toolbar snippet option ?

Best regards

Henri

Dimitar
Telerik team
 answered on 20 Sep 2018
2 answers
133 views

Hello,

I'am facing an issue with the toolbar layout that breaks when i'm setting the editor.value from client script.

The issue occurs only when too much tools are declared. It also seams that tools exeeding the toolbar area do not correctly wrap into the "more" butto

Then, clicking into the editor area corrects the issue.

Could you please hep me workaround this issue?

Best regards

Henri

Henri
Top achievements
Rank 1
 answered on 19 Sep 2018
4 answers
456 views

Hello,

I am trying to give ALL my text in my bar chart a different font-size. Now when I want to put it in my own CSS. I have NO CLUE, what classes or something I need to use. I have the following classes (Yes, there is more code below and the graph shows up).: 

<div class="demo-section k-content wide">
                @(Html.Kendo().Chart<[private].Models.[private]>()
                        .Name("Samples_rapport")

By going in my chrome inspector I can do this to change all the font sizing:
text {
font-size: 9px !important;
}

 

Please, update the Asp.net core documentation....
Greetz,

Chili

Alex Hajigeorgieva
Telerik team
 answered on 19 Sep 2018
3 answers
791 views

I've a asp net core 2.0 web application with razor view. I've a grid with webapi datasource.

I've added and configured the UseRequestLocalization (in the Startup.Configure)

01.var enUSCulture = new CultureInfo("en-US");
02.var supportedCultures = new[]
03.    {
04.        enUSCulture,
05.        new CultureInfo("it-IT")
06.    };
07. 
08.app.UseRequestLocalization(new RequestLocalizationOptions
09.{
10.    DefaultRequestCulture = new RequestCulture(enUSCulture),
11.    // Formatting numbers, dates, etc.
12.    SupportedCultures = supportedCultures,
13.    // UI strings that we have localized.
14.    SupportedUICultures = supportedCultures
15.});

 

In the _Layout.cshtml I've included the culture and messages javascript files

01.@{
02.    var currentCultureString = System.Globalization.CultureInfo.CurrentUICulture.ToString();
03.}
04. 
05.<script src="~/lib/kendo-ui/js/cultures/kendo.culture.@(currentCultureString).min.js"></script>
06.<script src="~/lib/kendo-ui/js/messages/kendo.messages.@(currentCultureString).min.js"></script>
07. 
08.<script type="text/javascript">
09.    kendo.culture('@currentCultureString');
10.    $(document).ready(function () {
11.        kendo.culture('@currentCultureString');
12.        //server culture:       @System.Globalization.CultureInfo.CurrentCulture.ToString()
13.        //server ui culture:    @System.Globalization.CultureInfo.CurrentUICulture.ToString()
14.    });
15.</script>

 

I've verified the generated html and I can see the right culture (it-IT) with right datetime format both in display mode and inline edit mode (with datepicker in EditorTemplates). --> see the attachment

However when I click on save button, the put operation is done using en-US culture and goes wrong in the webapi --> see the attachment

Any idea as to what I am doing wrong?

Stefan
Telerik team
 answered on 19 Sep 2018
3 answers
125 views

Hello,

We have some DDL with more then 10 items and also with less than 10 items we use a EditorTemplate where the filter setting is:  .Filter("contains")
but it makes no sense to habe a filter if there are only a few rows - in the DataBound event I wanted to disable/enable the filter like this but it doesn't work:

function FilterSetting(e) {
        var ds = this.dataSource.data();
        if (ds.length > 10) {
            this.options.filter = "contains";
        } else {
            this.options.filter = "none";
        }
    }

 

How can I display the filter depending on how many rows are available?

 

robert

 

Eyup
Telerik team
 answered on 18 Sep 2018
1 answer
75 views
I see nothing in the documentation, or any hints to it being possible via Visual Studio IntelliSense. Is this possible? If, so can an example be given?
Veselin Tsvetanov
Telerik team
 answered on 14 Sep 2018
6 answers
308 views

Hi Team:

 

I need to evaluate the ASP.NET Core for the Scheduler control.  I downloaded  the sample application from Telerik:

 

https://github.com/telerik/ui-for-aspnet-mvc-6-demos/releases

 

But when I opened the solution I got hundreds of errors related with dependencies that could not be resolved.

I was following these steps:

http://docs.telerik.com/aspnet-core/introduction

 

What can I do to install this easily in my pc ?

 

Appreciate your help.

 

David

 

 

 

 

 

Veselin Tsvetanov
Telerik team
 answered on 14 Sep 2018
1 answer
291 views

I am trying to use Telerik with Core 2.0 and razor pages

            @(Html.Kendo().Menu()
                .Name("Menu")
                .Items(items =>
                {
                    items.Add()
                        .Text("Home")
                        .Action("Index", "Index");

What parameter(controller) should I use for Action since there is no more controller?

Thank you.

 

Dimitar
Telerik team
 answered on 14 Sep 2018
4 answers
419 views

The telerik for asp.NET Core comes with some EditorTemplates and one of them is Number.cshtml.

I have used the following code <div class="col">@Html.EditorFor(m => m.MeasurementMin)</div> however the generated code is using the String.cshtml template. 

When is the template Number.cshtml used? How should the name for the editor template for double be named?

Dan
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 14 Sep 2018
1 answer
256 views

Hi,

I have a form containing a kendo-window with a select inside the window that isn't posting.  When I place the select outside the kendo-window, it posts correctly.

Is there something I need to be doing to get a field inside a kendo-window to post?

Note: all other fields including the window are in the form #changeForm.

 

Markup:

<kendo-window name="confirm" modal="true" title="Send" draggable="false" resizable="false" width="600" visible="false">
    <content>
        <p>Who would you like to send the email to?</p>
        <div id="dialog-content">
            <select asp-for="Names" multiple="multiple" class="form-control" asp-items="@(new SelectList(ViewBag.Users))">
                <option value="" selected></option>
            </select>
        </div>
        <hr />
        <button class="btn btn-success" type="button" id="confirmSend">Send</button>
    </content>
</kendo-window>

 

Script:

$("#confirmSend").click(function() {
    $("#changeForm").submit();
});

 

Thanks!

Brian
Top achievements
Rank 2
Iron
 answered on 13 Sep 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?