Telerik Forums
Kendo UI for jQuery Forum
11 answers
405 views
Hi,
I have a few issues right now which i cant seem to address. if anyone has any info or suggestions would be appreciated, thanks,

i am using batch editing, and so,...

1.) Is there a way to disable sorting while editing?

and

2.) Is there a way to load the grid in edit mode? users are having a tough time figuring out which columns are editable at first. i would like to have the behavior of when you click on an editable cell it renders differently... can i have that for all columns at once?

Thanks,

Rolando

Ivan Danchev
Telerik team
 answered on 13 Oct 2020
5 answers
264 views

Hello, 

I need a little help regarding pushUpdate function on my gantt widget. When my gantt has significant number of items in dataSource (cca 700) pushUpdate takes approx. 15 seconds to update. 

I can't use option to transform dataSource.data to array, insert/replace records, and then set it back, because I have multiple users working on same project, and I receive update notifications via webSocket, so frequency and number of updates can vary. Basically I don't have the time pocket where I can be sure that someone changes won't be overwritten, and specially because my gantt is being changed "from behind" because someone else changed project I am working on.

I am currently on Kendo UI version 2019. R3 (and have no chance to update it in next 2-3 months).

 

Thanks

Veselin Tsvetanov
Telerik team
 answered on 13 Oct 2020
3 answers
140 views
<div id="chart"></div>
<script>
$("#chart").kendoChart({
  categoryAxis: [{
    justified: true,
    categories: ["2012", "2013"]
  }],
  series: [
    { type: "line", data: [1, 2, 3] },
    { type: "bar", data: [1, 2, 3] }
  ]
});
</script>

 

What I'm trying to do here is I want to justify both line and bar chart so that there is no space in the beginning and also at the end. But I cannot use justify since categoryAxis.justified is only works with line chart. Is there any other option I can use to that both line and bar chart can justify.

Tsvetomir
Telerik team
 answered on 12 Oct 2020
3 answers
156 views

Hi, is there a way to remove the Update button from viewHtml? We want the user to be able to edit as they please until they select view as html. We only want them to view html as read only for information purposes. Thanks.

https://dojo.telerik.com/USEwEgis

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

    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2020.3.915/styles/kendo.default-v2.min.css"/>

    <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2020.3.915/js/kendo.all.min.js"></script>
</head>
<body>
  
<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  tools: [
    "bold", "italic", "underline",
                    {
                        name: "viewHtml",
                        tooltip: "View Html",
                    }
  ]
});
</script>
</body>
</html>

Martin
Telerik team
 answered on 12 Oct 2020
4 answers
299 views
Hello,
is it possible to drag more than one item from one list to another? or is this feature in planing?

For selecting more than 1 here is an angularjs example:

Angular Multiple Selection

combined with

Kendo linkedlist

Regards,
Sven
Alex Hajigeorgieva
Telerik team
 answered on 09 Oct 2020
1 answer
302 views

I have tried to left-align the overflow anchor of the ToolBar, which I achieved using css, specifically by setting ".k-overflow-anchor { right: auto; }".

That works fine, but the problem is that the popup is still aligned to the right side of the overflow anchor button, see attached image.

 

Petar
Telerik team
 answered on 09 Oct 2020
1 answer
2.1K+ views

Hi, is it possible to move the column name under the group header?

 var data = [
        { name: 'test1', age: 30 },
        { name: 'test2', age: 30 },
        { name: 'test3', age: 32 },
        { name: 'test4', age: 33 },
        { name: 'test5', age: 33 },
        { name: 'test6', age: 34 },
        { name: 'test7', age: 35 },
        { name: 'test8', age: 30 },
    ];

    $("#grid").kendoGrid({
        dataBound: function (e) {
            e.sender.table.find(".k-grouping-row:contains('Stock')").each(function (ind, item) {
                e.sender.collapseGroup($(item));
            })
        },
        dataSource: {
            data: data,
            group: [
                {
                    field: 'name', aggregates: [{
                        field: "name",
                        aggregate: "count"
                    }]
                }
            ]
        },
        height: 550,
        sortable: true,
        pageable: {
            refresh: true,
            pageSizes: true,
            buttonCount: 5
        },
        columns: [{ field: 'name',  groupHeaderTemplate: "#=value#" }, 
            {
            field: "age",
            title: "age",
            width: 240
        }]
    });

i want to move the column header below the group header.

 

Neli
Telerik team
 answered on 09 Oct 2020
1 answer
141 views

Chart section scroll on mobile device is not working

Eg, 

<div>

<div>Header</div>

<div>Content</div>

<div>Chart</div>

<div>Content</div>

<div>Footer</div>

<div/>

 

So the top header and content scroll on mobile but when chart div or section came then scroll is not working i can't scroll down also the left and right gutter space i can scroll down but not line chart div.

