Telerik Forums
Kendo UI for jQuery Forum
1 answer
326 views

We have a Kendo UI Grid that we've also defined a custom Kendo UI ContextMenu on and now we need to add Copy and possibly Paste and Cut Functionality. The issue is that when you select some text, then right click and bring up the context menu, your selection becomes cleared when you click on the Context Menu li. Is there some work-around for this?

 

We are having to do some horribly ugly stuff of copying the selection on the Menu's Activate event, copy the selected text into a hidden control, and select that text and copy it to the clipboard if they choose copy on the menu. This all seems very clumsy and like a bad work around. Is there a better way of doing this? Why does the Kendo Context Menu clear the selection? Is there some way to prevent that?

Konstantin Dikov
Telerik team
 answered on 13 Apr 2016
1 answer
695 views

I have an angular definition for the KendoUI grid that is working perfectly except for no icons/graphics show on the grid. Here is the grid definition:

 

$scope.gridOptions = {
           toolbar: ["excel"],
           excel: {
               fileName: "Kendo UI Grid Export.xlsx",
               proxyURL: "//demos.telerik.com/kendo-ui/service/export",
               filterable: true,
               allPages: true
           },
           sortable: true,
           pageable: true,
           scrollable: true,
           filterable: {
               extra: false,
               operators: {
                   string: {
                       startswith: "Starts with",
                       eq: "Is equal to",
                       neq: "Is not equal to"
                   }
               }
           },
           resizable: true,
           columns: [
             { field: "accountPeriod", title: "Account Period", width: "150px" },
             { field: "site", title: "Site", width: "100px" },
             { field: "environment", title: "Environment", width: "200px" },
             { field: "complex", title: "Complex", width: "200px" },
             { field: "fundGroup", title: "Fund Group", width: "200px" },
             { field: "fund", title: "Fund", width: "100px" },
             { field: "fundCode", title: "Fund Code", width: "100px" },
             { field: "projectName", title: "Project Name", width: "300px" },
             { field: "frequency", title: "Frequency", width: "50px" },
             { field: "outputMedia", title: "Output Media", width: "150px" },
             { field: "revision", title: "Revision", width: "100px" },
             { field: "outputType", title: "Output Type", width: "100px" },
             { field: "comment", title: "Comment", width: "100px" },
             { field: "publishDateTime", title: "Publish Date/Time", width: "100px" },
             { field: "user", title: "User", width: "100px" },
             { field: "projectPageCount", title: "Project Page Count", width: "200px" },
             { field: "documentLink", title: "Document Link", width: "100px" }
           ]
       };

 

What files or css  do I need to show the graphics for filterable and the right and left arrows for pagination?

 

Helen
Telerik team
 answered on 13 Apr 2016
2 answers
135 views

Hello

I have the following problem - I need to synchronize a diagram with a search field / combo box, such that both will have the same datasource, and when selecting/searching, the diagram focuses on the correct shape. The problem is, as far as I understand it `diagram.bringIntoView` can only take shape, not the dataItem that is associated with it. 

If I have the shape I can get the shape.dataItem, but in the combo box I only have the data item. Is there a way to ask the diagram "give me the shape for this data item"? Or is the only solution to save every shape in say `visualTemplate`, when it is created? 

 

Thanks.

Itai
Top achievements
Rank 1
 answered on 13 Apr 2016
7 answers
272 views
I can't seem to get the filter working with dragdrop / angularjs.  Any help would be appreciated

I've tried:

<div class="container"  title="{{board.name}}" kendo-droptarget k-options='dropOptions' >

with these options:
function ($scope, $http) {
      $scope.dropOptions = {
          filter: ".divStatus",...
  }}

I've tried inline like:

<div class="container"  title="{{board.name}}" kendo-droptarget k-dragenter="onDragEnter" k-dragleave="onDragLeave"
            k-drop="onDrop" filter=".divStatus" >

I've tried k-filter and kendo-filter - not sure if I'm just using the wrong attribute name...

I've also tried copying this demo, http://demos.telerik.com/kendo-ui/dragdrop/angular and adding filter options to it but I can't get it to work.

I can't seem to find any documentation for this either.

