Telerik Forums
Kendo UI for jQuery Forum
1 answer
160 views
I own two fields beginning and end, when I update the first field I want the  to change the calendar start date that was entered in the field, this is possible?

Thank you
Vladimir Iliev
Telerik team
 answered on 05 Nov 2015
3 answers
1.0K+ views

I am using in-line editing of data in the kendo grid.  When I am editing a cell I want to do the following:

  1. Press Enter should commit the cell value and close the edit.
  2. Press Tab should commit the cell value and move to the next cell.
  3. Press Escape should cancel the cell change (and revert the value) and stop editing.

At the minute I've tried the following from bits online:

01.$(function () {
02. 
03.            $("#mygrid").keypress(function (e) {
04. 
05.                var keyCode = e.keyCode || e.which;
06.                if (keyCode == 13) {
07.                    debugger;
08.                    var grid = $("#mygrid").data("kendoGrid");
09.                    var curCell = grid.table.find(".k-edit-cell");
10.                    grid.saveRow();
11.                    grid.editCell(curCell.next()); // To move the cursor to the next cell and put the cell in edit mode
12.                    grid.select(curCell.next()); // To select the next cell
13.                    //grid.focus(curCell.next()); // To set focus on to next cell  
14.                    e.preventDefault(); // To prevent the default behavior of the enter key press
15.                }
16.            });
17.        });

I cannot see any method on how to accept the grid cell changes.

Any help on how to accomplish the above greatly appreciated.

Andez

Kiril Nikolov
Telerik team
 answered on 05 Nov 2015
1 answer
156 views

I've a very large grid, more then 1000 rows. The data is already downloaded from the server, so I create a datasource like this:

 

dataSource = new kendo.data.DataSource({

    data: this.slateData,

    group: this.slateGridGroups,

    filter: this.getNodeFilter() }

);

 

I use custom row templates, so it's very slow to load/reload the grid. When I initialize, filter or sort the grid, the browser will freeze for about 5 seconds.

 

I want to solve this problem by adding a pageSize parameter to the dataSource and make the gird option pagable = false, scrollable: { virtual: true}

However, if I use it in this way, I'm unable to load all the group header at the beginning. I need to keep scrolling down to get new group headers. This is not acceptable by our requirement.

 

How can I solve this problem?

T. Tsonev
Telerik team
 answered on 05 Nov 2015
5 answers
108 views

Hi,

Does the Kendo Ui grid support the following functionalities

1) Column hiding and Lazy load paging

2) Are all the functionalities(configuration options) mentioned in the demos and sample applications shown using Jquery present in angularjs implementation?

 

Regards

Rich

Kiril Nikolov
Telerik team
 answered on 05 Nov 2015
3 answers
634 views

Hi

I am charting data values (value axis) that are to be presented by Year (series) and Month (category axis).

I'm trying to create a chart that fills in missing values with zeros. My problem is that my data is based on dates and some years are missing the first months, other years are missing the last months and some years are missing months in between. I'm not sure how to make the chart fill correctly in to these missing values. In the following fiddle you can see that all series start at January but for example, the year 2014 only has months 5,6,9.

Can you explain if Kendo Chart is able to fill in or ignore these gaps and bind the months to the correct category axis.

http://jsfiddle.net/jokullie/4m977twr/

Thank you,
Baldvin

Iliana Dyankova
Telerik team
 answered on 05 Nov 2015
2 answers
276 views
Hi, are there any known issues with IE11 grid performance during row selection when 250+ records being displayed?  I can pull up the same page in Chrome and it's super quick even at 500 records, but in IE11 the grid is less responsive during selection event.  IE11 seems to show no delay during other events (paging, sorting, filtering).
Summit Insights
Top achievements
Rank 1
 answered on 05 Nov 2015
7 answers
265 views

Hi,

 I am currrently evaluating the TreeMap control. I am interested in using it in an AngularJS application. I could not find much documentation on the API. The following link leads to a 404 error. http://www.telerik.com/support/code-library/kendo-ui/treemap

 

Basically I would like to know if I customize the template of each cell. Rather than having only one label in each cell, could I have a few labels, each with different font and size?

Is there a click event? When a user clicks on a cell, I'd like that to be directed to another page.

I could only see a basic usage of the Treemap. Is there an advanced sample available?

Thanks,

Chris

Daniel
Telerik team
 answered on 04 Nov 2015
5 answers
838 views

I've been banging my head all day on this. I know you can open a window and then say have a button that when clicked opens another window from inside that.

See here for a demo: http://plnkr.co/edit/vl2VTi6EIXKcViwl1xae?p=preview

