Telerik Forums
Kendo UI for jQuery Forum
6 answers
280 views

I am trying to draw line (step) on date axis with small spikes of data but seems like it auto compress.

 

Code

<body>
<div id="example">
    <div class="demo-section k-content wide">
         <div id="chart"></div>
    </div>
</div>
 
<script>
   var stats = [{ value: 0, date: new Date("2012/01/04") },
                { value: 30, date: new Date("2012/01/05 11:22AM") },
                { value: 0, date: new Date("2012/01/05 11:22:30AM") },
                { value: 0, date: new Date("2012/01/10") }];
 
 function createChart() {<br>                    $("#chart").kendoChart({<br>                        title: {<br>                            text: "Units sold"<br>                        },<br>                        dataSource: {<br>                            data: stats<br>                        },<br>                        series: [{<br>                            type: "line",<br>                          style: "step",<br>                            field: "value",<br>                            categoryField: "date"<br>                        }],<br>                        categoryAxis: {<br>                            baseUnit: "weeks"<br>                        }<br>                    });<br>                }<br>                $(document).ready(createChart);<br>                $("#example").bind("kendo:skinChange", createChart);<br>            </script><br>        </div><br></body>
Daniel
Telerik team
 answered on 16 Feb 2017
1 answer
222 views

when importing a spreadsheet which has named ramges the named ranges are not imported. So any cells that reference these by range name do not work.

See attached file for demo.

Nick.

 

Ianko
Telerik team
 answered on 16 Feb 2017
2 answers
109 views

Check the attached sample, and try editing a value and then click on enter (it should move to the cell below). It is very very very slow.

Please help.

Boyan Dimitrov
Telerik team
 answered on 16 Feb 2017
7 answers
310 views

Is there a way to increase the width of the cell dropdown list, which appears when you do range.validation({ my list here });

Thanks!

Marc
Top achievements
Rank 1
 answered on 16 Feb 2017
2 answers
127 views

Hello.

 

Sorry about asking the same question in Scheduler tread.

Is there any way to implement "export to pdf an excel" functionality in Angular 2 Grid component?

Jeremy
Top achievements
Rank 1
 answered on 16 Feb 2017
3 answers
1.6K+ views

I decided to start a new thread since I now understand the problem better.

Im using a standard visual studio bootstrap 3 template as basis for a textbox and kendo.ui.grid grid.

 

I managed to get the grid to be full screen width and follow the browser when sized (only width, not height), that is shrink if you shrink the browser size.

My grid allways starts in about 1/3 of the screen size (height, width is fine), and even though I set the pagesize in the grid to 40 rows that doesnt change.

Is there a way that I can let the grid height use the browser height without having a scrollbar ? also follow its size when I resize the browser.

I would also like to be able to accomodate different resolutions and possibly pads or mobile devices.

I did have a look at a demo where this was nicely done in jfiddle, but I never managed to find the settings that controlled it, I tried copying every setting I found there over to my project to no avail.

The only difference I see is that my grid is constructed in .cshtml page but your demo is in javascript and only done clientside.

My grid gets it data from server side calls, so I cannot use client side only, but yes I could use ajax calls to get my data.

Regards,

Emil

 

Emil
Top achievements
Rank 1
 answered on 16 Feb 2017
9 answers
5.4K+ views
Suppose I have a data source supplying fields x, y, z and I use
$('#grid').kendoGrid ({
...
  columns: [
    { field:'x', title:'X Coordinate', width:'40px' }
  , { field:'y', title:'Y Coordinate', width:'40px' }
  , { field:'z', title:'Z Coordinate', width:'40px' }
  ]
...
})
and get everything looks ok.

Now suppose there is a button that when clicked should set all the column widths to 80px.

$('#button').click(function() {
??? what goes here ???
})
Joey
Top achievements
Rank 1
 answered on 16 Feb 2017
11 answers
1.3K+ views

Hi,

 

if my browser is on a 4k display I can get a lot more result lines on each screen than on 1080p is there a way for the grid to size its results based on the size of the display? its kind of awkward to have results that only use 20% of the screen size when you have a lot more space to use.

 

Regards,

Emil

Emil
Top achievements
Rank 1
 answered on 16 Feb 2017
2 answers
122 views

Hello,

if i bind a datasource with mvvm to a grid through the data-bind attribute and for example try to trigger manually the read method of the datasource it seemed that it has no effects on the grid. Now i compared the viewmodel datasource with the datasource from the grid and they did not match. Why is this so? 

Thanks in advance

Michael

Michael
Top achievements
Rank 1
 answered on 16 Feb 2017
4 answers
580 views

I have a field in my datasource who's value from the server is a 'Y' or a 'N'. I need to display that string value on the grid. When editing the value, I need to show a checkbox, checked if value == 'Y'.

 

There are 2 ways I can try to solve this problem, as I can tell, but I have problems/questions with each approach.

1. I can change the data model by making the field of type boolean, ie:
model: {
    fields: {

        "myFlag": { type: 'boolean"}

}}

, then changing the template of the column template like so: ` template: "#= (myFlag) ? 'Y' : 'N'"

This gets my desired UI result. However, all of my records on the grid display 'N', even though most of the records have 'Y' as their myFlag value. So therefore, how do I tell the datasource that 'Y' is true and 'N' is false? Furthermore, why does my grid currently treat myFlag as false when myFlag does indeed have a string value in it, which should equate to true.

 

2. The other approach is to leave my data source alone and just build a custom editor. However, most tutorials out there use a template to show a checkbox. I don't want to do that; I want to display "Y/N", and only render the checkbox when editing. I do not see any examples out there with this configuration. Here is my current editor for this checkbox:

editor: function (container, options) {
var value = options.model[options.field];
$('<input required name="' + options.field + '" type="checkbox" data-bind="checked:('+options.field + '==\'Y\')" />')
.appendTo(container)

}

note, i've also tried setting the html attribute 'checked' to no avail.

 

Jeff
Top achievements
Rank 1
 answered on 15 Feb 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
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?