Telerik Forums
Kendo UI for jQuery Forum
1 answer
247 views

Hi,

I am trying to save and restore settings of table header in kendo treelist. Is there a way to persist treelist as we can do in Knedo Grid (below link shows the example how to persist grid)?

https://demos.telerik.com/kendo-ui/grid/persist-state

 

As we dont have getOptions and setOptions in Kendo treelist, how can we achieve this feature?

Thanks,

Ramesh

Nikolay
Telerik team
 answered on 21 May 2020
3 answers
170 views

Hi, I try to make dropdownlist create less "DOM" components to keep our app fast, even with lots of dropdown loaded with 100-1000 items.

So, I found that simple quick solution that works very well, I filter data on open / close to release "dom" items when I don't need them.

But, I have an issue when I apply a "contains" search.

Look at this

https://dojo.telerik.com/@foxontherock/OciGurUy/3

Open the combo, search for "trois" using the dropdown search box, then select it.

You will see, the combo re-opens, immediately when I apply the filter on the "filterOnValue" function.

If I don't set any "contains" search, it works well.

*** may I suggest to use that "DOM-trick" using filter on open-close the default behavior for all your components?  We plan to use it in dropdown, treeview, ...

We tried using "virtual", but there's too my bugs with it it never works as expected and it's too complicated. 

Misho
Telerik team
 answered on 21 May 2020
1 answer
547 views

hi Kendo UI team,

here is the description of my problem.

Requirement : I need to plot Trendline and Standard deviation lines on a Scatter Chart. 

Problems : 

I tried to achieve this using kendo.draw.Path to draw Trendline and SD lines

But the problem is

  1. kendo.draw.Path considers whole canvas as the plottable area with top-left corner as origin (0,0)
  2. Scatter chart has origin at left-bottom with some margin based on axis labels
  3. I could not figure out the mapping between chart coordinates & path coordinates 

Questions:

  1. How to get the boundaries of Chart Area in coordinates?
  2. How to get mapping between Charts data points and Path w.r.t. coordinates? i.e. the x,y coordinates of  the data (1023, 3250) is (150, 320)

The data for Scatter Chart varies from decimal points to 1000s (on both the axes) based on the user selection. Hence knowing the mapping between the actual coordinates and the data points only solves the problem.

 

thanks,

Srinivas

 

Viktor Tachev
Telerik team
 answered on 21 May 2020
7 answers
206 views

Hi and happy new year!

 

I have strange behaviour on my gantt datasource occurring when read request returns error 500. (i am stuck with specific endpoint which returns 500 instead of 404 when requested item is not found).

- I instantiate gantt widget and set all required options and datasource(s).
- Under read request specific project id is passed to the server. 
- Server responds with 500 and I catch it with error: function (e) {
return myErrorHandler(e, $scope); }, //Handler basically reads error and displays adequate message
- Gantt is rendered but it is empty as expected.

- I use my project selector and chose another ID that 100% exists. 
- I reset my datasource using new ID and use gantt.setDataSource to update gantt.
- Data is read from the server, no error.
- Schema: Parse is completed successfully with data. But no dataBound or anything else happens after and widget gets stuck on loading spinning wheel and doesn't populate data.

If first step is performed with correct ID (no error) widget is rendered correctly and then second step (opening other project) is working perfectly fine.

I tried with sync, refresh, read afterwards on the widget, but no success. I tried commenting out error handling implemented, but also no success.

I suspect error caught does something specific to the datasource and/or widget, but I cannot figured it out.

Any help/suggestion is more than welcome.

Thank you and regards,

Vedad

Petar
Telerik team
 answered on 20 May 2020
1 answer
1.1K+ views

Hello, I am going to build a dashboard and am thinking about using a listview(or multiple) to house widgets/partial views.  I will store the users config in the db so I would like to fetch that and load the widgets dynamically into a kendo listview.  Is that possible?  Any code samples out there?  Is there a better way to do this.  Just trying not to code it all manually and trying to take advantage of drag and drop, sorting/etc...

 

Thanks

Alex Hajigeorgieva
Telerik team
 answered on 20 May 2020
6 answers
127 views
I have data that returns a date as a string in the format of yyyymmdd (e.g. 20200112). I need to display this on the X axis of a kendo line chart as yyyy-mm-dd (2020-01-12). How would I do that? I tried in the model but got various parse errors. 
Vessy
Telerik team
 answered on 20 May 2020
2 answers
157 views

We are evaluating the Kendo UI Component for product, and have a requirement to display the MultiViewCalendar control with month range selection

Based on the documentation tried with the following option and I am unable to select the range of the month

Dojo link 

