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

I have a grid with a column that is a foreign key. I need to filter the column and to create a dropdown for it. Since the number of values is huge I need to use a dropdown with virtualization. Because of that I need to define a UI function. (I should mention that I have the columnmenu = true for the other case I know which field it is)

All of our javascript code must exist in a js file so the read function can not be set in it since the site can have variable url.

Is there a way to get to know for which field the function is called? I tried to look in the parent of the element sent but there is no information for which column the menu is created.

Aleksandar
Telerik team
 answered on 20 Oct 2021
1 answer
300 views

Hi,

I am trying to integrate kendoEditor into my application. Everything works correctly, even the upload mechanism. The Read action works correctly and returns the list of files and folders, but in the file display the name is incorrect as well as the path. Only "undefined" is displayed under each icon. The wrong icon is also displayed, a clear sign that the JSON returned by the Read does not reach its "destination" correctly.

I have created a project to test how the editor works out of the context of my application, but I still have this problem. I have attached the project to this post, along with an image showing the error message.

Thanks!

Sebastiano

Aleksandar
Telerik team
 answered on 20 Oct 2021
1 answer
1.1K+ views

How do you get the date picker to display the initial value when it is in a wizard?

This code is from the demo and not inside a wizard so it works:

<div class="demo-section k-content">
        <h4>Show e-mails from:</h4>
        @(Html.Kendo().DatePicker()
              .Name("datepicker")
              .Value("10/10/2011")
              .HtmlAttributes(new { style = "width: 100%", title = "datepicker" })
        )  
</div>

In the following code it is in a wizard and it does not display the initial value. 

 s.Add<Contract>()
                .Title("Email details")
                .Form(f => f
                    .Validatable(v =>
                    {
                        v.ValidateOnBlur(true);
                        v.ValidationSummary(vs => vs.Enable(false));
                    })
                    .FormData(Model.Contractor.Contracts)
                    .Items(items =>
                    {
                        items.Add()
                          .Field(p => p.StartDate)
                          .Label(l => l.Text("Start Date"))
                          .Editor(e =>
                          {
                              e.DatePicker()
                                   .Name("Startdatepicker")
                                   .Value("10/20/2011")
                                   .HtmlAttributes(new { style = "width: 100%", title = "datepicker" });
                          });                      
                    })
                    )
                    .Buttons(b =>
                    {
                        b.Previous();
                        b.Next();
                    });

Aleksandar
Telerik team
 answered on 18 Oct 2021
1 answer
4.0K+ views

I haven't been able to find and docs or samples on this.

I have a checkbox on an ASP.NET Core View page. 

When checked it should set two button groups to unselected (may not be correct terminology) and hide two div classes that display text.

The div classes are displayed based on the two button selections.

Problem is I can't seem to find anything that shows how to capture an onclick event for the Kendo().Checkbox.

Is this possible?

 

TIA

Alexander
Telerik team
 answered on 18 Oct 2021
1 answer
624 views

Hello, I'm trying to add a date filter to a dynamic column but my filter it's not applied, always apply the default string filter.

This is my current code to create the grid: 

And this is current result:

 

Is there any way to implement this(date filter in dynamic grid)?

BR, Miguel Machado


 

Tsvetomir
Telerik team
 answered on 18 Oct 2021
1 answer
158 views

Hi guys,

I am using Kendo UI  Upload to upload files the upload works fine however there are two things I am facing... I am using Arabic RTL Version

Now here is the problem, when I upload the files it get duplicated however, I only upload it once only. 

Secondly the remove  icon is not showing but the functionality is there just the icon not appearing....

 

I use  the following CDN links in my layout files.


    <link href="https://kendo.cdn.telerik.com/2020.1.406/styles/kendo.bootstrap-v4.min.css" rel="stylesheet" type="text/css" />
    <script src="https://kendo.cdn.telerik.com/2020.1.406/js/jquery.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2020.1.406/js/jszip.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2020.1.406/js/kendo.all.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2020.1.406/js/kendo.aspnetmvc.min.js"></script>


Also, I want to know, How I can bind The ViewModel property  name to Kendo UI Extension methods?   like we do with normal html controls using   asp-for="@Model.Student.Name"


  @(Html.Kendo().Upload()
                                      .Name("files")
                                      .HtmlAttributes(new { aria_label = "files" })
                                      .Validation(validation => validation.AllowedExtensions(new string[] { ".pdf" }))
                                      )

 

Anyone Can Help?

Aleksandar
Telerik team
 answered on 18 Oct 2021
1 answer
288 views

How do I code this for a razor web application. How do I code the content-url paramater? 

 

Here is an MVC example of displaying a page in a Kendo window: https://demos.telerik.com/aspnet-core/window/tag-helper 

@addTagHelper *, Kendo.Mvc

@{
    string[] actions = new string[] { "Close" };
}

<kendo-window name="window"
              title="Rams's Ten Principles of Good Design"
              draggable="true"
              resizable="true"
              width="600"
              on-close="onClose"
              content-url="@Url.Action("AjaxContent_TagHelper", "Window")"
              actions="actions">
    <content>
        loading user info...
    </content>
    <popup-animation enabled="false" />
</kendo-window>

<span id="undo" style="display:none" class="k-button">Click here to open the window.</span>

<script>
    function onClose() {
        $("#undo").show();
    }

    $(document).ready(function() {
        $("#undo").bind("click", function() {
                $("#window").data("kendoWindow").open();
                $("#undo").hide();
            });
    });
</script>

 

 

Stoyan
Telerik team
 updated answer on 15 Oct 2021
1 answer
185 views
  1. OnChange event doesn't track the cell modification after add data to the original value. (screenshot on the demo).
  2. Another question, I use the annotations on my viewmodel but it does not appear in the spreadsheet ? (same things on the site demo https://demos.telerik.com/aspnet-core/spreadsheet/datasource => [Display(Name = "Product name")] into the viewmodel but not in the spreadsheet) ? 

Regards,

Florian.

Mihaela
Telerik team
 answered on 15 Oct 2021
1 answer
100 views

Hello everyone.

I have a hierarchical grid, using ClientDetailTemplate, and everything works just fine, thanks to your detailed demo.

 

But I have a problem with filtering the whole grid (both the main grid and the tabbed grids). I have an input on main grid's toolbar through which the user can filter every column with the inserted text, but in this particular grid, it only filters the main grid and not the content of tabbed ones. I was wondering is there a way to filter the whole grid?

Aleksandar
Telerik team
 answered on 15 Oct 2021
0 answers
114 views

Request to impalement this common feature for FileManager

1) Back and Forward feature / button

2) Cut, Copy and Paste feature /Button

 
Jimmy
Top achievements
Rank 1
Iron
Veteran
 asked on 15 Oct 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?