Telerik Forums
Kendo UI for jQuery Forum
5 answers
415 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
256 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
422 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
99 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
73 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
272 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
140 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
2 answers
157 views

I'm trying to get a treeview to just fill available space in the browser window. Meaning the vertical scrollbar on the treeview should be displayed and the vertical scrollbar on the browser window should not. I am using flexbox and it works perfectly in Firefox and Edge, but the TreeView overwrites my footer in Chrome and the entire TreeView is shown. Any help would be appreciated. I don't understand why the difference in functionality between the browsers. I would have expected Chrome and Firefox to behave the same.

<style>
 
        html,
        body {
            height: 100%;
            margin: 10px;
            padding:0;
        }
 
        .box {
            display: flex;
            flex-flow: column;
            height: 100%;
        }
 
            .box .row {
                border: 1px dotted grey;
            }
 
                .box .row.header {
                    -webkit-flex: 0 1 auto;
                    -ms-flex: 0 1 auto;
                    flex: 0 1 auto;
                }
 
                .box .row.content {
                    -webkit-flex: 1 1 auto;
                    -ms-flex: 1 1 auto;
                    flex: 1 1 auto;
                }
 
                .box .row.footer {
                    -webkit-flex: 0 0 40px;
                    -ms-flex: 0 0 40px;
                    flex: 0 0 40px;
                }
 
 
 
 
        /*
                  Use the DejaVu Sans font for display and embedding in the PDF file.
                  The standard PDF fonts have no support for Unicode characters.
              */
        .k-treelist {
            font-family: "DejaVu Sans", "Arial", sans-serif;
            font-size: .9em;
            height: 98%;
        }
    </style>
</head>
<body>
    <div class="box">
            <div class="row header"><h1 class="text-center">Component Configuration Report</h1></div>
            <div class="col-md-12 pull-left row content">
                <span id="popupNotification"></span>
                <div id="treelist" class="row content"></div>
            </div>
            <div class="row footer">
                <p>footer</p>
            </div>
 
        </div>
David
Top achievements
Rank 1
 answered on 29 Jan 2018
5 answers
2.2K+ views

I would like to create a validation message only for dropdownlist.

I'd like to get the text value of label.

label is parent of kendo dropdownlist

var custom = function(input){
    if(input.is("[data-role=dropdownlist]")){
        if(Utils.isNullOrUndefined(input[0].value) || input[0].value.length === 0){
            return true;
        }
        return input.data("kendoDropDownList").value();
    }
    return true;
    }
 
    rules.custom = custom;
    messages.custom = function(input){
        "Insert" + input.closest("label").text()
    }
         
    var validator = {
        validate: function(){
            $(".k-invalid:first").focus();
        },
        rules: rules,
        messages: messages
    };
     
    return $("#form1").kendoValidator(validator).data("kendoValidator");

 

This solution doesn't work

 

 

 

Ivan Danchev
Telerik team
 answered on 26 Jan 2018
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
ContextMenu
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
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?