Telerik Forums
Kendo UI for jQuery Forum
0 answers
220 views

Hello
We are just starting to use Kendo Grids in our Angular JS application. We are currently using Angular 1.2x and we should migrating to 1.3x and above very soon. We are trying to figure out a solution for the watchers being created when we use the Kendo Directive.

Here is a snippet of the HTML that is being generated by the grid. It is creating ng-bind for each cell, even if the grid is readonly. We looked through the code and it looks we can estimate the watch count as row X columns (So a grid with 30 columns and 2000 rows would generate 6000 watchers). Is there a way to use bindonce or one time watches (1.3x and above) through a configuration setting?

<tr class="k-alt ng-scope" data-uid="f919f1b6-6f33-4a5a-9606-8a17eef4a108" role="row">
   <td role="gridcell"><span ng-bind="dataItem.Category" class="ng-binding">Category Not Defined</span></td>
   <td role="gridcell"><span ng-bind="dataItem.SubCategory" class="ng-binding">Report Type Not Defined</span></td>
   <td role="gridcell"><span ng-bind="dataItem.Description" class="ng-binding">Fuel Economy</span></td>
   <td role="gridcell">
      <div class="wh-grid-name-link as-link" data-row="1">View Report</div>
   </td>
   <td role="gridcell"><span ng-bind="dataItem.Schedule" class="ng-binding">Yearly | November 17th | Every 1 months</span></td>
   <td role="gridcell">Multiple Recipient</td>
</tr>


Looks like this question has been asked before (http://www.telerik.com/forums/improve-angularjs-performance-for-read-only-grids) and the solution was to use jQuery code. Can Kendo create a native solution that allows us to solve this issue without using jQuery?

Thanks, Kalyan

Kalyan
Top achievements
Rank 1
 asked on 31 Mar 2016
1 answer
326 views

Is there a way to restrict the user to select a single event only? I am looking for something along the lines of Kendo Grid selection configuration

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-selectable

Kendo Scheduler selectable configuration allows the user to select multiple events for a particular resource but not across resources. 

Will the support for this be added in the future?

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 31 Mar 2016
1 answer
529 views
Hi..

I'm getting issue while exporting kendo grid data to PDF with more than 2000 records.I'm configuring default all Pages to true.

 Is there anything to avoid this issue.
Dimiter Madjarov
Telerik team
 answered on 31 Mar 2016
4 answers
285 views

I need to make a diagram in which some connections are a different color, according to connection data.  For example, I may have this as connections datasource: 

 

[
  {from: 1, to: 2, type: 1},
  {from: 1, to: 3, type: 2},
  {from: 2, to: 4, type: 1}
]

The resulting diagram should have connections with one stroke color (black) for the connections from 1 to 2 and 2 to 4, and a different stroke color (red) for the connections from 1 to 3 (as it is a different type). 

 

I tried looking for something similar to `shapeDefaults.visual`, but it appears `connectionDefaults` only has this option for the content (text of the connection?), and not the stroke. 

 

Is there a way to customize the stroke color (and preferably also dash) according to the connection data?

 

Thanks. 

Vessy
Telerik team
 answered on 31 Mar 2016
1 answer
1.4K+ views
In my grid i have enabled virtual scrolling and server side paging. but as i was scrolling i noticed sometimes when i scroll its not sending a new request to grab new data even if its reached page size. I think its because of catching of data. I tried to set catch property to false in my ajax call but it didnt fix my issue. I was wondering how this can be done. does Kendo can provide us with a functionality?
var dataSource = {
    transport: {
        read: function (options) {
            var success = function (response) {
                options.success(response);
            };
 
            var error = function (xhr, status, error) {
                Ember.Logger.error('Fail response: ' + xhr.responseText + ' (status=' + xhr.status + ' ' + error + ')');
            };
            _this.get('PopulateGridData')(gridUrl, success, error, options.data, 'POST', true, true);
        },
    },
    pageSize: gridPageSize,
    schema: gridSchema,
    serverPaging: true,
    serverSorting: true,
    serverGrouping: true,
    serverFiltering: true,
};
 
var gridOptions = {
    dataSource: dataSource,
    columns: gridColumns,
    editable: gridEditable,
    pageable: {
        refresh: true,
        numeric: false,
        previousNext: false,
    },
    height: gridHeight,
    scrollable: {
        virtual: true,
    },
    groupable: true,
    filterable: true,            
};
 
var grid = Ember.$("#kendo-grid").kendoGrid(gridOptions).data('kendoGrid');
 
_this.set('kendoGrid', grid);
Dimiter Topalov
Telerik team
 answered on 31 Mar 2016
1 answer
215 views

Hi,

 

I'm filtering my grid by using passing in a function to the operator like this:

 

dataSource.filter({
    operator: setFilter
    }
})

