Telerik Forums
UI for ASP.NET Core Forum
1 answer
436 views
In grid we have some checkbox columns that are used to indicate different things (this row has x type of detail data, for example) to help save time for users. However I can't help but wonder if there are better alternatives. Anybody have any ideas? 
Stoyan
Telerik team
 answered on 24 Sep 2021
1 answer
410 views

Please go to demo https://demos.telerik.com/aspnet-core/tilelayout/resizing and decrease width and height of all 3 items to 1 row and 1 column

-> the height of the TileLayout container decreases to the height of 1 row.

How can I increase it again or keep a specified height?

I can set a minimum height in pixels by HtmlAttributes, but no percentual or calculated value.

Tsvetomir
Telerik team
 answered on 24 Sep 2021
1 answer
410 views

Hi,

When you go to the demo for the upload control, all you have is the index controller posted.  That does not contain the methods for the actual async uploads/ cancel.  ASP.NET Core Upload Key Features Demo | Telerik UI for ASP.NET Core  

Can you post these methods from the upload controller:

 


.Async(a => a
                    .Save("Chunk_Upload_Save", "Upload")
                    .Remove("Chunk_Upload_Remove", "Upload")
                    .AutoUpload(false)
                    .ChunkSize(11000)
                )

Thanks!

 

Stoyan
Telerik team
 answered on 23 Sep 2021
1 answer
869 views

Hi,

In documentation of Kendo UI for jQuery I found a property that allows to easily set page size of a grid: https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/pageable.pagesize

However, I use Kendo for ASP.NET Core, and here the PageSize property is missing: https://docs.telerik.com/aspnet-core/api/Kendo.Mvc.UI.Fluent/GridPageableSettingsBuilder

I know I can set the size on DataSource object, however I would like to have a single reusable piece of code for setting the options and current size of paging. Is the page size option hidden somewhere in GridPageableSettingsBuilder? If it is not there are there any plans to add it?

Best regards,
Kazimierz

Stoyan
Telerik team
 answered on 23 Sep 2021
1 answer
157 views

Hi,

I am using an AppBar and have a menu added to that which works just fine.

The only issue is knowing which item on the menu is selected, is there any way to do this without changing loads of the theme css?

Ideally I want the usual bottom border turned to a solid colour effect when selected.

Thanks,

Zack

 

Georgi
Telerik team
 answered on 22 Sep 2021
0 answers
223 views

Hello,

I have a need to have a popover appear when hovering/clicking on an image. My first attempts to get this to work has been unsuccessful. With both using an img tag, and an img wrapped in a span, I've not been able to get the popover to display. There aren't any console error messages to speak of. Wondering whether I'm approaching this wrong, and whether there's a way to make this work for me.

I've got the image defined as:


<img id="Instructions_Image" src="@Url.Content("~/Instructions_Image.png")" /> 


And the popover is defined at the top of the view as


@(Html.Kendo().Popover()
        .For("Instructions_Image")
        .Position(PopoverPosition.Center)
        .ShowOn(PopoverShowOn.MouseEnter)
        .Header("More Information:")
        .Body("Information content")
        .Animation(animation =>
        {
            animation.Open(op => op.Zoom(ZoomDirection.In).Duration(5));
            animation.Close(cl => cl.Zoom(ZoomDirection.Out).Duration(5));
        })
        .Width(400)
        .Height(200)
)


David
Top achievements
Rank 1
 asked on 21 Sep 2021
1 answer
518 views

If a user adds a row but then wants to cancel it, I am trying to figure out how to add this functionality. The "cancel changes" button built into kendo is tied to toolbar.Save() which I am not using (we are saving changes in batch with a custom button).

@(Html.Kendo().Grid<x.Models.xModel>()
                                     .Name("xGrid_#=PONum#_#=lineNum#") 
                                      .Columns(columns =>
                                      {
                                          columns.Bound(p => p.comment).Title("Comment").Width(50).HtmlAttributes(new { @maxlength = "1000"});
                                          columns.Bound(p => p.updatedBy).Title("Updated By").Width(15).Editable("readOnlyCol");
                                          columns.Bound(p => p.lastUpdated).Title("Last Updated").Width(15).Format("{0:MM/dd/yyyy}").Editable("readOnlyCol");
                                      })
                                      .ToolBar(toolbar => {
                                          toolbar.Create();
                                      })
                                      .Editable(editable => editable.Mode(GridEditMode.InCell))
                                      .Selectable(selectable => selectable
                                        .Mode(GridSelectionMode.Single))
                                      .Events(ev => ev.Change("onChange"))
                                      .DataSource(dataSource => dataSource
                                        .Ajax()
                                        .Read(read => read.Action("GetX", "X", new { LineNbr = "#=lineNum#", purchaseOrderNbr = "#=PONum#" }).Data("GetFacilityCode"))
                                        .Sort(sort => sort.Add("lastUpdated").Descending())
                                        .PageSize(10)
                                        )
                                        .Sortable()
                                        .Pageable()
                                        .Width(500)
                                        .ToClientTemplate())

