Telerik Forums
Kendo UI for jQuery Forum
4 answers
336 views

Hello,

I'm trying to open dojo example for diagram intermediate connection points (http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram#configuration-connections.points). However it doesn't work for me (http://dojo.telerik.com/ozIno) as connection is still a straight line (screenshot2.jpg).

Could you please provide a working example of this feature?

Thank you,

Nick

Vessy
Telerik team
 answered on 12 Dec 2016
3 answers
109 views

Check the following scenario:

1. Go to the following example: http://dojo.telerik.com/uVInI

2. Add new row, enter its data, and click "Save"

3. Click "Cancel"

 

The new row which was the first one is now the last one. The "cancelChanges" should not affect the order of the new row

Alex Hajigeorgieva
Telerik team
 answered on 12 Dec 2016
2 answers
1.2K+ views
It is possible to customize or change de loading icon for Kendo Grid?
Ismael
Top achievements
Rank 1
 answered on 12 Dec 2016
1 answer
162 views
I created a sortable grid using this http://demos.telerik.com/kendo-ui/sortable/integration-grid example but wondering if there is keyboard shortcuts to drag and drop row selected in grid?
Stefan
Telerik team
 answered on 12 Dec 2016
3 answers
427 views

Hi All,

I'm using a ProgressBar for a very long running process. The problem is the bar is updated quite slowly. For instance, when I've processed all of the data items (I use fields to show processed and pending items), the progress bar is showing just a 50% advance. This is more noticeable for longer data sets.

I've set the update delay to 0 (no animation).

Is there anything else I can do to speed it up?

Thank you.

Dimiter Madjarov
Telerik team
 answered on 12 Dec 2016
6 answers
241 views
I have a date column in my grid defined as below:

LastLoginTime: { editable: false, type: "date" } // in the data source model
{ field: "LastLoginTime", title: "Last Login", filterable: false, format: "{0:dd/MMMM/yyyy}" } // in the columns collection of the grid


The date in the column displaysThe date in the column always displays as '/Date(1334652996959)/', the json value that comes back from the server. What's up here?
Rosen
Telerik team
 answered on 12 Dec 2016
1 answer
302 views

Hi,

We are facing scroll issue while we scroll outside the dropdown. We have attached video to understand the issue.

Following is the code to bind the dropdown and kendo grid:

 function bindKendoGrid() {
                $(_kendoGrid).kendoGrid({
                    dataSource: {
                        schema: {
                            model: {
                                fields: {
                                    CourseName: { type: "string", editable: true, validation: { required: true } },
                                    Score: { type: "number", defaultValue: 1, validation: { required: true, min: { value: 1, message: "The score must be between 1 to 100" }, max: { value: 100, message: "The score must be between 1 to 100" } } },
                                    CompletionDate: {
                                        type: "date", title: "Completion Date", validation: {
                                            required: { message: "Completion Date is required" },
                                            Datevalidation: function (input) {
                                                if (input.is("[name='CompletionDate']") && input.val() != "") {
                                                    input.attr("data-Datevalidation-msg", "Completion Date is not valid");
                                                    var date_regex = /^(([0-9])|([0-2][0-9])|([3][0-1]))\ (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\ \d{4}$/;
                                                    return date_regex.test(input.val());
                                                }

                                                return true;
                                            }
                                        }
                                    },
                                }
                            }
                        }
                    },
                    batch: true,
                    pageable: false,
                    height: 420,
                    scrollable: true,
                    toolbar: ["create"],
                    columns: [
                        { field: "CourseName", title: "COURSE NAME", width: "330px", editor: courseDropDownEditor, template: "#=CourseName#" },
                        { field: "Score", type: "number", title: "SCORE", width: 230, min: 1, max: 100 },
                        { field: "CompletionDate", title: "COMPLETION DATE", type: "date", width: 330, format: "{0:d MMM yyyy}" },
                        { command: ["destroy"], title: " ", width: 230 }],
                    editable: {
                        createAt: 'bottom'
                    },
                    dataBound: gridDataBound
                });
            }

function courseDropDownEditor(container, options) {
                $('<input name="Course Name" id="CourseName" required data-text-field="CourseName" data-value-field="CourseName" data-bind="value:' + options.field + '"/>')
                    .appendTo(container)
                    .kendoDropDownList({
                        autoBind: false,
                        dataTextField: "CourseName",
                        dataValueField: "CPETSCourseId",
                        //optionLabel: "-- Select Course Name --",
                        dataSource: _CourseList,
                        'open' : function (e)
                        {
                         
                        },
                        change: function (e) {
                            var selectedCourse = this.value();
                            var flag = false;
                            var cnt = 0;
                            var gridRowsLength = $(_kendoGrid).data("kendoGrid")._data.length;
                            for (var i = 0; i < gridRowsLength; i++) {
                                //if (gridRowsLength > 0 && i <= gridRowsLength - 1) {
                                var coursename = $(_kendoGrid).data("kendoGrid")._data[i].CourseName;
                                if (selectedCourse == coursename) {
                                    cnt = parseInt(cnt) + 1;
                                }
                            }
                            if (parseInt(cnt) > 1) {
                                this.value('');
                                alert("This course has already selected.");
                                return false;

                            }
                        }
                    });
            }

Dimiter Topalov
Telerik team
 answered on 12 Dec 2016
4 answers
720 views

This is a bizarre issue - I have a grid that works just fine locally for dev but once I publish it to our web server with IIS 7/8 (maybe?) it's not working in any browser. If you weren't go go back and check the data, it would appear as it's working. I receive no console errors, no issues while checking the network tab. When I put a breakpoint in the parametermap , I can clearly see the model data is there with the updated data. I haven't checked insert on the server yet but I can tell you that Update isn't working. I'm not using delete. Read has no issues.

The first part of my web api declaration for this action.

[HttpPost]
       [Route("Users/InsertUser")]
       public Int16 InsertUser([FromBody]IEnumerable<vw_Users_GetAll> model)

 

And the portion of code for the grid...

 

var crudServiceBaseUrl = getBaseURL(),
            dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: function (options) {
                            return crudServiceBaseUrl + 'api/Users';
                        },
                        dataType: "json",
                        type: 'GET',
                        contentType: 'application/json; charset=utf-8'
                    },
                    create: {
                        url: function (options) {
                            return crudServiceBaseUrl + 'Users/InsertUser';
                        },
                        dataType: "json",
                        type: 'POST',
                        contentType: 'application/json; charset=utf-8',
                        complete: function (e) {
                            ReloadUsersGrid();
                        }
 
                    },
                    update: {
                        url: function (options) {
                            return crudServiceBaseUrl + "Users/UpdateUser"
                        },
                        dataType: "json",
                        type: "PUT",
                        contentType: "application/json; charset=utf-8",
                        complete: function (e) {
                            ReloadUsersGrid();
                        }
                    },
                    parameterMap: function (options, operation) {
                        if (operation !== "read" && options.models) {
                                return kendo.stringify(options.models);
                        }
                    }
                },
                batch: true,

 