var setFilter = function(item) {

// iterate each item and return true or false if item matches value

}

 

this works perfectly and returns the correct view.  However, I need access to the filters applied.  Calling dataSource.filter().filters is returning empty object {}.  Can you help please?

Boyan Dimitrov
Telerik team
 answered on 31 Mar 2016
1 answer
1.1K+ views

When I call grid.setOptions I get the error message "Custom commands should have name specified".

This is the saved options (localStorage) I try to set:

{"prefix":"","name":"Grid","columns":[{"encoded":true,"hidden":true,"field":"id","title":"Id","width":90,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"3c3652ad-0b29-4fa3-babb-b34fd703b64d","style":"display:none"}},{"encoded":true,"field":"task","title":"Task","headerAttributes":{"id":"9f9c5a17-e285-4781-9bd6-8a7c2dfd93af"}},{"encoded":true,"hidden":true,"field":"description","title":"Description","attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"7e36d3a8-ec2c-4617-b409-5066a88273c7","style":"display:none"}},{"encoded":true,"hidden":true,"field":"files","title":"Files","attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"b10e9159-5a0d-4550-93fd-19c1a8099465","style":"display:none"}},{"encoded":true,"title":"Period (Deadline)","minScreenWidth":768,"headerAttributes":{"id":"ee717db3-5d7a-489a-b0b0-e4db29586ccb"}},{"encoded":true,"hidden":true,"field":"begin","title":"Start","format":"{0:dd-MMM-yyyy}","width":100,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"e2e6910e-41e3-4a0e-b836-2fd0c7bc075e","style":"display:none"}},{"encoded":true,"hidden":true,"field":"end","title":"End","format":"{0:dd-MMM-yyyy}","width":100,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"b1ba8653-8c31-4509-b971-41d12cc4781f","style":"display:none"}},{"encoded":true,"hidden":true,"field":"deadline","title":"Deadline","format":"{0:dd-MMM-yyyy}","width":100,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"6c6fd996-856a-4cd5-873e-854b77c70f06","style":"display:none"}},{"encoded":true,"hidden":true,"field":"category","title":"Category","filterable":{"multi":true},"width":150,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"ebfa68db-a58d-4374-8142-b7f00deac354","style":"display:none"}},{"encoded":true,"hidden":true,"field":"storeLocation","title":"Store location","filterable":{"multi":true},"width":150,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"cabd1bfd-f059-4746-b2e2-8e1f13b15d20","style":"display:none"}},{"encoded":true,"hidden":true,"field":"checklist","title":"Checklist","filterable":{"multi":true},"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"618147df-a971-4771-bfe6-c3ca64b4cc8b","style":"display:none"}},{"encoded":true,"hidden":true,"field":"manager","title":"Manager","filterable":{"multi":true},"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"43337326-6f60-4669-9068-30116a33de62","style":"display:none"}},{"encoded":true,"hidden":true,"field":"respType","title":"Responsibility","filterable":{"multi":true},"width":150,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"3e76bba2-a39a-482f-bc67-89646c93fc31","style":"display:none"}},{"encoded":true,"hidden":true,"field":"purpose","title":"Purpose","filterable":{"multi":true},"width":150,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"0554ea78-d6ff-44a7-996c-d8849a81a7e7","style":"display:none"}},{"encoded":true,"hidden":true,"field":"active","title":"Active","width":90,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"a0947002-b6a6-4501-9bf7-a226ecffcead","style":"display:none"}},{"encoded":true,"hidden":true,"field":"storeCount","title":"Stores","width":90,"attributes":{"style":"display:none"},"footerAttributes":{"style":"display:none"},"headerAttributes":{"id":"95955092-27eb-4ba0-8a80-63366e49711a","style":"display:none"}}],"toolbar":[{}],"autoBind":true,"filterable":true,"scrollable":true,"sortable":true,"selectable":false,"allowCopy":false,"navigatable":false,"pageable":{"refresh":true,"buttonCount":3,"pageSizes":[10,25,50,100],"messages":{"empty":"","display":"{0}-{1} / {2}","itemsPerPage":""}},"editable":false,"groupable":false,"rowTemplate":"","altRowTemplate":"","noRecords":{"template":"<span class='ise-grid-empty'>No data</span>"},"dataSource":{"data":null,"schema":{"model":{"fields":{"id":{"type":"number"},"task":{"type":"string"},"begin":{"type":"date"},"end":{"type":"date"},"deadline":{"type":"date"},"category":{"type":"string"},"storeLocation":{"type":"string"},"checklistId":{"type":"number"},"checklist":{"type":"string"},"completedCount":{"type":"number"},"storeCount":{"type":"number"},"active":{"type":"boolean"},"managerId":{"type":"number"},"manager":{"type":"string"},"respTypeId":{"type":"number"},"respType":{"type":"string"},"respShort":{"type":"string"},"description":{"type":"string"},"purposeId":{"type":"number"},"purpose":{"type":"string"},"isPast":{"type":"boolean"},"isCurrent":{"type":"boolean"},"isFuture":{"type":"boolean"}}}},"offlineStorage":null,"serverSorting":false,"serverPaging":false,"serverFiltering":false,"serverGrouping":false,"serverAggregates":false,"batch":false,"transport":{"read":{"type":"POST","url":"/System/GetTasks","dataType":"json","contentType":"application/json; charset=utf-8"},"dataSource":null},"sort":[{"field":"begin","dir":"asc"}],"pageSize":10,"page":1,"group":[]},"height":null,"resizable":true,"reorderable":false,"columnMenu":{"sortable":false},"detailTemplate":null,"columnResizeHandleWidth":3,"mobile":"","messages":{"editable":{"cancelDelete":"Cancel","confirmation":"Are you sure you want to delete this record?","confirmDelete":"Delete"},"commands":{"create":"Add new record","cancel":"Cancel changes","save":"Save changes","destroy":"Delete","edit":"Edit","update":"Update","canceledit":"Cancel","excel":"Export to Excel","pdf":"Export to PDF"},"noRecords":"No records available."},"excel":{"proxyURL":"","allPages":false,"filterable":false,"fileName":"Export.xlsx"},"pdf":{"fileName":"Export.pdf","proxyURL":"","paperSize":"auto","allPages":false,"landscape":false,"margin":null,"title":null,"author":null,"subject":null,"keywords":null,"creator":"Kendo UI PDF Generator v.2016.1.322","date":null}}

 

 

 

