Telerik Forums
Kendo UI for jQuery Forum
6 answers
153 views

Hello,

Some problem with move by mouse in "Bar Charts / Pan and zoom" when use kendoSortable

https://dojo.telerik.com/ApavImA

How do i must use it together?

Alexander
Top achievements
Rank 1
 answered on 28 Mar 2019
1 answer
234 views

I use a Kendo Sortable in 3 different places in my app. It has always worked flawlessly for me however recently I upgraded to Kendo 2019.1.115 and ONE of the kendo sortables has stopped working correctly.  I know the issue isnt kendoSortable since its working fine elsewhere. 

 

Here is the behavior I have seen. Before the drag begins this is what I have

https://screencast.com/t/Ov6mXlaqKw

Now if I drag Chilly to below Fresh Lemon I end up with the following

https://screencast.com/t/8UDK6LKmANK

The item that was dragged appears twice at the end of the list. I wrote out the source in the change event and it is correct. It shows 

https://screencast.com/t/JTcjSE7aj80h

As you can see the data is correct. The problem is that the kendoSortable isnt showing what is in the data model.

Here is my code and template:

<script type="text/x-kendo-tmpl" id="tmplMenuOptionsGroupRow">
    <div class="d-flex optionRow">
        <div class="pl-2 col-1">
            <i class="fal fa-arrows fa-2x dragHandler"></i>
        </div>
        <div class="col-5 modifierDesc">
            <input name="optionDesc" class="form-control k-textbox k-input-lg"
                data-bind="value: description, disabled:legacy, events:{change: editorModel.menuOptionGroup.onMenuItemOptionsGroupChange}" />
        </div>
        <div class="col-4 optionPrice dragHide">
            <input class="k-input-lg" data-role="numerictextbox"
                data-format="c"
                data-min="0"
                data-format="c2"
                data-spinners=false
                data-bind="value:price, disabled:legacy, events:{change: editorModel.menuOptionGroup.onMenuItemOptionsGroupChange}" />
                 
        </div>
        <div class="dragHide optionDelete col-1" >
            <button type="button" class="btn btn-danger btn-sm" data-bind="click:editorModel.menuOptionGroup.deleteOption, disabled:legacy"><i class="fal fal fa-trash-alt"></i>
            </button>
        </div>
    </div>
</script>

 

$("#optionGroupItems").kendoSortable({
    cursor: "move",
    holdToDrag: false,
    autoScroll: true,
    ignore: 'input, button',
    handler: '.dragHandler',
    // move: function (e) {
    //     console.log('moving');
    // },
    placeholder: function (element) {
        console.log("placeholder");
        return element.clone().css({
            "opacity": 0.3,
            "border": "1px dashed #000000"
        });
    },
    hint: function (element) {
        return null;
 
    },
    change: function (e) {
        console.log('drop/change');
 
        var oldIndex = e.oldIndex;
        var targetIndex = e.newIndex;
 
        console.log('BEFORE Update');
        _.each(self.editorModel.menuOptionGroup.options, function(anOption){
            console.log(anOption.description);
        });
 
        self.editorModel.menuOptionGroup.options.splice(targetIndex, 0, self.editorModel.menuOptionGroup.options.splice(oldIndex, 1)[0]);
        //after the splice
        console.log("");
        console.log('AFTER Update');
        _.each(self.editorModel.menuOptionGroup.options, function(anOption){
            console.log(anOption.description);
        });
         
        // console.log(self.editorModel.menuOptionGroup.options);
    }
});

 

 

 

 

 

Alon
Top achievements
Rank 1
Veteran
 answered on 28 Mar 2019
1 answer
141 views

Hi,

Are there any hard or soft limits on maximum number of rows/columns?  I'd expect performance to degrade at some point, especially when sorting and filtering, just curious if there are known limits as to what those might be.

 

Ivan Danchev
Telerik team
 answered on 27 Mar 2019
4 answers
133 views

Hi,

 

Seems many links in "how to " sections are broken, like : https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Editing/using-mutiselect-editor-for-comma-separated-string

Alwas getting to knowledge base, mostly unusable.

Please advise.

Thank you.

 

Best regards,

Laurent.

Viktor Tachev
Telerik team
 answered on 27 Mar 2019
5 answers
2.2K+ views

Hello,

 

In order to preserve editing mode in the grid after a server side error, I use the methode explain here : http://blog.codebeastie.com/kendo-grid-error-handling/

It seems to work, but after an error, if the user modify the data in the grid and save again, the same data (before modifications) are send again to the server.

I'm using inline editing and MVVM.

 

The data source :

var remoteDataSourceContrats = new kendo.data.DataSource({               
    transport: {
        read: ...,
        update: ...,
        create: ...,
        destroy: ...
    },
    error: function(e) {
 
        console.log(e);
         
        $('#listeContrats').data('kendoGrid').one("dataBinding", function (x) {
            x.preventDefault();
        });  
    },
    batch: false,
    pageSize: 20,
    schema: {
        data: "contrats",
        model: ...
            }
        }
    }
});

 

The error response :

{ "errors": ["Erreur de modification"] }

 

What am I doing wrong ?

 

Etienne

 

Konstantin Dikov
Telerik team
 answered on 27 Mar 2019
