Telerik Forums
Kendo UI for jQuery Forum
1 answer
277 views

I am trying to create my first grid using Kendo UI. I am using the 'Basic usage' code snippet from your demo but unfortunately 'Customer Photo' and 'Page navigational buttons (First, Previous, Next and Last)' are not visible in Grid. Could you please help me?

I have created a new page in my Office 365 SharePoint site and inserted a 'Script Editor' web part. I have attached the snippet I used in the web part and also the resulting grid.

Stefan
Telerik team
 answered on 01 Feb 2018
5 answers
1.1K+ views

Hi,

I'm trying to load a grid with spaces in the datasource field name but there seems to be an error.

I saw that you guys fixed it 3 years ago here but it seems to have been reintroduced.

 

I couldn't figure out how to link from the Kendo UI Dojo so I copy pasta'd the code here:

    
Tan
Top achievements
Rank 1
 answered on 31 Jan 2018
5 answers
351 views
Hi,

We are using Telerik gantt chart and it is working fine. We have some following queries regarding to the gantt chart.

1.    We want to export gantt chart to pdf or png but due to the gantt chart's html structure we are not able to do that. Is there any way to export gantt chart to pdf or png?
2.    When data column section (left section) of the gantt chart have horizontal scroll bar but task graph section (right section) of the gantt chart does not have horizontal scroll bar that time last row does not show. so how can we show last row?

Bozhidar
Telerik team
 answered on 31 Jan 2018
7 answers
224 views
We have an MVVM read-only grid setup using Kendo UI version 2017.3.913 and is populated using a kendo datasource with a custom transport.read() function.

The grid is loaded for the first time and when a filter dialog is opened for a column you can see the appropriate checkbox values from the datasource's dataset.

However, if the datasource changes (and has new/changed/deleted values) and is re-read (ie. datasource.read()), if you click on the same column's filter, it will open a dialog with checkbox values from the original datasource dataset and not checkbox values from the new dataset. Any updates to the datasource (new/deleted values) are not reflected in the filter dialog checkbox value options. It looks as though the filter dialog gets populated from the datasource only on the initial time it is opened, and not after subsequent reads/refreshes of the datasource.

That seems like strange behavior.

As a workaround we could call a datasource.read() and then a grid.setDataSource(datasource), but that seems to be inefficient because you have to redraw the grid values twice, and it seems like it goes against the MVVM strategy.

Is there a way to call something to reinitialize the filter dialogs after a datasource.read() so we don't have to call a setDataSource() to force the filter dialogs to be refreshed when opened after a datasource.read()?

Or maybe this is resolved by a newer version of Kendo? It looks like the new version release on January 17th 2018 (2018.1.117) seems to have an enhancement related to the "DataSource component should be able to dynamically change and update the widget", but I don't know if that is applicable.

https://github.com/telerik/kendo-ui-core/issues/3674

?If any guidance can be provided that would be greatly appreciated! thanks!
Preslav
Telerik team
 answered on 30 Jan 2018
3 answers
393 views

Hi Team,

I would like to know how to do a popup edit for multiple rows by click of next or prev link in the same popup. So that end user able to edit multiple rows without closing the popup.

Thanks,

Jose

Tsvetina
Telerik team
 answered on 30 Jan 2018
2 answers
77 views

Hi,

I have a problem with opacity in Tabs on Mircosoft Edge. I use kendo UI in version (2017.3.1026), but it doesn't seem to work even on the latest version kendo.

When I changing the tab there is some kind of animation with opacity. But I don't know how I can disabled it.

On chrome everything works fine.

https://demos.telerik.com/aspnet-mvc/tabstrip

Can you help me fix it?

 

Best regards.

Pawel
Top achievements
Rank 1
 answered on 30 Jan 2018
1 answer
57 views

Hi

In the release notes of Kendo UI R1 2018 there is stated that the DataSource widget has a new functionality:

 

"NEW
DataSource component should be able to dynamically change and update the widget"

 

What does that mean? What is now possible, that hasn't been possible before?

 

Could you give a short information or (at best) a short code example that works with the current release but not with the release before?

 