In my project however I am trying to do the same thing but instead of working as expected it is rendering the kendo windows inline (as if they are just divs with content in them).

 When I swap out the version of kendo I am using (v2015.3.930) with the version inside my plnkr (2014.2.716) my kendo-window divs are no longer rendered but they also still do not work.

 What could cause this behavior with the kendo-window components? Could angular-ui-router have anything to do with this? The initial kendo-window is being called from a nested (named) ui-view. The only other javascript libraries I am using are angular-toastr and angular-local-storage (of which I don't think either could be the culprit).

 

Dimo
Telerik team
 answered on 04 Nov 2015
7 answers
454 views
Hi,

I changed the AngularJS Snippet from your demo section so that i can display a dropdown in one column header.

My problem is, that the dropdown has no data. If there was data, how can i get the selected item (without using the change event from that dropdown)

Thanks for your help.


<!DOCTYPE html>
<html>
<head>
    <base href="http://demos.telerik.com/kendo-ui/grid/angular">
    <style>html { font-size: 12px; font-family: Arial, Helvetica, sans-serif; }</style>
    <title></title>
    <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.3.1316/styles/kendo.common.min.css" />
    <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.3.1316/styles/kendo.default.min.css" />
    <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.3.1316/styles/kendo.dataviz.min.css" />
    <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.3.1316/styles/kendo.dataviz.default.min.css" />

    <script src="http://cdn.kendostatic.com/2014.3.1316/js/jquery.min.js"></script>
    <script src="http://cdn.kendostatic.com/2014.3.1316/js/angular.min.js"></script>
    <script src="http://cdn.kendostatic.com/2014.3.1316/js/kendo.all.min.js"></script>
</head>
<body>
<div id="example" ng-app="KendoDemos">
    <div ng-controller="MyCtrl">
        <kendo-grid options="mainGridOptions" />
    </div>
</div>

<script>
    angular.module("KendoDemos", [ "kendo.directives" ])
        .controller("MyCtrl", function($scope){
      
      $scope.dropDownTemplateOptions = function(){
        return {
            dataSource: [
                        { text: "Black", value: "1" },
                        { text: "Orange", value: "2" },
                        { text: "Grey", value: "3" }
                    ],
            dataTextField: "text",
            dataValueField: "value"
        };
      };
      
            $scope.mainGridOptions = {
                dataSource: {
                    type: "odata",
                    transport: {
                        read: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Employees"
                    },
                    pageSize: 5,
                    serverPaging: true,
                    serverSorting: true
                },
                sortable: false,
                pageable: true,
                dataBound: function() {
                    this.expandRow(this.tbody.find("tr.k-master-row").first());
                },
                columns: [{
                    field: "FirstName",
                    title: "First Name",
                    width: "120px"
                    },{
                    field: "LastName",
                    title: "Last Name",
                    width: "120px"
                    },{
                    field: "Country",
                    width: "180px",
                   headerTemplate: '<select kendo-drop-down-list k-options="dropDownTemplateOptions">'
                    },{
                    field: "City",
                    width: "120px"
                    },{
                    field: "Title"
                }]
            };

            
      
      
        })
</script>


</body>
</html>

Aravind
Top achievements
Rank 1
 answered on 04 Nov 2015
8 answers
833 views
Hello Every one,

When We click the delete button it deletes the row on the fly. But it does not send any data by the transport.destroy {}  function to the server nor transport.destroy function to call delete action to remove from Database. How can I make it workable  (invoke deleteAction) through transport.destroy {} to delete data from server by {command : 'destroy' } Button?

For you convenience, here is my Code for your reviewing : 
===================================================

$("#grid").kendoGrid({                       
                        dataSource: {
                            type: "json",
                            serverPaging: true,
                            serverFiltering: false,
                            serverSorting: true,
                            batch: false,
                            pageSize: 10,
                            sort: { field: "image_date", dir: "desc" },
                            schema: {
                                data: 'data',
                                total: 'total',                           
                                model: {
                                    id: "image_file_name",
                                    fields: {
                                        image_field: { type: "string"/*, editable: false*/ },
                                        image_file_name: { type: "string" },
                                        image_file_size: { type: "numbers" },
                                        image_date: { type: "string" }
                                    }
                                }
                            },
                            error: function (e) {
                                 var json = jQuery.parseJSON(e.responseText);
                                 alert("An error has occured: " + json.Message);
                            },
                            transport: {                               
                                read: {
                                    type: "POST",
                                    dataType: "json",                               
                                     url: "<?php echo $this->url( array('module' => 'Portfolio','controller' => 'frontend', 'action'     => 'grid'), 'adminrout',    true) ?>",
                                    data : <?php echo $this->settings_json_info; ?>,
                                    complete: function(e) {
                                        //alert(e.responseText.toSource());                                       
                                    }
                                },
                                destroy: {
                                    type: "GET",
                                    dataType: "json",
                                    cache: false,
                                    url: "<?php echo $this->url( array('module' => 'Portfolio','controller' => 'frontend', 'action'     => 'delete'), 'adminrout',    true) ?>",
                                    data : <?php echo $this->settings_json_info; ?>,
                                    complete: function(e) {
                                        alert(e.responseText.toSource());
                                    }
                                },                               
                                 
                            }
                        },
                        selectable: "multiple",
                        change: OnChange,
                        height: 280,
                        filterable: true,
                        pageable: {
                            refresh: true,
                            pageSizes: true
                        },
                        scrollable:  {
                            virtual: true
                        },
                        sortable: true,
                        reorderable: true,
                        resizable: true,
                        columns: [                           
                            { field: "image_field", title: "Images", width: 50, template: '<img src="<?php echo $this->serverUrl().$this->baseUrl();  ?>/${ image_field }" height="60" />' },
                            { field: "image_file_name", title: "Name", width: 200},
                            { field: "image_file_size", title: "Size", width: 100},
                            { field: "image_date", title:"Date", width: 100},
                            { command: {
                                    name: "destroy",
                                    text: "Delete"
                              },
                              title: " ",
                              width: 100
                            }
                        ],                       
                        editable: { //disables the deletion functionality
                                 update: false,
                                 destroy: true
                              }
                    });   

According to the above code, the Delete Button does not invoke our PHP deleteAction() and i need your help.

 
Nikolay Rusev
Telerik team
 answered on 04 Nov 2015
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?