1 answer
415 views

I have a grid which contains an adres ticket, some adresses contain a special character like ' 

When I want to get the data from the item when I click an icon on the record, I don't get the correct data:

This is my javascript to load the grid (it is placed in a div)

function loadConnectionsGrid() {
        connectionsGrid = $("#connectionsGrid").kendoGrid({
            selectable: "row",
            filterable: true,
            pageable: {
                refresh: true,
                pageSizes: [10, 20, 50, 100],
                buttonCount: 5
            },
            resizable: true,
            columnMenu: true,
            sortable: true,
            reorderable: true,
            columns: [{
                field: "EAN",
                title: "EAN",
                width: "140px"
            }, {
                field: "Discipline",
                title: "Discipline",
                filterable: { multi: true },
                width: '100px'
            }, {
                field: "StreetName",
                title: "Straat"
            }, {
                field: "PostalCode",
                title: "Postcode",
                width: '100px'
            }, {
                field: "BuildingNumber",
                title: "Huisnummer",
                width: '100px'
            }, {
                field: "BuildingNumberSuffix",
                title: "Toevoeging",
                width: '100px'
            }, {
                encoded: true,
                field: "CityName",
                title: "Plaats",
                width: "140px"
            }, {
                title: "&nbsp;",
                template: "#=selectAddressAction(data)#",
                width: '25px'
            }]
        }).data("kendoGrid");
    }

In my case it's about column Cityname (I already tries encoded: true as you can see)

When I click the icon on the record this function fires: 

 function initializeCreateConnectionModal(e) {

        $("#btn-create-and-assign").show();
        $("#btn-create-case").show();
        $("#createConnectionModal-success").hide();
        $("#createConnectionModal-error").hide();

        enexis.services.tablerecords.getData({ Tables: [{ Name: "ANL001" }] }, getAanleidingCallback);

        var item = $(e.relatedTarget).data('item');
        loadSelectedConnectionsGridData(item);
    }

 

 When I'm trying to get the item (the bold line) In this case I don't get an object with the data like Screenshot01.png

But I get a string (Screenshot02.png)

 

 

Alex Hajigeorgieva
Telerik team
 answered on 27 Mar 2019
7 answers
172 views
It would be great if there would be an IRC Channel for Community support as well since sometimes it can be way quicker than the forums. No idea how to manage subforums in IRC though ;) But for the community it would be really cool.
Konstantin Dikov
Telerik team
 answered on 27 Mar 2019
2 answers
268 views

Hello,

I'm using Kendo JQuery Scheduler inside an Angular application and I have a problem with the native drag&drop when I specify a small eventHeight on the views.

On the code bellow, there is a problem when eventHeight is 20px.

01.this.kendoScheduler = kendo.jQuery(this.kendoSchedulerEl.nativeElement).kendoScheduler({
02.      date: new Date(),
03.      startTime: this.dayStartDateTime,
04.      endTime: this.dayEndDateTime,
05.      allDaySlot: false,
06.      views: [
07.        {
08.          type: 'timeline',
09.          title: translate['COMMON.CALENDAR.DAY'],
10.          eventHeight: this.eventHeight,
11.          columnWidth: this.dayColumnWidth
12.        },

Browser: Chrome

To be more specific, with eventHeight=20px, when I drag an event (see attached file) bellow the first 20 pixels of the target cell td, a tooltip appears and dropping the event doesn't trigger the datasource update event. I must drop it inside the first 20 pixels to make drag&drop work.

Do you know what could have gone wrong ?

Regards,

Nicolas

Nicolas
Top achievements
Rank 1
 answered on 26 Mar 2019
8 answers
753 views
When double clicking on a day in the month view of the scheduler, the editor will show a default start and end date with time 0:00
I would like so set these to a specific time value where end date is the same as the start date and the time is set from start 9:00 - end 17:00.

I tried this using the add and edit events but it does not work. If I set the time in the edit event, the datetime picker still shows 0:00 but when I click the dropdown has selected the set time (in this case 9:00). I'm not able to set the end date the same as the start date.

Please advise.
Veselin Tsvetanov
Telerik team
 answered on 26 Mar 2019
10 answers
864 views

Good day!

I have a context menu that is appearing when you right-click tree view nodes. Now the option in the context menu and its sub-menu is dependent with the node type.

My problem is, when I hover an option with a sub-menu, it always display the sub-menu to the left side of its parent and its being cutoff by the screen border. I tried different configuration for 'direction', 'orientation', 'popupCollision' and I can't seem to solve this issue.

In the attached file, I want to show the sub-menu on where the red rectangle is.

$('#nav_tree_menu').kendoContextMenu({
    target: "#nav_tree",
    filter: 'span.k-in',               
    alignToAnchor: true,                           
    select: function(e) {
        // nodeData (src), item (target)
        ...
        ...
    },
    open: function(e) {                
        if ($(e.item).is("li")) {                      
            return;
        }
 
        var node = $(e.target);
        var nodeData = treeView.dataItem(node);                
 
        ...
        // this is where the options based on the node "type"
 
        this.setOptions({
            dataSource: options                    
        });                    
    }
});

 

Thank you!

Ollie dG.

 

Ivan Danchev
Telerik team
 answered on 26 Mar 2019
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?