I don't understand how this can work locally but not on the server? Can someone please assist? Thanks.

Stefan
Telerik team
 answered on 12 Dec 2016
3 answers
108 views

I've have had created a custom view where that allows me to show non-sequential dates, date grouped by resources.  (see attached image).  

In the attachment I have 2 dates (12/7 and 12/9) and 2 resources (AU01, AU40).    In it's current version the columns are always the cross product of the dates x resources.  Eg.  12/7 has a column for au01, au40 and 12/9 has a column for au01, au40.

I would like to create a customized version where the columns where not necessarily always a cross product of the resource list.   For example I could provide the view with a date with specific resources for that date and the resource might be different on different dates.  

I might do something like 12/7 => (AU01, AU02) and then on 12/9 => (AU40, AU41).  This would give me 4 columnts displayed.  

From the research I've done it looks like I'll have to deal with the grouping and createLayout functions in the scheduler view but not really sure where to start.  Any direction or help anyone can provide would be greatly appreciated.

Thank you in advance, 

Bo Stewart

Veselin Tsvetanov
Telerik team
 answered on 12 Dec 2016
1 answer
136 views

 

Was playing around with a previous example... I'd like to generate the columns for the grid based on what is returned from a call to the server. 

 

For example, in the example below 

$scope.columns would not actually be hardcoded in the success() function, but rather be assigned to an object which has been returned in response

 

-Ed

 

 

 

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>Kendo UI Snippet</title>

    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.common.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.rtl.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.silver.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.mobile.all.min.css"/>

    <script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script src="http://kendo.cdn.telerik.com/2016.3.1028/js/angular.min.js"></script>
    <script src="http://kendo.cdn.telerik.com/2016.3.1028/js/kendo.all.min.js"></script>
</head>
<body>
  
<div ng-app="app" ng-controller="MyCtrl">
    <div kendo-grid k-options="gridOptions" k-ng-delay="gridOptions"></div>
 </div>
   <script>
      angular.module("app", ["kendo.directives"]).controller("MyCtrl", function($scope, $http) {
        $scope.columns=[ { field: "ProductID" }, { field: "ProductName" } ];
        $scope.gridOptions = {
          columns: $scope.columns,
          pageable: true,
          dataSource: {
            pageSize: 5,
            transport: {
              read: function (e) {
                $http.jsonp('http://demos.telerik.com/kendo-ui/service/Products?callback=JSON_CALLBACK')
                  .then(function success(response) {
                  $scope.columns=[{field: "ProductID"}];
                  
                  e.success(response.data)
                }, function error(response) {
                  alert('something went wrong')
                  console.log(response);
                })
              }
            }
          }
        }
      });
    </script>
</body>
</html>

Edward
Top achievements
Rank 1
 answered on 10 Dec 2016
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?