Rosen
Telerik team
 answered on 31 Mar 2016
1 answer
355 views

Hi All,

I'm currently trialing KendoUI  Professional for a project. Particularly I'm interested in the Diagram component however there are two critical elements I would like to customize.

I would like to make the connectors custom shapes. For example I would like certain shapes that can be connected to each other (based on business rules) to have unique connector shapes to make it clear to the user which shapes can be connected. At the moment there seems to be no way to do this out of the box (I acknowledge I can do colors though).

I would also like to make connections, curved/splines as per this feature request: 
http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/6589127-diagram-connection-line-styling

I am pretty confident in my ability to add these modifications once I purchase a license and gain access to the Diagram source code however I'm wondering if anyone has has any experience trying to modify Diagram and whether these two customizations are realistic possibilities. Otherwise I may have to make something from scratch with SnapSVG or similar.

Just a tad worried about purchasing a license and then realizing that I can't get the desired result anyway.

Cheers

Chris 

 

 

Daniel
Telerik team
 answered on 31 Mar 2016
2 answers
685 views

Hi. I'm trying to use the ng-if or ng-show tags within a custom column template. Unfortunately there seems to be no effect when I change the underlying variable.

gridColumns.push({
    field: currentField.FieldName.replace(/ /g, "_"),
    title: currentField.FieldName,
    template: function (dataItem) {
        return $scope.sampleNameTemplate(dataItem);
    }
                         
    //,locked: true
    , width: 250
    , editor: $scope.textBoxCmtEditor
});

 

$scope.showQaQcSamplesEnabled = function () {
    return $scope.showQaQcSamples;
};

In my grid there is no change regardless of what the $scope.showQaQcSamples variable is set to.

 

Any idea how I can get ng-if or ng-show to work correctly within a custom column template?

 

Thanks,

Ian

Radoslav
Telerik team
 answered on 31 Mar 2016
1 answer
336 views

I'm trying to get a grid with a date field that must have a value. I have set the schema field validation to "required: true", but the grid still happily saved with nothing in the date field. 

How to I get the grid to disallow saving if there is no value in the date field? (I don't need to set a range for the date, just make sure it is there). 

 

Here is my attempt: http://dojo.telerik.com/aWAxO/2

Boyan Dimitrov
Telerik team
 answered on 31 Mar 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?