Telerik Forums
UI for ASP.NET Core Forum
0 answers
72 views
look the attachment,my computer screen is 2K DPI.
wu
Top achievements
Rank 1
Veteran
 asked on 14 Feb 2020
0 answers
115 views

My computer screen is 14 inch, 2560x1440, when open the pdf file in AspNet core PDFViewer,

the font is fuzzy .

At the same time, the all FileDialog's font is fuzzy .

wu
Top achievements
Rank 1
Veteran
 asked on 14 Feb 2020
3 answers
139 views

 

Is there a way to do this in code?

Thanks … Ed

 

Ivan Danchev
Telerik team
 answered on 14 Feb 2020
2 answers
329 views

I am trying to start a Asp.Net.Core 3.1 core project.  I used the default Grid based project template.  That all went off without a hitch.  The default template delivers a workable starting project.

I then attempted to add my first view.  Right clicked on item, selected "add VIew".  The system responds with the message: "There was an error running the selected code generator:  The local source "C:\Program Files (x86)\Progress\Telerik UI for ASP.NET Core R3 2019\wrappers\aspnetcore\Binaries\AspNet.Core" does not exist.

The message is accurate as the referenced path does not exist.  My system has Telerik UI for ASP.NET Core R1 2020 not the referenced R3 2019 folder.

To the best of my knowledge my project has no reference other than 2020 versions.  Effectively I am blocked from adding a view via the "add View" option.  If I knew where that reference was I might be able to correct things.

Anyone have any ideas on what I am forgetting to do?  I have tried all the options, partial view, use or do not use layout pages, reference or do not reference script pages, no option works.

 

 

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 13 Feb 2020
2 answers
2.3K+ views

I have a external popup tempate that is called from a button on the grid. 

@model CIPHRChecks.Models.Order;
<div class="k-content popup-content">
    <text><input data-bind="value: Service.Name" /></text>  

    @foreach (var item in Model.Service.ServiceAdditionalData)
    {
    <p>@item.DisplayName</p>
    }
</div>

When I run the page it fails to load the Kendo Grid and I get the jscript error "Unexpected "</body>" or end of file. All open elements should be closed before the end of the document." This happens with any reference to the Model.

There is nothing wrong with the data provided to the grid. It has the collection I want to iterate through. The intellisense for Model.Service.ServiceAdditionalData all works.

Am I not supposed to use 'Foreach with Kendo or reference the model in this way. Should I use some other method to iterate through the collection and reference the data.

 

 

Tsvetomir
Telerik team
 answered on 13 Feb 2020
8 answers
1.3K+ views

Hi

this JsFiddle Demo change this javascript line ( if (event.keyCode == 13) ) to ( if (event.keyCode == 40) ) 

then changes does not made after pressing down key arrow on keyboard.

i need help.

Thanx

NoobMaster
Top achievements
Rank 2
Iron
 answered on 13 Feb 2020
5 answers
322 views

     I get the following error in the browser console when exporting to excel from the ASP.NET core spreadsheet control.   This only happens on certain spreadsheet files and I am not sure what is causing it.  Is there a way to get a more detailed error message?

 

kendo.all.js:12691 Uncaught TypeError: Cannot read property 'target' of undefined
    at kendo.all.js:12691
    at Array.map (<anonymous>)
    at init.drawingsXML (kendo.all.js:12685)
    at o.toZIP (kendo.all.js:13063)
    at o.toBlob (kendo.all.js:13159)
    at r (kendo.all.js:136510)
    at kendo.all.js:136498
    at XMLHttpRequest.n.onload (kendo.all.js:135962)
(anonymous) @ kendo.all.js:12691
drawingsXML @ kendo.all.js:12685
toZIP @ kendo.all.js:13063
toBlob @ kendo.all.js:13159
r @ kendo.all.js:136510
(anonymous) @ kendo.all.js:136498
n.onload @ kendo.all.js:135962
kendo.all.js:12691 Uncaught TypeError: Cannot read property 'target' of undefined
    at kendo.all.js:12691
    at Array.map (<anonymous>)
    at init.drawingsXML (kendo.all.js:12685)
    at o.toZIP (kendo.all.js:13063)
    at o.toBlob (kendo.all.js:13159)
    at r (kendo.all.js:136510)
    at kendo.all.js:136498
    at XMLHttpRequest.n.onload (kendo.all.js:135962)
(anonymous) @ kendo.all.js:12691
drawingsXML @ kendo.all.js:12685
toZIP @ kendo.all.js:13063
toBlob @ kendo.all.js:13159
r @ kendo.all.js:136510
(anonymous) @ kendo.all.js:136498
n.onload @ kendo.all.js:135962

 

Veselin Tsvetanov
Telerik team
 answered on 12 Feb 2020
4 answers
707 views

kendo grid In asp.net core project 

how to Hide column DateResult 

i have 

columns.ForeignKey(p => p.result, (System.Collections.IEnumerable)ViewData["Result"], "id", "Name").Title("Result");

columns.bound(c =>c.DateResult) in my Grid 

and there is three type of result ViewData(agree - disagree -Inprogress)

If the user select disagree  I want to hide the DateResult 

Note

popup editor 

thanks 

 
Tsvetomir
Telerik team
 answered on 12 Feb 2020
1 answer
1.6K+ views

This is driving me nuts. I have a drop-down that onChange sends a query for the grid's data. I can see in my debugger that it is hitting my method in my controller and can see that the query actually returns rows but I get nothing showing up in the grid.

And before you ask, I did the camel-case serializer fix that is described many times over in these threads

 

 .AddJsonOptions(options => {
                    options.SerializerSettings.ContractResolver = new DefaultContractResolver();

                });

 

but it didn't help. I verified that the json looks correct by hitting the controller method directly and the fields are in PascalCase. I dumbed the grid down as much as possible to try to troubleshoot but no luck and I get no errors in my js console. Help! Here's my code

 

  @(Html.Kendo().Grid<Data.Model.Client>()
                .Name("grid")
                .Columns(columns => {
                    columns.Bound(e => e.ClientID);
                    columns.Bound(e => e.ClientName);
                    columns.Bound(e => e.ClientStatus);
    
                })
                .Sortable()
                .Pageable()
                .Scrollable()
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(10)
                    .Read(read => read.Action("GetClients", "Home")
                    .Data("filterGrid"))
                )
                
            )
            <script>
                function filterGrid() {
                    return {
                        stateId: $("#ddlStates").val()
                    };
                }
    
               
        </script>

Nikolay
Telerik team
 answered on 12 Feb 2020
1 answer
105 views

Hi,

I am using a custom popup template to add and edit rows on the grid. I can add and modify rows just fine and everything stores to the db the way it's supposed to.

However, I am finding that if I:

1: add a new row via the template

2. hit save,

3. come back to the main grid from the popup template.

4. immediately hit the EDIT button and go back to the template and correct a mistake.

5. hit the save button on the template.

when this sequence is followed the OnPostCreate gets called intead of OnPostUpdate.

It's like it never got out of edit mode.

If I refresh the grid by navigating someplace else and coming back all the data is correct. It's only in this rare instance.

Any ideas?

Thanks … Ed

 

 

Alex Hajigeorgieva
Telerik team
 answered on 11 Feb 2020
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?