Thanks in advance

Neli
Telerik team
 answered on 30 Jan 2018
1 answer
1.3K+ views

Hey gang - trying to figure out why my read method is getting called twice when a user hits the Search button specified in the template. It's calling this:

.Read(read => read.Action("GetOrders", "SalesOrder").Data("toolbarValue"))

2 times every time the Search is clicked. Any ideas?

Here's the full layout:

 @(Html.Kendo().Grid<SalesOrderSearchResultsViewModel>()
        .Name("Grid")
        .Columns(columns =>
        {
            columns.Bound(o => o.WarehouseOrderNumber).Title("SO Number").Width(150);
            columns.Command(command => command.Custom("Tracking").Click("getTracking")).Width(100).Title("Tracking");
            columns.Command(command => command.Custom("Serials").Click("getSerials")).Width(100).Title("Serials");
            columns.Bound(o => o.PONumber).Width(150);
            columns.Bound(o => o.EndUserPO).Width(150);
            columns.Bound(o => o.Status).Filterable(f => f.Extra(false).UI("statusFilter").Operators(o=>o.ForString(s=>s.Clear().Contains("Contains")))).Width(100);
            columns.Bound(o => o.DocTypeDesc).Width(150);
            columns.Bound(o => o.ShippingAddress.Name).Title("ShipTo Name").Width(150);
            columns.Bound(o => o.ShippingAddress.City).Width(150);
            columns.Bound(o => o.ShippingAddress.PostalCode).Width(130);
            columns.Bound(o => o.Total).Format("{0:c}").Width(100);
            columns.Bound(o => o.DateEntered).Title("Entered").Format("{0:MM/dd/yyyy}").Width(110);
            columns.Bound(o => o.LastChanged).Title("Changed").Format("{0:MM/dd/yyyy}").Width(110);
            columns.Command(command => command.Custom("Details").Click("getDetails")).Width(100);
        })
        .ToolBar(toolbar => toolbar.ClientTemplate("<text><div class='toolbar'><a role='button' class='k-button k-button-icontext k-grid-excel' href='test'><span class='k-icon k-i-file-excel'></span>Export to Excel</a><span class='core-lbl'>Search: </span><input type='text' name='search' class='k-textbox' id='toolBarInput'/><span class='core-lbl'>Type: </span><input id='searchType' style='width:200px' /><span class='core-lbl'>Start Date: </span> <input id='dpStartDate' title='Start Date' style='width: 130px' /> <span class='core-lbl'>End Date: </span><input id='dpEndDate' title='End Date' style='width: 130px;' />  <button class='k-button' onclick='search()'>Search</button></div></text>"))
        .Sortable()
        .Pageable(p => p.ButtonCount(5).PageSizes(new int[] { 20, 50, 100, 1000, 2000 }).Refresh(true))
        .Filterable()
        .Resizable(r => r.Columns(true))
        .ClientDetailTemplateId("template")
        .Scrollable(scr => scr.Height(800))
        .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))
        .Events(events => events
            .DataBound("onDataBound"))
    )

Thanks!

Craig

Viktor Tachev
Telerik team
 answered on 30 Jan 2018
1 answer
247 views

I have an issue using ListView, DataSource and Angular where transport is fully custom, e.g. transport update/create/read and delete are functions.

I used original plunkr  from https://demos.telerik.com/kendo-ui/listview/angular and added edit template, edit/cancel and update buttons.

transport.read method works as expected and returns original "product" array from the example however upon edit of the ProductName, transport.update is never executed and no error is thrown. I've added schema/model with id and other columns however it has no impact.

Please help

https://dojo.telerik.com/@sergpro/etuvac/6

Stefan
Telerik team
 answered on 30 Jan 2018
1 answer
110 views

Hi!

During our tests with the spreadsheet we noticed that when we import from excel and use a file that contains underlined cells, this specific formating is lost.
However no other formating seems to be lost and exporting kendo's spreadsheet with underlined cells work. This use case can be reproduced here https://dojo.telerik.com/IcoRol with the attached file.
Is this a known bug?

Thanks!

Neli
Telerik team
 answered on 30 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?