Telerik Forums
Kendo UI for jQuery Forum
2 answers
846 views
I'm intending to use the Grid's saveChanges event to perform some custom validation and prevent the record being saved if necessary.

I've had a look through these forums and it seems I should be able to prevent the save using:
   saveChanges: function(e) { 
e.preventDefault();
   }

This isn't working. All records are being saved.

Can somebody please explain what the saveChanges event is for, when it is called and how it should be used. The documentation is very sparse.

Thanks.
Scott Marx
Top achievements
Rank 1
 answered on 04 Oct 2013
3 answers
327 views
The background-color of k-button classed elements cannot be set in recent versions of Chrome or Firefox due to the application of the background-color:linear-gradient style. This issue can be observed on the theme builder site:

http://demos.kendoui.com/themebuilder/web.html

Using Chrome or Firefox:

1.) Select the Uniform Theme.
2.) Click Start the Kendo UI Themebuilder.
3.) In the themebuilder pop-up, choose Buttons and select a new Background color.

Result: The Background color is not applied.

Disabling all background-image styles still enables the selected color to display.
Dimo
Telerik team
 answered on 04 Oct 2013
1 answer
168 views
Looks like there is some bug when you have a databound scrollview inside an scroller element, you cannot scroll between views and data is not shown correctly.
http://jsbin.com/AxEJuPI/2/edit

Am I doing something wrong?
If not, does someone know any fix that could be used right now?

I cannot put the scrollview as the first child element of the mobile view, as the listview may have other fields and the user would need to scroll to see them.
Alexander Valchev
Telerik team
 answered on 04 Oct 2013
5 answers
373 views
Hi All,

Now I admit the answer may be simple, but I can't find a solution yet.

Anyway I have a SPA with MVVM bindings.  How do I warn a user that they forgot to press the save button when they switch views, either via router.navigate or bookmarks.

I have looked at the router change event, but I can't cancel the route.  

I have looked at various demos and documentation.

Regards

Richard...
Kiril Nikolov
Telerik team
 answered on 04 Oct 2013
1 answer
61 views
Hi

Im currently evaluating the dataviz charts for a project. While doing this I discovered something that looks like a bug.

Using the latest version 2013.2.918, accessing content other than value from dataItem in tooltip is not possible when categoryAxis.type is set to date.
In this jsFiddle the tooltip contains the text unavailable where the label property should be: http://jsfiddle.net/E5Cew/

If I switch to the 2013.1.319 version it seems to work as expected.
See this jsFiddle: http://jsfiddle.net/6rJVq/ 

Is this a known bug that will be fixed in next version? It is a requirement for our project and i can't recommend dataviz unless this is fixed.

Regards
Kristian
T. Tsonev
Telerik team
 answered on 04 Oct 2013
3 answers
361 views
Hi ,

Can i change the Value axis background color on Kendo Line chart.
It always seems to take the background of the main chart div .
We dont see any background property for valueAxis in the kendo documentation.

T. Tsonev
Telerik team
 answered on 04 Oct 2013
1 answer
13.6K+ views
Hi,

I have a Grid that works OK when I first show it. But when I try to change the Datasource with myGrid.dataSource.data(ds) it does not work.

When "ds" is a simple json object containing a simple list of objects the Grid is updated correctly, but when "ds" is a dataSource with oher config parameters defined, the grid is cleared, as the datasource had no record.

How can I solve it, will I have to destroy the Grid and create it again ???

Can you help me. ???
Insomniac82
Top achievements
Rank 1
 answered on 04 Oct 2013
7 answers
177 views
Hello!
I have this code:
var grid = $("#PlanCut").data("kendoGrid");
grid.table.kendoDraggable({
            filter: "tbody > tr:not(.k-grid-edit-row)",
            group: "gridGroup",
            container: $("#PlanCut tbody"),
            axis: "y",
            hint: function(e) {...

grid.table.kendoDropTarget({
            group: "gridGroup",
            drop: function (e) {...
and of course I have the grid with Scrollable;

Problem:
targetElement for drag element is entire grid, but not the part that is visible
If I delete scrollable and use pageable....everything well works.
Gusev
Top achievements
Rank 1
 answered on 04 Oct 2013
1 answer
600 views
I'm attempting to display major ticks every X base units and minor ticks at every base unit along the category axis of a line chart (category labels are setup to display at the major tick position too).

The problem I'm experiencing is that as the minor ticks are rendered across the category axis, they aren't lining up correctly with the major tick (a few pixels off depending on the chart width - larger chart width makes the alignment problem more noticeable).  This is only occurring when the categoryAxis.justified is set to true.  If it is set to false, the minor ticks line up perfectly between the major ticks.

I've set up a simple example here demonstrating the problem: jsFiddle

If that doesn't work, here is the snippet:
<div id="chart"></div>
<script>
$("#chart").kendoChart({
  seriesDefaults: {
    width: 1
  },
  series: [ {
    type: "line",
    line: {
      width: 1
    },
    markers: {
      visible: true,
      size: 3
    },
    data: [1, 2, 3, 2, 4, 6, 2, 5, 1, 4, 1, 3, 4, 4, 2, 5, 6, 4, 3, 4, 2, 2, 4, 5, 6, 2, 3, 0, 1]
  }],
  categoryAxis: {
    justified: true,
    majorGridLines: {
      visible: true,
      step: 8
    },
    minorGridLines: {
      visible: true,
      step: 2
    },
    majorTicks: {
      step: 8,
      color: "#ff0000",
      size: 10,
      width: 2
    },
    minorTicks: {
      visible: true,
      step: 2,
      color: "#ff00ff",
      size: 5
    }
  }
});
</script>
The major and minor grid lines are also setup to have the same step values as the ticks and display the same behavior of minor grid lines not falling perfectly between major grid lines.

The minor ticks/grid lines seem to get more and more out of line with the major ticks/grid lines the further along the category axis they go.

The version of kendo I've been using in development is v2013.2.925 (the jFiddle version is v2013.2.918).

On another note, why do I need to specify a step value of double what I would like the base units to step for minor ticks/grid lines?  In the example I've posted you will notice that the minor ticks/grid lines are set to step every 2 base units, but they actually step every base unit when the chart is rendered.
Iliana Dyankova
Telerik team
 answered on 04 Oct 2013
2 answers
89 views
If I include both the kendo.web.js and kendo.dataviz.js I get some bizarre errors happening.
See jsbin http://jsbin.com/uRATaJe/3/edit

This page just has an MVVM bound dropdownlist, and it keeps throwing an error.  While Chrome will go ahead and render the page correctly (edit: actually Chrome seems to crap out completely as well), Internet Explorer completely craps out.  If I remove the dataviz reference, the error goes away and all is well.
Robin
Top achievements
Rank 1
 answered on 04 Oct 2013
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?