Telerik Forums
Kendo UI for jQuery Forum
1 answer
242 views
I am building a stacked column chart.  I don't know the number of series going into it so I am using a foreach to build each series.  I want a category label for each of the series.  Typically for something like this I would use the categoryexpression but can't figure out how to do it with the way I am building.  Any help would be appreciated.

@(Html.Kendo().Chart()
    .Name("chart")
    .Theme("flat")
    .Title("Issues Waterfall")
    .DataSource(ds => ds
        .ServerOperation(false)
    )
    .Series(series =>
    {
        series.Column(new double[] { 100 }).Name("Total").Color("Blue").Stack("Total");
 
        foreach (var resp in Model.listResponsibleDowntime)
        {
            series.Column(new double?[] { resp.percent_pad }).Name(resp.resp_name).Color("White").Opacity(0).Labels(false).Tooltip(false).Stack(resp.resp_name);
            series.Column(new double?[] { resp.percent_downtime }).Name(resp.resp_name).Color(resp.resp_color).Labels(lables => lables.Format("{0:n2}%").Visible(true).Position(ChartBarLabelsPosition.OutsideEnd)).Stack(resp.resp_name);
        }
 
        series.Column(new double?[] { Model.oee }).Name("Actual").Color("Green").Stack("Actual").Labels(lables => lables.Format("{0:n2}%").Visible(true).Position(ChartBarLabelsPosition.OutsideEnd));
         
    })
    .CategoryAxis(axis => axis
        .MajorGridLines(lines => lines.Visible(false))
        .Labels(model => model
            .Rotation(0)
            .Visible(true)
        )
        //.Categories(Model.listCategories)
    )
    .Legend(legend => legend
        .Position(ChartLegendPosition.Top)
        .Margin(20, 50, 20, 50)
        .Visible(false)
    )
    .ValueAxis(axis => axis
        .Numeric()
        .Min(0)
        .Max(100)
        .Labels(labels => labels.Format("{0:n0}%"))
    )
    .Tooltip(tooltip => tooltip
        .Visible(true)
        .Template("#= series.name #: #= kendo.format('{0:n2}', value) #")
    )
)
Hristo Germanov
Telerik team
 answered on 18 Dec 2013
2 answers
228 views
Hi,

I am trying to add a NumericTextBox in GridToolbar. The input control is converted to NumericTextBox but the Up/Down spinner buttons layout is disturbed.

Please see this jsfiddle for demo:

http://jsfiddle.net/E3TNH/1/

Regards
Hammad
Top achievements
Rank 1
 answered on 18 Dec 2013
1 answer
78 views
Hi,


we encountered a very strange issue. We update inner nodes of a tree view using loaded(false) and load() as suggested in another thread. However, after loading the nodes, the uids of the datasource and those present in the HTML does not match any more for the reloaded items.  The method treeView.findByUid(uid) does not find any item and the requested uid is in fact not present in the HTML. Is there any chance to update not only the model but also the HTML or to use an value present on the items that are loaded from server as uid and thus to have stables uids? 


Best regars & many thanks


Daniel
Telerik team
 answered on 18 Dec 2013
1 answer
127 views
One requirement of the software we are building is that users have the ability to email reports they create.  So we have it set up so that a user can create a report based on certain data parameters and view a chart (using dataviz) of the data.  This all works but we now need the ability for them to export/email this report to themselves.  So my questions are...
1.) Is there a way I can take a "picture/snapshot" of a chart... Basically end up with a static jpeg or something of the chart.
2.) Whats the best way to achieve this email/export type of functionality with the Kendo Dataviz stuff?  Any suggestions would be much appreciated.

Jason
Iliana Dyankova
Telerik team
 answered on 18 Dec 2013
1 answer
82 views

1)  There is a great example of Kendo using bootstrap but is there a downloadable version.  i.e a sample project.
http://demos.kendoui.com/bootstrap/


