Telerik Forums
Kendo UI for jQuery Forum
1 answer
165 views

Say I create a new surface:

var surface = draw.Surface.create($("#surface"));

 

Now in a different part of the program I want get that existing surface.  In other kendo widgets I can do for example $("#surface").data("kendoGrid")

 

but I can't seem to figure out how to do the same thing with a drawing surface.

Ivan Danchev
Telerik team
 answered on 06 Jun 2017
2 answers
3.7K+ views
Is it possible to have multiple header rows like the following attached image?

Thanks,
Dimo
Telerik team
 answered on 06 Jun 2017
2 answers
94 views

I was using the MVC Sample app to build our usage of the TreeMap, and we couldn't get the Color Range to work on the map like is shown in this demo

MVC TreeMap Demo

Then we dug through the JS samples and realized the color range was set as an option in the sample. I believe the MVC sample could use this to improve the user experience of starting with code that looks like what is shown. 

.Colors(color =>
{
    color.AddRange("#0072c6", "#cbe2f3");
    color.AddRange("#5db2ff", "#deeffe");
    color.AddRange("#ff8f32", "#cbe7d0");
    color.AddRange("#82ba00", "#e5f0cb");
    color.AddRange("#ff8f32", "#fee8d5");
    color.AddRange("#9e0a61", "#eccedf");
    color.AddRange("#ac193d", "#eed0d7");
})

Thank you

NerdBrick
Top achievements
Rank 1
 answered on 05 Jun 2017
8 answers
331 views

Hello,

We've found out browsers cannot handle more than about 4,000 rows, so we are enabling server pagination. We have the following configuration:

