Telerik Forums
Kendo UI for jQuery Forum
5 answers
99 views
Hi,

I'm building a basic line chart in Kendo UI Dataviz and I'm having a
problem with the aggregation method. The goal is to group my sales data
by month and aggregate the Sum(Amount) which seems to work in my chart
but I'm experiencing a bug that causes data from the first day of
October to be included in the sum for September. Oct 2 shows in October
but Oct 1 is included in September's total.

The data is:

10/1/2013 12:00:00 AM, 22964.5000

10/2/2013 12:00:00 AM, 6762.9400

Html.Kendo().Chart(Model)
.Name("revenue")
.Title("Revenue Activity by Month")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
)
.Series(series =>
{
series.Area(s => s.TotalRevenue, categoryExpression: model => model.Date).Aggregate(ChartSeriesAggregate.Sum).Name("Total Revenue").Color("#73c100");
series.Line(s => s.RevenueSubscriber, categoryExpression: model => model.Date).Aggregate(ChartSeriesAggregate.Sum).Name("Subscriber Revenue");
series.Line(s => s.RevenueNonSubscriber, categoryExpression: model => model.Date).Aggregate(ChartSeriesAggregate.Sum).Name("Non-Subscriber Revenue");
})
.CategoryAxis(axis => axis.Date()
.BaseUnit(ChartAxisBaseUnit.Months)
)
.ValueAxis(axis => axis
.Numeric("revenue")
.Labels(labels => labels.Format("{0:C}"))
.Line(line => line.Visible(false))
)
.Tooltip(tooltip => tooltip
.Visible(true)
.Format("{0:C}")
)

What I receive is a chart with two points on the X Axis. The first
point is Sept 2013 and includes $22,964. The second point is Oct 2013
and includes $6,762.

Any ideas would be greatly appreciated.
Chris
Top achievements
Rank 1
 answered on 04 Oct 2013
11 answers
907 views
Hi Kendo Team:
If you set createAt:"bottom" in your editing.html sample, you can add rows and they are positioned at the bottom of the grid. But when you add a row that makes kendogrid to add a new page, it doesn't jump to this new page, so you are adding a new row at the end of the penultimate page.
How can I make kendoGrid changes automatically to the next page when adding a new "pageSize +1" row.
Kind regards.
Oscar.
Raymond
Top achievements
Rank 1
 answered on 04 Oct 2013
2 answers
746 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
299 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
119 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
340 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
44 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
333 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.5K+ 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
154 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?