Telerik Forums
UI for ASP.NET MVC Forum
3 answers
404 views
How to get the grid's rows count ?My grid has data,but the code shows 0 row..
alert($('#Grid').data("kendoGrid").tbody.find('>tr.k-master-row').length);
Dimiter Madjarov
Telerik team
 answered on 12 May 2016
1 answer
158 views

Hi,

One of my grid .update  and .create action take a long time because he really has to do a lot of work in the background.

How can I force people to not pressing the update button more then ones?

Is it possible to disable the update button directly after the first time people click on it?

Thanks in advance

Maurice Lucas

Marin
Telerik team
 answered on 12 May 2016
1 answer
83 views

I have a spreadsheet with a date column based on a smalldatetime field in a SQL table.

The spreadsheet loads correctly and the column is displayed in date format but when I try to edit the date (before saving) I receive an error in

kendo.all.min.js stating that Object doesn't support property or method 'indexOf'

I have upgraded the project to the Q2 2016 release and still have the same issue.

Any help would be appreciated.

Alex Gyoshev
Telerik team
 answered on 12 May 2016
2 answers
217 views

I am new to Kendo and trying to create a custom nuget package for Kendo UI MVC 4 and 5 that only has the stuff I need. I have downloaded the Telerik.UI.for.AspNet.Mvc5.2016.2.504.nupkg package from this site to start as a base, but there are many files and many things.

I just want a nuget package that has  1) no localizations/culture specific things, 2) only has my custom theme I made with the themebuilder (attached .zip from that), which uses material as a base (I started with material and changed a few colors), 3) no source folder under content -> kendo -> 2016.2.504-source. 4) no .less, 5) no .ascx

So with those requirement what how can I make my own nuget package from that? What do I need to include to make it work?

Also why the MVC 5 web.config transformer using 5.1 when the most current version is 5.2.3? This will cause problem since the binding redirect only go up to 5.1.0.0 for MVC but my project has MVC 5.2.3?

T. Tsonev
Telerik team
 answered on 11 May 2016
3 answers
122 views

Hi,

I am currently calling e.preventDefault(); on the click of the Update button in the Add/Edit popup of the grid.

This prevents the closing and saving and thus allows me to perform an AJAX call to the server for additional validation. However, I don't know how I can execute the default action of the Update button after my verification was successful.

Any hints?

Danail Vasilev
Telerik team
 answered on 11 May 2016
2 answers
352 views

Hello

In a grid the filter icon is overlapping the column header, so that the title is not fully shown. Please see the screenshots attached.

My current workaround is to add multiple " " to the end of each title, but I think there must be a better solution. Setting the column width manually doesn't work either, the setting has no effect.

Am I doing something wrong?

Thank you for your answer!

Viktor Tachev
Telerik team
 answered on 11 May 2016
1 answer
159 views

http://demos.telerik.com/aspnet-mvc/scatter-charts/scatter-line

In the below code, they are binding multiple data sets to generate multiple scatter line series.

In a similar fashion how would I be able to generate multiple scatter line series by binding data in MVC

<p>.Series(series => {
            series.ScatterLine(new int[][] {
                    new [] {10, 10}, new [] {15, 20}, new [] {20, 25},
                    new [] {32, 40}, new [] {43, 50}, new [] {55, 60},
                    new [] {60, 70}, new [] {70, 80}, new [] {90, 100}
                })
                .Name("0.8C");
             
            series.ScatterLine(new int[][] {
                    new [] {10, 40}, new [] {17, 50}, new [] {18, 70},
                    new [] {35, 90}, new [] {47, 95}, new [] {60, 100}
                })
                .Name("1.6C");
 
            series.ScatterLine(new int[][] {
                    new [] {10, 70}, new [] {13, 90}, new [] {25, 100}
                })
                .Name("3.1C");
        })</p>

Stamo Gochev
Telerik team
 answered on 11 May 2016
3 answers
151 views
Hello,

I am trying to set the default view of the scheduler to show the Business Hours by default

My scheduler is built with Razor. I found a section in the documentation which says you can do showWorkHours : true, this is in the javascript version.
I also found an example somewhere that says you should be able to do something like : 

.Views(views =>
                                                {
                                                    views.DayView();
                                                    views.WeekView(weekView => weekView.Selected(true)).ShowWorkHours();
                                                    views.MonthView();
                                                    views.AgendaView();
                                                })

However this doesn't work, it tells me ShowWorkHours is not defined.
So, what am I missing ?

I am using version 2013.2.918


Rosen
Telerik team
 answered on 11 May 2016
3 answers
824 views

Hi,

i'm currently sat here into the third hour of Telerik updating to Q2 MVC, VS2015 remaining unresponsive.  I've been looking at the files that are being updated and the vast majority appear to be localization/cultures files. I notice that on my production webserver there are also a large number of localization files.

My application is a EN-GB app and will always be so and will never have any need for localization.  Is there a way to remove all this unnecessary functionality and the time it takes to do an update (I realise this is largely due to VS being somewhat slow in this regard)?

Yana
Telerik team
 answered on 09 May 2016
1 answer
156 views

In my grid I have a details template that has input fields bound to a model.

I want to enable the inline-edit mode of a grid ONLY when a user has a details list open and starts typing in an input filed. I tried the below method, but in order to enable the mode i need to call grid.editRow(grid.select()) twice, which makes no sense. Also, after the second editRow is called, i lose focus on the textbox i was typing in:

// Detect input keyin event
        $('body').on('input', '.k-detail-cell .form-control:enabled', function () {
            var grid = $(this)
                        .parents('.k-grid')
                        .data("kendoGrid");

            // enable inline editing once typing has begun
            if ($(".k-grid-edit-row").length <= 0) {
                //grid.editRow(grid.select());
                //grid.editRow(grid.select());
            }
        });

Kostadin
Telerik team
 answered on 09 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?