This is a migrated thread and some comments may be shown as answers.

Not all kendo controls working

6 Answers 282 Views
Map
This is a migrated thread and some comments may be shown as answers.
Anish
Top achievements
Rank 1
Anish asked on 08 Aug 2017, 09:33 AM

Hello Everyone,

I am facing problem in implementing the kendo alert functionality.

In my page I am using kendo grid which is working perfectly. But when I am trying to use kendo alert, javascript error comes "kendo.alert is not a function". Below is a part of the code.

kendo.ui.progress($('#myGridDiv'), true);
            $.ajax({
                url: '<%=ResolveUrl("~/ReportDataService.asmx/GetReportData") %>',
                data: "{'Office':'" + Office + "','Team':'" + Team + "','Client':'" + Client + "','FileNo':'" + FileNo + "','BillNo':'" + BillNo + "'}",
                type: "POST",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    if (data.d.length > 0) {
                        var grid = $('#myGridDiv').getKendoGrid();
                        grid.dataSource.data(data.d);
                        grid.refresh();
                    }
                    else {
                        kendo.alert('No results found. Displaying last searched results.');     //--> Error comes from here. If no record is found for the grid.
                    }
                    kendo.ui.progress($('#myGridDiv'), false);
                },
                error: function (error) {
                    alert("Error: " + JSON.stringify(error));
                    kendo.ui.progress($('#myGridDiv'), false);
                }
            });

The scripts that I am using are

<link rel="stylesheet" href="Styles/kendo.common.min.css" />
    <link rel="stylesheet" href="Styles/kendo.default.min.css" />
    <link rel="stylesheet" href="Styles/kendo.default.mobile.min.css" />
<script src="Scripts/jquery.min.js"></script>
    <script src="Scripts/jszip.min.js"></script>
    <script src="Scripts/kendo.all.min.js"></script>

Can somebody please help.

Thanks & Regards

6 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 10 Aug 2017, 05:40 AM
Hello Anish,

The described error can occur if the Kendo UI version is older than v2016.3.914. The used method kendo.alert is available since v2016.3.914.

If the application is using an older version, please check if updating it will resolve the issues.

If the error still occurs after an update, please send a runnable example reproducing the issue and I will gladly assist.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Anish
Top achievements
Rank 1
answered on 10 Aug 2017, 06:47 AM

Hi Stefan,

Thanks for your reply. After changing to v2017.2.621 kendo.alert is working perfectly.

One small css related issue is their. The filter icon of the grid is not coming properly. I have attached a screen shot of the header column where you can find it.

0
Anish
Top achievements
Rank 1
answered on 10 Aug 2017, 07:09 AM

Hey Stefan,

I solved the filter icon issue. Just have to put

filterable : {

     cell : {

showOperators : true,

}

}

0
Bala
Top achievements
Rank 1
answered on 16 Aug 2019, 12:03 PM

Hi Stefan

can we add kendo alert in 2016.2.504 version by adding required JS files in Scripts folder? If yes please let me know how. In my organization we need to use only 2016.2.504 but need to implement kendo alerts. 

Please let me know how

 

Thanks in advance

 

 

0
Bala
Top achievements
Rank 1
answered on 16 Aug 2019, 12:04 PM
Hi Stefan
can we add kendo alert in 2016.2.504 version by adding required JS files in Scripts folder? If yes please let me know how. In my organization we need to use only 2016.2.504 but need to implement kendo alerts. 
Please let me know how

Thanks in advance

0
Viktor Tachev
Telerik team
answered on 20 Aug 2019, 06:40 AM

Hello Bala,

 

I am afraid that including a feature or widget in older version of the components would not be trivial. Such modification can prevent the components from working as expected. 

 

In order to use Kendo Alert it is recommended to update the components. I suggest updating the widgets to the latest version as it includes the most recent features and improvements. The current release is 2019.2.619.

 

Regards, Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Map
Asked by
Anish
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Anish
Top achievements
Rank 1
Bala
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or