Telerik Forums
Kendo UI for jQuery Forum
19 answers
1.3K+ views

Hi,

Is there a method to clear all data from a specified sheet?

Thanks!

samk
Top achievements
Rank 1
 answered on 25 Jul 2018
3 answers
473 views

Hi,
We are using Kendo UI controls for ASP.NET MVC and we are in the middle of updating the kendo libraries (from version 2016.1.112 to 2017.3.1018). One of the things that have changed is how the DateTimePicker is displaying dates. We are using the 'g' specifier to display dates according to the user's culture. Previously for Polish culture ('pl-PL') the date was displayed as 'yyyy-MM-dd HH:mm' - now it is displayed as 'dd.MM.yyyy HH:mm' (with dots and in different order).

The problem besides the date being displayed in the incorrect format is that when the form is send to the server, the date cannot be parsed and bound to a correct DateTime object ('The value '24.11.2017 00:00' is not valid for Current date.' error).

Could you tell us how to get this working as it did previously?

Stefan
Telerik team
 answered on 25 Jul 2018
2 answers
387 views

Good day,

I'd like my chart toonly render every n-th label if the slot size is not sufficient for the entire labels.
So I'd like to set the step to "auto" just like the "CategoryAxis.labels.rotation" can be set to "auto".

Is there a way to achive that?

Best of wishes

indian
Top achievements
Rank 1
 answered on 25 Jul 2018
1 answer
135 views

I'm creating a Treeview using the TreeViewBuilder in MVC

Like this:

     Html.Kendo().TreeView().Name("TreeViewTemplateBiding")...

 

Which I can see renders in the page as

  <div class="k-widget k-treeview k-reset" id="TreeViewTemplateBiding"><ul class="k-group">...</div>

   <script>
   kendo.syncReady(function(){jQuery("#TreeViewTemplateBiding").kendoTreeView({"select":onSelect,"check":onCheck});});

</script>

 

 

    

Luis
Top achievements
Rank 1
 answered on 25 Jul 2018
3 answers
480 views

I created a custom legend visual for some column charts we are using. When I tried to apply the same visual to a pie chart the series name is undefined. I see there is a e.options.series.data[] property but I have no way to figure out what index I am currently on. How do you create a custom legend item for a pie chart?

I created an example of the issue. Line 56.

http://plnkr.co/edit/WJ2J5Meor3AVC5pckhXk?p=preview

 

beauXjames
Top achievements
Rank 2
 answered on 24 Jul 2018
1 answer
356 views

Currently when an event is selected in a scheduler a black border is applied. This is not very apparent and I'd like to change the colour and thickness to a red or lime green to make it stand out more.

Which css class do I need to override?

Thanks

Jon
Top achievements
Rank 1
 answered on 24 Jul 2018
1 answer
906 views

I want to open a kendo window with the data from a grid on the same page. I've done this with single selected items, but not with the list of items in the grid.

What's the proper method to serialize the data?

Here is some code

 

controller

public PartialViewResult WindowPartialView(IEnumerable<MyGridModel> models)
          
            return PartialView(models);
        }

in window

.LoadContentFrom("WindowPartialView""MyController")

 

function openPlacardWindow() {
  
     debugger;
     var grid = $("#MyGrid").data("kendoGrid");
     var gridData = grid.dataSource.data();
  
     
     var win = $('#myWindow').data("kendoWindow");
     win.refresh({ data: gridData }); //not correct
     win.center();
     win.open();
  
 }
Plamen
Telerik team
 answered on 24 Jul 2018
1 answer
174 views

Hi,

 

I am trying to update Kendo Grid row inline, but getting a bad request when doing so. 

Reading from the list work just fine, but I am not able to update.

 

Any ideas?

var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: crudServiceBaseUrl + "?$top=2000",
                        type: "GET",
                        dataType: "json",
                        contentType: "application/json;odata=verbose",
                        headers: {
                            "accept": "application/json;odata=verbose"
                        }
                    },
                    // ...
                    update: {
                        url: function (data) {
                            return crudServiceBaseUrl + "(" + data.ID + ")";
                        },
                        type: "POST",
                        dataType: "json",
                        data: JSON.stringify({
                            "__metadata": { type: "SP.Data.MasterListItem" }
                        }),
                        contentType: "application/json;odata=verbose",
                        headers: {
                            "accept": "application/json;odata=verbose",
                            "X-RequestDigest": $("#__REQUESTDIGEST").val(),
                            "X-HTTP-Method": "MERGE"
                        },
                    },
                    //...
                    parameterMap: function (data, type) {
                        if (type == "update") {
                            for (var property in data) {
                                if (property != "__metadata")
                                    delete data[property];
                            }
                        }
                        return JSON.stringify(data);
                    }
                },
                error: function (e, data) {
                    console.log("Status: " + e.status + "; Error message: " + e.errorThrown );
                },
                pageSize: 15,
                schema: {
                    data: function (data) {
                        return data.d && data.d.results;
                    },
                    total: function (data) {
                        return data.d.results.length;
                    },
                    model: {
                        id: "Id",
                        fields: {
                            Id: { type: "number", editable: false, nullable: false },
                            Title: { type: "string", validation: { required: true } },
                            OWNER: { type: "string", validation: { required: false } }
                        }
                    }
                },
                //batch: false,
                //serverPaging: true,
                sort: { field: "OWNER", dir: "desc" }
            });
Boyan Dimitrov
Telerik team
 answered on 24 Jul 2018
1 answer
451 views

Hi,

 

We have a Tab strip on a screen that can have about 10 to 20 tabs on ant any given time and the tab names can be quite long. This has worked fine until we have started moving over to Bootstrap 4, we have set the theme to "kendo.bootstrap-v4.min.css" and the scroll no longer works on the tab strip the tabs just get really small.

 

an example of this can be seen here https://jsfiddle.net/a0dq3m2j/ if you change the theme to "kendo.bootstrap.min.css" then it works as expected then you make the left pain smaller but with "-v4" the tabs just get smaller until its impossible to use.

 

Daivd

 

Dimitar
Telerik team
 answered on 24 Jul 2018
4 answers
385 views

hi there,

So I need to display a spreadsheet in a kendo window, and am loading the windows content via a partial view. However whenever I add the spreadsheet to the partial view I get this error upon page load in kendo.all.js: Unable to get property '_grid' of undefined or null reference

When I add the spreadsheet to a regular view it loads as expected. If it's in the partial view it has all the tabs at the top (Home, Insert and Data) and the header info, just no grid or any of the sheets defined. I attached a picture.

I am using MVC with razor.

 

Is there any fix for this or is it a known issue?

Thanks,

Rachael

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