2) On the demos page there are examples for HTML, ASP.NET MVC , Razer and ASPX etc which is great :)  but when you go to the full documentation there is just HTML samples.     :(

Kiril Nikolov
Telerik team
 answered on 18 Dec 2013
3 answers
122 views
Hello,
I am trying to use requireJS with kendo.custom js. I downloaded kendo combobox and validator as a custom package and created a custom js. I am trying to use requireJS on this kendo.custom. 

Code snippet that is NOT working

define(["jquery/jquery","kendo/kendo.custom.min"],function() {
return {
init:function(){
$("#vertical").kendoComboBox();
var combobox = $("#vertical").data("kendoComboBox");
}
};
});

JS Error: Uncaught TypeError: Object [object Object] has no method 'kendoComboBox'

But if I use kendo.all.min instead of kendo.custom.min, this code gets executed without any error. I think I am missing adding some dependency for combo box or probably using my requireJS in a wrong way. Can you please help.

Thanks and Regards,
Santhosh Rao M
Mihai
Telerik team
 answered on 18 Dec 2013
1 answer
192 views
I have this code:
@(Html.Kendo().MobileView()
    .Name("MobileViewOrderOverview")       
    .Title("Order overview")
    .Layout("LayoutOrderOverview")
    .Content(obj =>        
        Html.Kendo().MobileListView()
            .Events(e => 
                e.Click("MobileViewCreditor_Clicked")
            )
            .Name("MobileListOrderOverview")                
            .TemplateId("TemplateOrderOverview")                
            .DataSource(dataSource => 
                dataSource
                    .Model(x => x.Id("No"))
                    .Read("Orders", "Json")
            )
            .Filterable(filter =>
                filter.Field("BuyFromVendorName")
                .Operator("contains")
            ))        
)

Which works. But I would like to add additional fields to the filter. So that I can search in the "No" and "BuyFromVendorName" fields at the same time.

Can this be accomplished without adding a search-property to the results?
Kiril Nikolov
Telerik team
 answered on 18 Dec 2013
6 answers
149 views
Hi.  The key values in the JSON I am getting back have spaces in them.  this, I am not able to use the #: keyNameHere # notation in my template.  Additionally, the keys here are custom and will not be the same from customer to customer so I would like to be able to reference them with something like subscript values.  Is this possible?
Kiril Nikolov
Telerik team
 answered on 18 Dec 2013
1 answer
98 views
Hi guys,

I would like to implement a export solution and so far I can't find a solution that would suit our needs

I looked on this 2 examples provided by the Kendo Support Team:
http://www.kendoui.com/code-library/mvc/grid/export-grid-to-excel.aspx
http://www.kendoui.com/blogs/teamblog/posts/13-03-12/exporting_the_kendo_ui_grid_data_to_excel.aspx

We are licensed Kendo UI Complete so we can't use this solution:
http://www.kendoui.com/code-library/mvc/grid/export-grid-to-excel.aspx

This solution actually sends all the export data to the server (and to us that is not acceptable):
http://www.kendoui.com/blogs/teamblog/posts/13-03-12/exporting_the_kendo_ui_grid_data_to_excel.aspx

What we would really like is to define a new button on the grid header and to make a call to a WebApi specifying a different Http Verb or a different call parameter.
The main problem that we currently face is how to convert the filters / paging to an Odata Query String:

We tried something like this:
kendo.data.transports["odata"].parameterMap($("#grid").data("kendoGrid").dataSource._filter, 'json')
But this serialization does not provide the required result -  the filters formatted as an odata querystring. Eg:
"{"filters":[{"field":"Code","operator":"contains","value":"f"}],"logic":"and"}"
So could you please tell us how to serialize the datasource (filters, sort, etc.) as an odata querystring ?

**sorry about the thread name - i don't know how to change it to Kendo Grid Export
Atanas Korchev
Telerik team
 answered on 18 Dec 2013
1 answer
197 views
I have the following requirement:

* User Types 25.316  and tabs out ->  Control shows 25.316
* User Types -5 and tabs out -> Control shows -5
* User Types 16.4241 and tabs out -> Control shows 16.4241

How can I get the numeric textbox to meet this simple requirement?   It seems to always want to format or massage the data, but this is undesirable as I'm trying to use it to allow the user to enter latitude / longitude coordinates which can have a variable number of decimal places.

Am I missing something?

Thanks,
Shaun
Shaun
Top achievements
Rank 1
 answered on 17 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?