Telerik Forums
Kendo UI for jQuery Forum
3 answers
109 views
Hi,

I'm wondering if there is something to make a parent child relationship between an autocomplete component to a grid?

I used to have another grid to host the information from autocomplete which I can use linkChild() to easily bind two grids. But I couldn't seem to find any similar function that allows me to do the same between the autocomplete with the grid. If there is no such method exist, is there any walk around that allows me to do so?
Regards,
Yifan
Stefan
Telerik team
 answered on 31 Jul 2018
1 answer
121 views

I have a form, where people can enter text and also add file with it. The problem is that, the file should not be required. At the moment the uploader does not "upload" when no files selected.

 

Is it possible to make the file request even if file is not selected, so only metadata is posted.

 

Example:

https://dojo.telerik.com/uNahUVAD

Plamen
Telerik team
 answered on 30 Jul 2018
1 answer
327 views

Hello,

1.) User open page with grid
2.) They select filter and choose one of this options: isnull, isnotnull, isempty, isnotempty.
3.) Field for value is still visible. It should be hidden because it is useless in this context.

Is it possible to hide it? Does the support plan to implement it in the future release?

Konstantin Dikov
Telerik team
 answered on 30 Jul 2018
8 answers
332 views
I am writing to give some hopefully helpful, but critical observations of Kendo's documentation. I have heard these thoughts from many others, so I know I am not alone in my perceptions.

Kendo suffers from a great lack in detailed and easy-to-follow documentation. Articles are not ordered well. Certain bits of information about a topic are scattered over multiple pages. Many (sometimes most) answers to questions about widgets are found in the forums or on unaffiliated websites.

I would equate Kendo's documentation to being the dictionary for Kendo, like how you have an English language dictionary where you go to find certain words and what they mean, but you get very little context about that word.

