Telerik Forums
Kendo UI for jQuery Forum
1 answer
81 views
Hi everyone, I'm using the asp.net mvc wrapper chart, but I have a problem when I set the graphic type to column, is some cases I get the text undefined, I attached an image, my code is:
01.@(Html.Kendo().Chart(Model)
02.    .Name("graphicchart")
03.    .Title(title => title.Text(ViewBag.graphictitle))
04.    .Legend(legend => legend
05.        .Position(ChartLegendPosition.Bottom)
06.    )
07.    .ChartArea(chartArea => chartArea
08.        .Background("transparent")
09.    )
10.   .SeriesDefaults(seriesDefaults =>
11.        seriesDefaults.Line()
12.    )
13.    .Series(series =>
14.    {
15.        series.Column(model => model.Parvalue).Name("Valor").Labels(true).Opacity(0.8);
16.    })
17.    .CategoryAxis(axis => axis
18.        .Categories(model => model.Datetimevalue)
19.        .MajorGridLines(lines => lines.Visible(false))
20.        .Labels(labels => labels.Rotation(-90))
21.        .Date()
22.        .BaseUnitStep(10)
23.        .MinorGridLines(lines => lines.Visible(true))
24.    )
25.    .Tooltip(tooltip => tooltip
26.        .Visible(true)
27.        .Format("{0}")
28.    )
29.)
Thanks for your help!
Iliana Dyankova
Telerik team
 answered on 14 Jan 2014
4 answers
374 views
I'm using kendo spa support in 2013.3.1119

If I want to have optional query parameters, it is not clear how to do that. I've got something to work, but it feels broken, or inconsistent.

See fiddle

