Telerik Forums
Kendo UI for jQuery Forum
4 answers
474 views
I'd like to show the average attendance time in a line graph.
How can I feed the graph via javascript with these values (string or timestmap)?
I am sending an image with the type of graphic i want.
Can you help me?
Tsvetina
Telerik team
 answered on 25 Jan 2018
6 answers
2.0K+ views

Greetings - looking for a little help.

When I use ExcelExport.AllPages(false) everything works great and I get a download. However when I use AllPages(true) it doesn't do anything - no console errors - just no results. I can simply switch it back to false and works again so it has to be something with that setting. Here's a portion of my settings let me know if you meed more.

.DataSource(dataSource => dataSource

            .Ajax()
            .PageSize(20)
            .Read(read => read.Action("GetOrders", "SalesOrder").Data("toolbarValue"))
            .Sort(sort => sort.Add("LastChanged").Descending())
            .Events(e => e.Error("onError")))
        .Excel(excel => excel
            .FileName("soexport.xlsx")
            .ProxyURL(Url.Action("ExcelExport", "SalesOrder"))
            .AllPages(false))

Thanks!

Craig

Konstantin Dikov
Telerik team
 answered on 25 Jan 2018
1 answer
322 views

Hi Kendo folks,

In our implementation of kendo spreadsheet, we use datasource binding, and rely closely on kendo spreadsheet to notify datasource about changes to the sheets to keep data consistent. However, we noticed that undo command (whether triggered by undo button or ctrl+z) will not notify the datasource about this change. For example, cell A:1 - Y:1 are bind to values in datasource, and Z:1 is bind a sum property which totals the values bind to A:1 - Y:1. 

When user 

1. enter value 1 in cell A:1 (value 1 appears in Z:1)

2. undo (ctrl+z)

expected: value 0 in Z:1, actual: value 1 remains in Z:1.

We hope kendo can fix this; it feels inconsistent. Other operation such as paste can consistently synchronize with datasource, but the undo doesn't.

 

Below are a bit of our finding in kendo source code, and hope that could help :

On paste (ctrl+v), the paste function calls range to setSate, and then sheet.triggerChange to invoke the SheetDataSourceBinder._sheetChange function, who calls the Range.values function, which is responsible for binding with datasource. However, Range.values is invoked only if e.ref (range reference) is provided. When user triggers undo, undo function will also trigger range.setState() function, but setState function itself will trigger the _sheetChange function without reference information, causing it to skip Range.values function. We suggest the undo function to do the same thing as paste, after calling range().setState(), also triggerChange with range reference.

 

Currently

paste => range().setState() & triggerChange({... ref: ref}) => SheetDataSourceBinder._sheetChange => Range.values

undo => range().setState() => SheetDataSourceBinder._sheetChange (no ref provided, end)

Best,

 

Anna

 

Veselin Tsvetanov
Telerik team
 answered on 25 Jan 2018
2 answers
461 views

Hi, I have a listview that I use Jquery on to be able to have multi-select functionality by simply clicking the items, instead of needing to hold ctrl. When I attempt to gather the selected items using .select(), It implies that because selectable is undefined, that it can't find that information. This was previously a grid and it worked fine having the selectable property off and still using .select(). I also have another grid currently that applies the same functionality and it works. It seems to only be an issue with the listview. I can't set the selectable property to on because with my Jquery doing the selecting, it seems it doesn't know what to do to select and fails.

 

Here is my selection with Jquery:

$('#expensesView').delegate('.expense', 'click', function () {
        $(this).toggleClass('k-state-selected');
    })

 

The listView:

 

    $('#expensesView').kendoListView({
        dataSource: ExpensesDS,
        //selectable: "multiple",
        scrollable: "true",
        filterable: "true",
        height: 600,
        template: kendo.template($('#expenseTemplate').html())
    });

 

Method I'm using to get all the selected objects IDs:

 

    var listView = $('#expensesView').data('kendoListView');
    var ids = [];

    listView.select().each(function () {
        var dataItem = grid.dataItem($(this));
        ids.push(dataItem.expenseID);
    });

 

.select works fine on the grid without selectable being defined, but not in the listview. What should I do here?

 

Thanks!

Viktor Tachev
Telerik team
 answered on 24 Jan 2018
2 answers
101 views

Hello, the latest and greatest seems to have broken customizing actions.

You can see it on your demo page.

Clicking the custom icon there should pop up an alert but it doesn't

https://demos.telerik.com/kendo-ui/window/actions#

Joon-Sae
Top achievements
Rank 1
 answered on 24 Jan 2018
3 answers
1.3K+ views

Apologies if this is a known issue:

As of what appears to be Kendo UI 2017 R3 SP1, the horizontal scrollbar doesn't behave like it used to.  Using the following example:

http://dojo.telerik.com/@mcook103/UVetI

If I choose Kendo UI 2017 R3 from the Library dropdown, run the example, and click on the empty space to the right of the horizontal scrollbar, it moves to the far right of the grid with one click.

If I choose any version after Kendo UI 2017 R3 (including the latest 2018 R1 version), I have to click multiple times to get the scrollbar to move just a fraction of the grid's width.

I've tested this in IE and Opera browsers and found the same results.

Viktor Tachev
Telerik team
 answered on 24 Jan 2018
3 answers
97 views

Hello,

I'm having a problem with the kendo ui scheduler, if you multiselect multiple events with CTRL and then try to move them to another Resource, you are not moving the last one because to drag it you have to click&drag and then it gets deselected, the only way to move is holding CTRL then select all events except the last one and then drag the last one, is there a way to fix this behaviour?

Thank you in advance.

Ivan Danchev
Telerik team
 answered on 24 Jan 2018
3 answers
719 views

I'd like to use the calendar widget but what I need is to be able to highlight certain dates. I have a result set from SQL that returns pay dates. I want to highlight the paydates, which will ultimately act as a parameter when passed into another method to do other things.

How would I go about doing this?

Eduardo Serra
Telerik team
 answered on 23 Jan 2018
1 answer
180 views

Good morning! 

We have a form with100 date pickers on it and it is a cause of forced reflow because a lot of popup controls that attached to the body elements (see attached files). Is it possible to configure kendo data pickers to use the same popup element like jQuery UI Date Picker? Please note that we have the same issue for other types of contols like CKEditor, multiselects and so on. 

Viktor Tachev
Telerik team
 answered on 23 Jan 2018
6 answers
914 views

Hi All,

i am new to KendoGrid ,i am facing couple of issues while implementing teh requirement. Any pointers will be highly appreciated.

1)  In my grid i have couple of columns , column-1 ( checkbox) and column-2 ( amount/Numeric) . column-2 is non editable.  The requirement is if i click on column-1 ( checkbox) column-2  value should get replace/copied over from some other column (say column-n) . the problem is since its non-editable i am not able to update this column on checkbox click event. if i make column-2 as editable then its working fine. But requirement is prevent it from manual editing  should only be edited from column-1 checkbox click event .   do i need to call   editCell and closeCell in checkbox click event method as a workaround. 

 

2) How can i call validate event on column-2 , seems  we are updating the column via checkbox click event and not manually( dell edit) , so validation method is not invoked.

 

 

Konstantin Dikov
Telerik team
 answered on 23 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?