Here are some specific examples, to help shed light on the frustrations:

  • I wanted to use Kendo to display a website navigation menu in text form, so a user could edit the menu items. First off, I was annoyed that on the Kendo widget demos page, there are no descriptions of the widgets. It would be nice to get a quick blurb about what each one does, to help make decisions easier about which one to use for a purpose. I get that the idea is to play with the Widget to see what it does, but a description would help, if it's not immediately clear what it does or what it's typically meant for. Once I clicked through them all and found that TreeView looked the best, I quickly found that it was not going to be easy to pull in a full menu hierarchy all at once. The only way I could tell from the demo was to pull them in via Ajax, one level at a time. This would not work for our purpose. So I started searching around and found a post in the Forums about using a Hierarchical DataSource with the TreeView to pull in all the menu items at once. But of course, the only example given here was for Javascript, so I wasn't able to use the MVC Wrappers, since there was no documentation about using this for TreeView. I searched in Kendo's documentation and finally found the HierarchicalDataSource section, but all it shows are the parameters and such - no instructions on how to use it or different examples. Finally, after hours of searching and trial and error, I got the TreeView hooked up via Javascript to pull in the menu items via Ajax through a HierarchicalDataSource. Why was there nothing about this process in the documentation? Why is there little to no documentation about using HierarchicalDataSource with the MVC Wrappers?

  • Another example is that I wanted to bind a ListView to local data, then be able to change the DataSource afterward to pull additional items via Ajax. Once again, little to no documentation on how to change the DataSource after the widget is initiated, but we were finally able to find a Forum post where someone received an example of how to do this. But since there was, of course, no documentation or detailed explanation of this example, and it takes time (that we didn't have) to get an answer about how to slightly change the example for our purposes, we ended up spending hours of trial and error to figure out why certain things didn't work at all or didn't work quite right or how to make them work. We found out the Pager broke after changing the DataSource, and we were supposed to refresh the Pager. Another small thing that was not in the documentation.

  • A last example is finding specific information about the MVC Wrappers. When I go to the Documentation, I see "Wrappers" in the left nav menu, so I click on it. Then I click "Aspnet Mvc." I'm thinking to myself, "I have no idea which of these is what I want...I want information about the ListView MVC Wrapper...hmm, do I click on Kendo.Mvc.UI, since that's where the widget should be? Nope, not there. Maybe Kendo.Mvc, since maybe it's under a general heading? Nope, not there." I click through all those and can't find it. So then I go to "Web" in that left menu. Nope, nothing about MVC Wrappers there either. So finally, I just go to Google and search to find what I need. Oh, so I guess the section I need is under the "Getting Started" tab. Well, I wasn't "getting started" with Kendo, so that's weird. Oh, so there's "Web," so I click that to find ListView, but that's for Javascript. Then I see "Using Kendo With," so I finally find the "Aspnet Mvc" section. UGH!
I could name other similar experiences, but these at least illustrate the norm, from our 6 month experience with Kendo.

I have used plugins such as jQuery and jQueryUI for 5+ years now, and I found myself greatly dissatisfied with Kendo's documentation, comparatively. For instance, in the jQuery documentation for the .on() function (http://api.jquery.com/on/), you will find such incredibly detailed information and lots of examples. After reading the article, I was immediately able to get my head wrapped around what it does, what parameters it takes, what it does with events, and I could view and play with the examples to see what happened. A similar article on Kendo would have the parameters described on one page, an FAQ article on another page with a few use-case scenarios or some related issues, and yet another page with a How-To, that is only helpful in limited circumstances.

It just should not be this difficult to find information about each widget and how it works. Each widget's documentation page should be full of in-depth descriptions of each property, event, and method and full of examples, use-cases, and potential problems or things to be aware of.

Also, there should be the same amount of in-depth description of the different Wrappers. I know for the MVC Wrappers, I have the same kind of trouble trying to find examples or how to use the different widgets or how to hook them up with different kinds of DataSources and such.

The Kendo Documentation is just an incredible form of frustration and keeps me from being excited about the product. Even though the widgets work quite well, I'm not as excited as I should be about them because of the time and frustration it takes trying to get the dang things to work! The Documentation needs to be less dictionary and more Wikipedia. By all means, please overload the Documentation with data, descriptions, use-cases, examples, related issues, things to keep in mind, potential problems, ways people use the Widgets, how to interact with other Widgets, DataSources, etc...more more more!

Thanks for your time and attention, and I hope this helps us all move onward and upward with Kendo!
Veselin Tsvetanov
Telerik team
 answered on 30 Jul 2018
3 answers
374 views

Is there any way to set a maxlength attribute on the input of every cell. I was hoping I could accomplish this with out using validation.

 

Thanks!

Vessy
Telerik team
 answered on 30 Jul 2018
1 answer
243 views

Hi,

The current implementation of kendo stock chart samples all the data points. In my case, when I drag right on the stock chart, fetches remote data and bind it to a local DataSource using add(). Let's say If I get 100 data points with values for each category nearer, chart renders only a few data points.

eg. This is the data I get on drag

[{"time":"2018-07-26T10:43:11.539927643Z","value":46},{"time":"2018-07-26T10:43:41.404421587Z","value":46},{"time":"2018-07-26T10:44:12.939918256Z","value":46},{"time":"2018-07-26T10:44:40.589413526Z","value":46},{"time":"2018-07-26T10:45:10.998136847Z","value":46},{"time":"2018-07-26T10:45:42.88296681Z","value":46},{"time":"2018-07-26T10:46:14.760766456Z","value":46},{"time":"2018-07-26T10:46:42.953234055Z","value":46},{"time":"2018-07-26T10:47:13.378606585Z","value":46},{"time":"2018-07-26T10:47:44.152430668Z","value":46}]},{"device_id":"00204AX5D72GGIJ4Z0HX1BLA5S2TTFOS","points":[{"time":"2018-07-26T10:43:25.990936424Z","value":38},{"time":"2018-07-26T10:43:58.83281015Z","value":38},{"time":"2018-07-26T10:44:33.114622846Z","value":38},{"time":"2018-07-26T10:45:02.558993785Z","value":38},{"time":"2018-07-26T10:45:42.009941143Z","value":38},{"time":"2018-07-26T10:46:09.499015043Z","value":38},{"time":"2018-07-26T10:46:44.329702609Z","value":38},{"time":"2018-07-26T10:47:14.744901433Z","value":38},{"time":"2018-07-26T10:47:50.48844174Z","value":38}]

eg: This is how I assign above json to respective category

Lets say above data array is assigned to a variable called 'points'

points.forEach(function (data) {
     var _payload = {};
    _payload[deviceId] = data.value; // can be different for another series data
    _payload.date = new Date(data.time);
    chart.data_source.add(_payload); // chart is kendo-stock-chart reference obj
});

 

In the above example chart data_source holds whatever payload added. But I could see only few data points because of default sampling algorithm. I have implemented pan and zoom on kendo chart but, it only works with sampled data. 

So, I want to have plus and minus icon on the chart as an overlay. When I click on plus icon chart should render hidden data points.

Tsvetina
Telerik team
 answered on 30 Jul 2018
1 answer
254 views

Hey,

first of all here's a Dojo showing the situation:

https://dojo.telerik.com/aPaqUZOX/2

I have two valueAxes and two series, each bound to another valueAxis. As long as all values in the series are positive all works as expected, but as soon as a single value goes negative it suddenly looks really weird. The reson for that is that both valueAxis' crossthe categoryAxis at different values. mpg corsses at 0 (which is fine) but l100km crosses at -8 which is not what I'd expect.

I looked through the API and found a really promising option for the valueAxes which was "axisCrossingValue". But as you can see in the Dojo I either misunderstood this option or it just isn't working in this example.

How can I get both valueAxes to cross the categoryAxis at 0?

Best wishes

indian

Tsvetina
Telerik team
 answered on 30 Jul 2018
3 answers
2.1K+ views

I have a grid that uses inline editing, with several of the columns containing required data.  When in add/edit mode, I need to add an asterisk to the column header label of each "required" field.  I know that the required fields are set properly, as I get a required validation error when leaving these fields blank during either an add or update.

I've looked through the documentation for datasource and datesource.data objects, but no luck.  Where can I locate the required property for each column/field in the grid data?

Georgi
Telerik team
 answered on 30 Jul 2018
2 answers
139 views

I'm creating a treeview in MVC using the TreeViewBuilder. like this

 Html.Kendo().TreeView().Name("TreeViewTemplateBiding")....

I need to get access to the treeview instance in a script. It's not an event, so I can't rely on the tree passing the instance to my function.

I'm trying, as instructed:

var myTree = $("#TreeViewTemplateBiding").data('kendoTreeView')

This does not work, it returns 'undefined'. In fact I can see that $("#TreeViewTemplateBiding") has no data at all.

Please assist.

 

Luis
Top achievements
Rank 1
 answered on 29 Jul 2018
3 answers
353 views
Hello, i've tried the various css changes i've listed further below to try an get the more of the text values to show in a read only textbox and there appears to be plenty of space left, but its not being used by the textbox, please see attachement for the screen shot, so is there a way to make the textbox show about 30% more of the value on the screen, thanks very much!

 

 <td width="9%" class="lbl-text">Position:</td>
                <td width="16%">
                    <input class="k-textbox.large" type="text" disabled="disabled" style="border:none" data-bind="value:
                     bipVm.positionEmp" />
                </td>
                 
                <td width="9%" class="lbl-text">Description:</td>
                <td width="16%">
                    <input class="k-textbox.large" type="text" disabled="disabled" style="border:none" data-bind="value:
                     bipVm.description" />
                </td>
                 
                <td width="9%" class="lbl-text">Division:</td>
                <td width="16%">
                    <input class="k-textbox.large" type="text" disabled="disabled" style="border:none" data-bind="value:
                     bipVm.divisionNameEmp" />
                </td>
                 
                <td width="9%" class="lbl-text">Agency:</td>
                <td width="16%">
                    <input class="k-textbox.large" type="text" disabled="disabled" style="border:none" data-bind="value:
                     bipVm.agencyNameEmp" />
                </td>
 
 
/*.k-textbox,*/
 
.k-textbox {
overflow: hidden;
white-space: nowrap;
}
.k-textbox.medium{
    width: 200px !important;
}
.k-textbox .large {
    width: 320px !important;
}
.wide-full {
    width: 100%;
}
robert
Top achievements
Rank 1
 answered on 28 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?