Any ideas?
Pieter
Top achievements
Rank 1
 answered on 13 Apr 2016
1 answer
125 views

Is there an option in the layered layout to specify number of layer skips per connection? 

 

For example, I want to have a root node "1", connected to two nodes "2" and "3", but such that "3" appears lower than "2". This data should come from the connection dataItem. 

Is this at all possible, with the Diagram API, or with some other workaround? 

 

Thanks.

Daniel
Telerik team
 answered on 13 Apr 2016
5 answers
394 views

Hi,

I am trying to build a diagram with clickable html links inside the shapes.

I could not find a way to do this.

Please help.

Regards

Daniel
Telerik team
 answered on 13 Apr 2016
1 answer
115 views

  I need to stop undo and redo service (for prevent shapes and connections ) in kendo diagram using jquery or javascript  .
In my project , i was form some shape with connections during drag event in kendo Diagram(refer image 1).then press ctrl+z ,last formed connection is lossed(refer image 2).
so i need to stop this undo and redo service.


How to stop these service in kendo diagram using jquery or javascript ?

Konstantin Dikov
Telerik team
 answered on 13 Apr 2016
1 answer
175 views

Hi,

I need to use the kendo-ui grid with local data virtualization. And also, I need sorting functionality.

Your sample in Grid / Virtualization of local data shows 500.000 items in less than 1 second.

When I edit this sample in dojo (with adding 'sortable: true'), sorting the grid is resulting with nearly impossible scrolling (very slow).

Is there any acceptable way of using virtual scrolling (especially with local data) and sorting (and/or filtering) functionalities together?

Thanks.

Mahmut Zemheri

Konstantin Dikov
Telerik team
 answered on 13 Apr 2016
2 answers
317 views
I am trying to select an event from UI after unselecting it programmatically. Even though the event is shown as selected the change event is not getting triggered. Please see the code snippet for the same:

http://dojo.telerik.com/omUPU

Steps to replicate:

1.Open the developer tools to see the console.log messages.
2. Click on any event.
3. Now click on button'Reset all'. This will unselect any selected events.
4. Now try to select the same event as in Step 2.

The event gets selected in UI, however no change event console.log is seen.

Note: The change event will be triggered when selecting any event other than the one selected in Step 2.

How do I fix this issue?
Lloyd
Top achievements
Rank 1
 answered on 12 Apr 2016
1 answer
239 views

Hi,

I would like to have a private method that creates a Datasource to be used. This method can create a datasource either with a data object to send to the URL or one without a data object to send to the URL.

How can I go about achieving this?

 

   ChangeGridDataSource: function (newDatasourceUrl, gridName, dataToSend) {
            // Sets the grid to a new datasource and forces it to read
            var gridId;
            if (gridName[0] !== '#') {
                gridId = '#' + gridName;
            } else {
                gridId = gridName;
            }

            var newDataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: newDatasourceUrl,
                        type: 'POST',
                        dataType: 'JSON'
                    }
                },
                pageSize: 20,
                schema: {
                    model: {
                        fields: {
                            // the model fields have to specified that it is of a date type object.
                            dSECSYSTimeStampDate: { type: 'date' },
                            dExecutedDateValue: { type: 'date' },
                            dEffectiveDateValue: { type: 'date' }
                        }
                    },
                    data: 'Data',
                    parse: function (response) {
                        // This will parse the dates and transform it into the proper date format. This is done 
                        // after the date has been retrieved in a JSON format. This will allow the formatting of the dates
                        // to be done in the grids.
                        return Transactions.Methods.ParseDatesFromKendoGrid(response);
                    },
                    total: function (response) {
                        return response.Total;
                    }
                }
            });

            if (typeof dataToSend !== 'undefined') {
                // Does not seem to work.
                newDataSource.transport.read.data = dataToSend;
            }

            console.log(newDataSource);
            console.log(dataToSend);
            $(gridId).data('kendoGrid').setDataSource(newDataSource);
        },

 

I have the above and the line 'newDataSource.transport.read.data = dataToSend' doesn't seem to work for some reason. Is there a method that I can call or a different property that can be used to change a Data Object to send in side the data source?

Rosen
Telerik team
 answered on 12 Apr 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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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?