<div id="multiViewCalendar"></div>
<script>
    $("#multiViewCalendar").kendoMultiViewCalendar({
        views: 1,
        start: "year",
        depth: "year",
        selectable: "range"       
    });
</script>

 

Could you please help me on this?

VIJAY
Top achievements
Rank 1
 answered on 19 May 2020
1 answer
856 views

     Hi Telerik,

 

Can I set default Sort and Paging in FileManager?
I was try with code but It's not working:

 

<!DOCTYPE html>
<html>
<head>
    <style>
        html {
            font-size: 14px;
            font-family: Arial, Helvetica, sans-serif;
        }
    </style>
    <title></title>
    <script src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
</head>
<body>
    <div id="example">
        <div id="filemanager"></div>
 
        <script>
            $("#filemanager").kendoFileManager({
                initialView: 'grid',
                views: {
                    grid: {
                        // kendoGrid options
                        pageable: {
                            pageSize: 2
                        }
                    }
                },
                dataSource: {
                    schema: kendo.data.schemas.filemanager,
                    sort: {
                        field: 'createdUtc',
                        dir: 'desc'
                    }, // => not working
                    transport: {
                        read: {
                            url: "/kendo-ui/service/FileManager/Read",
                            method: "POST"
                        },
                        create: {
                            url: "/kendo-ui/service/FileManager/Create",
                            method: "POST"
                        },
                        update: {
                            url: "/kendo-ui/service/FileManager/Update",
                            method: "POST"
                        },
                        destroy: {
                            url: "/kendo-ui/service/FileManager/Destroy",
                            method: "POST"
                        }
                    },
                    pageSize: 2,
                    //serverPaging: true,
                },
                uploadUrl: "/kendo-ui/service/FileManager/Upload",
                toolbar: {
                    items: [{
                            name: "createFolder"
                        },
                        {
                            name: "upload"
                        },
                        //{ name: "sortDirection" },
                        //{ name: "sortField" },
                        {
                            name: "changeView"
                        },
                        {
                            name: "spacer"
                        },
                        {
                            name: "details"
                        },
                        {
                            name: "search"
                        }
                    ]
                },
                contextMenu: {
                    items: [{
                            name: "rename"
                        },
                        {
                            name: "delete"
                        }
                    ]
                },
                draggable: true,
                resizable: true
            });
 
            $(document).ready(function () {
                var filemanager = $("#filemanager").getKendoFileManager();
 
                filemanager.executeCommand({
                    command: "TogglePaneCommand",
                    options: {
                        type: "preview"
                    }
                });
                filemanager.toolbar.fileManagerDetailsToggle.switchInstance.toggle();
            })
        </script>
    </div>
</body>
</html>
Aleksandar
Telerik team
 answered on 19 May 2020
4 answers
899 views

I am seeing an issue with tables that seems to be related to HTML that is loaded into the editor from another source, and I hope you can clarify if this is how it should work, or if I need to process the HTML in some way.

The steps to recreate this issue are as follows:

1. Create some html outside of Kendo with a table that has styling (borders, backgrounds, etc., we are using the RadRichTextBox WPF editor).

2. Load this html into the Kendo editor.

3. In the Kendo editor, add a new table below the original table by selecting the grid control and dragging to get the rows/columns desired.

At the point the new table is added, the original table loses all styling (see attached images).

After investigating this issue, I found that there is a class associated to a table when the table is created within the Kendo editor.  The class is "k-table".  When this class is not present from html outside of the editor, the issue seems to be happening.  Also, I noticed that if I create the second table using the Table Wizard button at the bottom of the grid control, the styling is not removed from the first table.  Only when using the grid drag does it happen.

Is this something that you can fix, or are we required to insert the k-table class to get around this issue?

Thanks for your help, and let me know if you need more information.

Ivan Danchev
Telerik team
 answered on 19 May 2020
1 answer
324 views

Fiddle: https://jsfiddle.net/avnsri4986/e7nfrj9h/3/

 

Stack Trace: 

Uncaught SyntaxError: Unexpected number
    at Function (<anonymous>)
    at getter (kendo.all.js:2127)
    at Object.<anonymous> (kendo.all.js:6550)
    at each (jquery.min.js:2)
    at new init (kendo.all.js:6537)
    at new init (kendo.all.js:6888)
    at Function.de.create (kendo.all.js:9179)
    at init._dataSource (kendo.all.js:67457)
    at new init (kendo.all.js:63291)
    at HTMLDivElement.<anonymous> (kendo.all.js:2517)
Silviya Stoyanova
Telerik team
 answered on 19 May 2020
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
AICodingAssistant
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?