I'm trying to support a route with no :id param, but has optional query params, like this:
router.route("/images(?:params)", function (params) {

I could only make this work by having a dummy first parameter since "undefined" is passed as arg1:
router.route("/images(?:params)", function (dummy, params) {

That seems like a bug. 

I found if I have an :id param in my route, like:
router.route("/images/:id", function(id, params) {

Then the optional query params are implicitly passed in the second argument. This is how I'd expect it to work (with or without an :id param).


In summary, should I be trying to take advantage of the automatic/implicit second argument that contains the query params? Or should I be including the (?:params) in my route url?

Am I missing something? Is there a bug here?


Thanks
Alexander Valchev
Telerik team
 answered on 14 Jan 2014
1 answer
161 views
Hello, we are planning a new application and need some guidance.

With the 2013 Q3 release now supporting Bootstrap 3 and responsive (RWD) web design, I have a few questions that I can’t seem to wrap my head around. I'll start by briefly describing the general need.

The application needs to be mobile first with support for desktop. Mobile functionality is various views of data (think something like a Groupon mobile site to set the context) with limited input.

While these views of data will most often be viewed on smartphones and tablets, it must still produce well on laptops and larger desktops. My main concern on the desktop will be all the admin functionality (the CRUD of data). I was planning to use Kendo UI Web (MVC Wrappers) for the admin screens. These DO NOT need to provide functionality at the smaller viewport sizes on smartphones.

This seems like a perfect candidate for RWD. Currently, our prototype is an ASP.net MVC 5 application using Bootstrap 3. While Bootstrap definitely handles the responsive nature very well, I find myself wanting to use the Kendo UI Mobile widgets. For example, while the bootstrap carousel is nice, I really prefer the Kendo Mobile Scrollview widget. I like the feel of the Kendo UI Mobile transitions between views and widgets. 

This is where problem starts. While I don't have a lot of experience working with Kendo, I do understand that from a mobile perspective, I'm working with an MVC view or two that essentially contain an application with many views of functionality and data to accomplish the page transitions etc. How does this work as you scale up from a smartphone to a desktop? I can't seem to figure out if what I'm supposed to do is simply wrap the mobile "application" in the Bootstrap 3 grid system (ie: col-lg-8 etc.) on an MVC view page.

I guess what is confusing me is why the distinction between Kendo Web and Kendo Mobile when they are now responsive? And to that point, I see from the demos that the only things that really appear responsive from a widget perspective are the grid and scheduler.

I have looked high and low for a blog or something talking about the overall strategy, but have been unsuccessful.

For clarity, this would be an HTML 5 web application, not a hybrid application through icenium, however, that does send me down another rabbit hole of questions!

Thank you for any guidance.
Petyo
Telerik team
 answered on 14 Jan 2014
10 answers
104 views
It seems today I'm on a bug finding spree.
By setting data-enable-pager to false in a MobileScrollView you'll end up with this weird bug, which wasted half of my day by tracking it.
This bug occurs only with the new Flat skin.
fullscreen: http://jsbin.com/owilaf/2/
codeedit: http://jsbin.com/owilaf/2/edit
The bug: Try dragging left-right the View and you will notice you can also dragg it up-down. After releasing the mouse, the view's elements won't snap back into place.  
Until 716, this worked ok. I was able to scroll left-right OR up-down, but never with those two mixed.
I disabled the pager because the content in my ScrollView doesn't fit vertically and the pager is out of view, so pretty much useless. Because a pager was still neeeded, as a workaround I set up another pager in the footer of the View.
Tested on Chrome 28.0.1500.72, Desktop and Mobile versions.
le:
1)For some weird reason, this occurs only in the first View of the ScrollView.
2)For some other weid reason, this occurs only if I use the Pie Chart and the ButtonGroup together.
Alexander Valchev
Telerik team
 answered on 14 Jan 2014
3 answers
125 views
I'm struggling to find documentation I need or even sample code for "Enterprise" class development using declarative data binding.  The demo's are good at getting you started quickly but none of them use declarative data- attributes, which seems an odd ommission given that the Pluralsight training course "Introducing Kendo UI" recommends this approach over the others shown in the demo's.

eg I can't find a list of all the available data-roles.   I found "menu" eventually (after wondering why "kendoMenu" or "Kendo.UI.KendoMenu" didn't work but without documentation  or a robust application this is pretty much guesswork for each widget unless I've missed something in the available documentation.

It's also come as a bit of a shock to discover the response to this user struggling to get declarative data binding working with the menu control http://www.kendoui.com/forums/framework/mvvm/source-binding-to-the-menu-widget-or-other-widgets.aspx Has the position changed since this was posted in April last year or is it still the case that none of the hierarchical widgets can't be data bound declaratively and the recommended way of dealing with this is as outlined in the answer (which seems a hell of a hack).

Thanks in advance for any response.
Daniel
Telerik team
 answered on 14 Jan 2014
4 answers
75 views
We want to develop an application which we can deploy to several mobile devices(primarily targeting tablets).   We have built some sites with KendoUI and are familiar with the KendoUI mobile api's..but have questions about deployment?  This is not a public application..it is available only to internal users with tablets which will be handed out to them.  Do we really have to publish via some app store in order to get our in house developed application to our in house business users devices?  

How precisely are Kendo UI mobile applications (i.e. those meant to run as native looking "hybrid" applications) best deployed to say iPad and Android tablet targets?
Kamen Bundev
Telerik team
 answered on 14 Jan 2014
1 answer
91 views
Hi,
 I found the inline editor often raise error when we copy and past.

Just open: (NOTICE: ie8)
http://demos.kendoui.com/web/editor/inline-editing.html


and do this:
1. In the top editor, type in any word, like we say "1", at any place.
2. Select the "1" we just type in,  and use the color picker to give it a color, like we say "red".
3.Now, don't click any place(keep the "1" is still selected), just use "CTRL+C"
4.Don't click any place(just keep the "1" is still selected), now use "CTRL+V"

Now you will see the script error!

In fact, I found it's very hard to really write a complete article in the editor, because it will raise error very soon.
The tragedy is, sometimes it will empty the editor when it raise error!
Could you remove the logic of empty the editor?

That's a really tragedy, because the user type so hard to input so many words in the editor. But you empty it all in an instant.
Yes, I have done the auto-save (bind to the keyup event), when the use enter keyCode =13, I will save the content in the editor to server.
But, when you suddenly empty the editor, the user don't know the content is still on server, he will just put enter key again! So the auto-save event is raised, and the empty is saved to the server, now, the content is missing really.

So, if you just empty the editor, the auto-save action can't really save the situation.

Please check the code, find the place to EMPTY the editor, and remove it, or give us a try catch system, to let us decide if to empty the editor.

yours,
Ivan



Alex Gyoshev
Telerik team
 answered on 14 Jan 2014
3 answers
193 views
Hello,

I'm trying to use a template for a kendoListView. In the template, I have an element that uses data-bind for a click event handler.

Everything works fine until I update the dataSource of the listView. Once the dataSource is updated, none of the click handlers work anymore.

JSFiddle:
http://jsfiddle.net/jseets/Qh2ma/11/

Any ideas?
Kiril Nikolov
Telerik team
 answered on 14 Jan 2014
1 answer
118 views
Hi,

Since the treeview doesn't support the filter on all levels, i had to implement the filter manually on all tree levels. The implementation is to loop over the node and set the filter on the children datasource: nodes[i].children.filter({ field: "label", operator: "startswith", value: text }) and to clear the filter nodes[i].children.filter({}).

The total nodes/leafs in the tree is arround 300, with arround 8 levels deep, the maximum child count is 80. The problem is that setting the filter also clearing the filter is slow regarding the size of the data, range between 6-9 seconds.

any help regarding this behavior.
Regards.
Petur Subev
Telerik team
 answered on 14 Jan 2014
4 answers
95 views
I have this HTML:

<div id="bills" data-role="view" data-model="Bills" data-init="Bills.init" data-layout="default">
<h1 data-bind="text:name">Text</h1>
</div>


and the ViewModel for this is:

var Bills = kendo.observable({
  name: "John Doe",
  init: function() {
  this.doSomething();
},

doSomething: function() {
  alert(this.name);
}
});


Both codeparts with "this" are not working. "this.doSomething" produces the error:Object [object Object] has no method 'doSomething'
Why is it not possible to use "this" in such a ViewModel?
Alexander Valchev
Telerik team
 answered on 13 Jan 2014
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?