01.var newDs = new kendo.data.DataSource({
02.    transport: {
03.        // read: gridLoadCall
04.        read: function (options) {
05.            gridLoadCall += "&page=" + options.data.page + "&pageSize=" + options.data.pageSize
06.            $.ajax({
07.                url: gridLoadCall,
08.                datatType: "json",
09.                success: function (result) {
10.                    options.success(result);
11.                },
12.                error: function (result) {
13.                    options.error(result);
14.                }
15.            });
16.        },
17.    },
18.    update: function (e) { return true; },
19.    serverPaging: true,
20.    pageSize: 4000,
21.    serverSorting: true,
22.    schema: {
23.        total: function (response) {
24.            console.log("total: " + 165502);
25.            return 16502;
26.        },
27.        model: {
28.            ...

(The total number of records is hardcoded because we are testing at this stage and we know the result set size beforehand).

The first page of data is displayed correctly, and the navigation bar is displayed, but empty. That is, on page 0, with no page buttons, back/forward buttons are not responding, and the message "No records" is displayed.

Any help, very welcomed.

Edo.

Eduardo
Top achievements
Rank 1
 answered on 05 Jun 2017
1 answer
362 views

Hello,

I have the below Use Case where:

I need to pass the application specific parameters to the server with proxy enabled.

Below is the sample code that has the proxyParameters. Using these proxyParameters I would be processing the pdf document on the server.

$("#editor").kendoEditor({
     tools: ["pdf"],
     pdf:{
  filename: "MyDocument.pdf",
  proxyURL: "/myProxyURL",
  proxyParameters: myParameter,
  forceProxy: true,
  paperSize: "auto"
     },
  pdfExport:function(e){
  e.preventDefault()
  }
});

Could you please help?

Ianko
Telerik team
 answered on 05 Jun 2017
1 answer
301 views

Hello,

A Angular Custom Directive that is use with the k-ng-model, stop to work after the Kendo UI v2016.3.xxxx version, but it was use to work with the Kendo UI 2015.3.xxxx version.

When is used only "ng-model" instead of the "k-ng-model, the error vanish, but a a new kind o error start, the word typed is salved with weird caracters like these: "&alt;strong&gt;test&alt;/strong&gt;", however the correct would be save like this way: <strong>test</strong>.

Thank you!

 

Ianko
Telerik team
 answered on 05 Jun 2017
1 answer
159 views

Hi,

I am trying to implement multirow headers in the jquery spreadsheet widget.

Please refer to the attached excel screenshot of what i am trying to do.

All the examples i see render the data directly through sheets.rows.cells configuration.

But I am binding the data from a datasource and setting the custom column headers using setDataSource function.

Everything is rendering fine with the custom column headers in row 1 and the date from row 2 onwards.

But I want to set a header for I2 to L2 and M2 to P2 in row 1 and then my custom column headers in row 2 and the data from row 3.

Can you please point me to the correct way of implementing this.

Bozhidar
Telerik team
 answered on 05 Jun 2017
1 answer
427 views

I'm having difficulty using the autoComplete in a popup editor template.when the datasource for the autocomplete has separate value and text fields.

This example works fine if we use the firstName for both the data-value-field and data-text-field.

However, if we change the datasource to include a "fullname" property:

var autoCompleteDS = new kendo.data.DataSource({
    data: [
        {firstName: "Alex", fullName:"Alex Smith"},
        {firstName: "Alice", fullName:"Alice Smith"},
        {firstName: "Antony", fullName:"Antony Smith"},
        {firstName: "Anne", fullName:"Anne Smith"},
        {firstName: "Anna", fullName:"Anna Smith"}
    ]
});

 

And configure the autocomplete to reference this property:

<input name="FirstName"
        data-bind="value:FirstName"
        data-value-field="firstName"
        data-text-field="fullName"
        data-source="autoCompleteDS"
        data-role="autocomplete" />

 

When we add a record, the record's firstName field is set to the fullName.  I obviously have the binding specified incorrectly but I can't figure out what I've done wrong.

 

Thanks,

Todd

 

 

Stefan
Telerik team
 answered on 05 Jun 2017
9 answers
2.5K+ views
Is it possible to format numbers in the value axis to use "short format" numbers?
1,000,000 => 1.00M
1,234,567 => 1.23M
1,234,567,890 => 1.23B

Is there a format string that the kendo charts support thats similar to something like "{0:C}"? If theres no simple format string to achieve this, is there a way to pass the kendo chart's value axis numbers to a function to format the numbers like this?

Right now, I've resorted to just simply dropping the font size down on the chart value axis. If I don't drop the size down, the numbers will just overlap (I attached chart with the dropped font size):

valueAxis: {
            labels: {
                visible: true,
                format: '{0}',
                font: '7px Arial'
            }
        }
Darren
Top achievements
Rank 2
 answered on 04 Jun 2017
1 answer
184 views

Hi, I'm experimenting with the Timeline view of the scheduler control and having issues getting the horizontal scrollbar to display on IE11.  The horizontal scroll displays fine in chrome so I was wondering if this is a known issue, or just something that I have not set.

I'm using angular js and have declared my scheduler like so: 

<div kendo-scheduler="myScheduler" k-options="vm.SchedOptions" kendo-droptarget>
    <div k-event-template>
       <label>{{dataItem.title}}</label>
     </div>
</div>

 

'vm.SchedOptions' is defined in the typescript, shown below:

private SetupScheduler() {
 
            var observableDataSource = new kendo.data.SchedulerDataSource({
                data: this.observableData,
                schema: {
                    model: {
                        id: "taskId",
                        fields: {
                            taskId: { from: "id", type: "number" },
                            title: { from: "title", defaultValue: "No title", validation: { required: true } },
                            start: { type: "date", from: "start" },
                            end: { type: "date", from: "end" },
                            isAllDay: { type: "boolean", from: "isAllDay" }
                        }
                    }
                }
            });
 
            var startTime = moment().toDate();
            startTime.setHours(4);
            startTime.setMinutes(0);
            startTime.setSeconds(0);
 
            var endTime = moment().toDate();
            endTime.setHours(18);
            endTime.setMinutes(0);
            endTime.setSeconds(0);
 
            var viewSettings: kendo.ui.SchedulerView = {
                type: 'timeline',
                eventHeight: 85,
                startTime: startTime,
                endTime: endTime,
                showWorkHours: false               
            }
 
            this.SchedOptions = {
                date: this.SelectedStartDate,
                startTime: this.SelectedStartDate,
                majorTick: 60,
                views: [
                    viewSettings
                ],
                dataSource: observableDataSource,
                group: {
                    resources: ["Users"],
                    orientation: "vertical"
                },
                resources: [
                    {
                        field: "users",
                        name: "Users",
                        dataSource: [],
                        multiple: true,
                        title: "Users"
                    }
                ]};
        }
 

 

Are there any properties that I can set to force the horizontal scrollbar to show in IE11?

 

Thanks.

 

Stewart.

Stewart
Top achievements
Rank 1
 answered on 02 Jun 2017
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
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
ContextMenu
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?