Alex Hajigeorgieva
Telerik team
 answered on 09 Oct 2020
5 answers
784 views
Hey Folks,

is it possible to achieve the same functionality that the grid component offers ( groupable header columns ) in the TreeList? The documentation does not mention something like that and i did not get it to work.

Is my only option to use the grid component with dynamic subgrids? 

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 08 Oct 2020
5 answers
4.6K+ views

 

Hello,

I have a grid and the data I receive is in string, even for my 2 date columns. I was able to change them in the preferred Date format, but I can't seem to get the filter and sorting working. 

I tried to change the datatype of the columns to datetime, but that was unsuccesfullI

I'm now looking for some help to create a custom filter (and sort) so that I can sort and filter my date columns the correct way.

It's a pretty complicated solution, but here's some of the code were I load my grid:

function loadGrid(userGridSettings) {
        var gridSettings = {
            selectable: "multiple row",
            sortable: true,
            filterable: true,
            pageable: {
                refresh: true,
                pageSizes: [10, 20, 50, 100],
                buttonCount: 5
            },
            resizable: true,
            columnMenu: true,
            toolbar: kendo.template($("#searchgrid-toolbar").html()),
            editable: "popup",
            reorderable: true,
            columnHide: saveState,
            columnShow: saveState,
            columnResize: saveState,
            columnReorder: saveState,
            columns: [{
                field: "IsSelected",
                title: null,
                sortable: false,
                filterable: false,
                width: 25,
                menu: false,
                reorderable: false
            }, {
                field: "BatchName",
                title: "Batchnaam",
                filterable: { multi: true }
            }, {
                field: "RequesterPartyRequired",
                title: "Kabelsel.",
                filterable: { multi: true }
            }, {
                field: "StartDate",
                title: "Plandatum start",
                type: "date",
                format: "{0: dd-MM-yyyy}",
                filterable: {
                    ui: function (element) {
                        element.kendoDatePicker({
                            format: '{0: dd-MM-yyyy}'
                        })
                    },
                    multi: false
                }
            }, {
                field: "EndDate",
                title: "Plandatum eind",
                type: "date",
                format: "{0: dd-MM-yyyy}",
                filterable: {
                    ui: function (element) {
                        element.kendoDatePicker({
                            format: '{0: dd-MM-yyyy}'
                        })
                    },
                    multi: false
                }
            }, {
                field: "ID",
                title: " ",
                filterable: false,
                sortable: false,
                width: 25,
                menu: false,
                reorderable: false
            }]
        };
 
        var customFields = [{
            field: "IsSelected",
            template: "<input type='checkbox' class='checkbox' #= IsSelected !== undefined && IsSelected ? checked='checked' : '' # />",
            headerTemplate: "<input type='checkbox' id='checkAll' />"
        },
        {
            field: "StartDate",
            filterable: {
                ui: function (element) {
                    element.kendoDatePicker({
                        format: '{0: d-M-yyyy}'
                    })
                },
                operators: {
                    string: {
                        eq: "Is gelijk aan",
                        neq: "Is niet gelijk aan"
                    }
                },
                multi: false
            },
            format: '{0: d-M-yyyy}'
        },
        {
            field: "EndDate",
            filterable: {
                ui: function (element) {
                    element.kendoDatePicker({
                        format: '{0: d-M-yyyy}'
                    })
                },
                operators: {
                    string: {
                        eq: "Is gelijk aan",
                        neq: "Is niet gelijk aan"
                    }
                },
                multi: false,
            },
            format: '{0: d-M-yyyy}'
        },
         
        {
            field: "ID",
            template: "#=actionTemplate(data)#"
        }];
 
        if (userGridSettings !== undefined && userGridSettings !== "" && userGridSettings !== null && JSON.stringify(userGridSettings) !== "{}") {
            gridSettings.columns = userGridSettings;
        }
 
        $.each(customFields, function (customFieldIndex, customField) {
            $.each(gridSettings.columns, function (columnIndex, column) {
                if (column.field == customField.field) {
                    if (customField.sortable) {
                        column.sortable = customField.sortable;
                    }
                    if (customField.template) {
                        column.template = customField.template;
                    }
                    if (customField.headerTemplate) {
                        column.headerTemplate = customField.headerTemplate;
                    }
                    if (customField.filterable) {
                        column.filterable = customField.filterable;
                    }
                }
            });
        });
 
        searchGrid = $("#searchGrid").kendoGrid(gridSettings).data("kendoGrid");
 
        searchGrid.thead.find("[data-field=IsSelected]>.k-header-column-menu").remove();
        searchGrid.thead.find("[data-field=ID]>.k-header-column-menu").remove();
}

 

 

 

Tsvetomir
Telerik team
 answered on 08 Oct 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?