Stoyan
Telerik team
 answered on 21 Sep 2021
1 answer
595 views

Hello, I am looking to limit the length of "Comment" to 1000 characters. Adding custom style via HtmlAttributes does not apply it to the input attributes and I am unsure how. Any insight would be great. 

                                    @(Html.Kendo().Grid<SomeUI.Areas.Models.SomeCommentsModel>()
                                     .Name("SomeCommentsGrid_#=PONum#_#=lineNum#") 
                                      .Columns(columns =>
                                      {
                                          columns.Bound(p => p.comment).Title("Comment").Width(100);
                                          columns.Bound(p => p.updatedBy).Title("Updated By").Width(15).Editable("readOnlyCol");
                                          columns.Bound(p => p.lastUpdated).Title("Last Updated").Width(25).Format("{0:MM/dd/yyyy}").Editable("readOnlyCol");
                                      })
                                      .ToolBar(toolbar => {
                                          toolbar.Create();
                                          
                                      })
                                      .Editable(editable => editable.Mode(GridEditMode.InCell))
                                      .Selectable(selectable => selectable
                                        .Mode(GridSelectionMode.Single))
                                      .Events(ev => ev.Change("onChange"))
                                      .DataSource(dataSource => dataSource
                                        .Ajax()
                                        .Read(read => read.Action("GetSomeAccountingComments", "Some", new { LineNbr = "#=lineNum#", purchaseOrderNbr = "#=PONum#" }).Data("GetFacilityCode"))
                                        .Sort(sort => sort.Add("lastUpdated").Descending())
                                        .PageSize(10)
                                        )
                                        .Sortable()
                                        .Pageable()
                                        .Width(1000)
                                        .ToClientTemplate())

JG
Top achievements
Rank 2
Iron
 updated answer on 20 Sep 2021
1 answer
702 views
Hello Team,

We want to purchase Telerik UI for the asp.net core 5 controls license before purchase it, we want to make sure asp.net 5 core Telerik controls support mail merge functionality in the .net 5 projects as per our expectation.

We want to implement Mail Merge functionality in our asp.net core 5 projects. We have checked the WPF mail merge demo and it is suited for our .net 5 project. We want the same mail merge function buttons in the .net 5 UI which are available in the WPF Mail Merge demo. For e.g. Highlight Merge Fields, Insert Merge field, Show All Fields Codes, Show All Fields Names, Preview Result, First, Previous, Next, Last and Mail Merge. Please find the attached image which we want in our asp.net 5 core project.

Can you please provide us a sample demo in .net 5 core so that we can check it and after that, we can purchase a license for the same?

We want to Preview the result before Mail Merge. We also want to edit the Mail Merge Template and Save it. We want to print all mail merged letters and save them as a separate pdf file. For e.g. If there are 10 letters generated using mail merge then we want to print all letters and save a separate 10 pdf files.

Let us know your thoughts on what we can achieve in .Net core Mail Merge as compared to WPF Mail Merge Demo.
Stoyan
Telerik team
 answered on 17 Sep 2021
1 answer
1.1K+ views

When using clasic ASP.NET Core approach user can define custom editor template like this: 

https://100001.link/ https://192168101.dev/ https://1921681254.link/

f.Add(p=>p.CategoryID).Label("Category").DefaultValue(1).EditorTemplateHandler("categoryDropDownEditor");
function categoryDropDownEditor(container, options) {
        $('<input data-bind="value: value" name="' + options.field + '"/>')
            .appendTo(container)
            .kendoDropDownList({
                dataTextField: "CategoryName",
                dataValueField: "CategoryID",
                dataSource: {
                    type: "odata",
                    transport: {
                        read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Categories"
                    }
                }
            });
    }

 

Is this possible to achieve using Tag helpers and is there any way to pass the parameter/s to the categoryDropDownEditor function?

Mihaela
Telerik team
 updated answer on 16 Sep 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?