Telerik Forums
Kendo UI for jQuery Forum
1 answer
69 views
I am using Kendo UI ASP.Net MVC framework and I have a kendo grid one of our pages. I am able do client side validation when the grid is in edit mode(using in-line editing). Error messages are displayed next to the field, it is possible to get all these errors and display them as a list when the Update button is clicked
 on the row.
Alexander Popov
Telerik team
 answered on 02 Oct 2013
7 answers
87 views
Hi,

When certain values are supplied in the data used by the stock chart navigator it causes it to expand to cover the entire chart:

http://jsfiddle.net/supercheez/U5jDh/1/

The data used is fairly specific but I have no idea what's going on.

Many thanks,
Chris
Hristo Germanov
Telerik team
 answered on 02 Oct 2013
1 answer
186 views
Hello,

I have a Kendo Grid and I am doing both client and server side validation when the fields in a row of a grid are modified. I am able to display the server side validation errors and custom validation errors in  a Toaster by adding them to the Toaster in the Grid Error event . I would like to do the same for client side validation errors as well (For eg. if a value doesn't meet the range specified for that field) I would like them to be added to the Toaster and display them when I click the 'Save' button on that row in the grid. Any help is greatly appreciated.

Alexander Popov
Telerik team
 answered on 02 Oct 2013
9 answers
1.2K+ views
Hi,

a tooltip template of a stacked chart area, that uses dataItem of series (data from JSON dataSource) works as long as you use fixed string category values. If you use data of the datasource (see below) as values for category axis you in tooltip can only access the value of the dataItem the mouse pointer is in/over.

Here's the code (tooltip template not correctly working). Data for category '(model => model.TS)' is of type DateTime (01/012013, 01/02/2013...):

series

.Series(series =>
              {
                  series.Area(data => data.CL).Stack(true).Name("Gespräche verpasst");
                  series.Area(data => data.CO).Stack(true).Name("Gespräche gehend");
                  series.Area(data => data.CI).Stack(true).Name("Gespräche kommend");
              })

category axis

          .CategoryAxis(axis => axis
                                    .Categories(model => model.TS)
                                    .Labels(builder => builder
                                                           .Format(Model.CategoryAxisLabelFormat)
                                                           // TODO calculate step
                                                           .Step(Model.CategoryAxisStep)
                                                           .Rotation(-90))
                                    .Line(line => line.Visible(true))
                                    .MajorGridLines(lines => lines.Visible(false))

tooltip template

.Tooltip(tooltip => tooltip
                                  .Visible(true)
                                  .Template("Zeitpunkt : #= kendo.format('{0:dd.MM.yyyy}', category) #<br/><br/>Gespräche kommend : #= dataItem.CI # <br/>Gespräche gehend : #= dataItem.CO #<br/>Gespräch verpasst : #= dataItem.CL #" + "<br/><br/>Summe : #= dataItem.CI + dataItem.CO + dataItem.CL #")

If you replace '  .Categories(model => model.TS)' with '{ "01/01/2013", "01/02/2013", "01/03/2013" etc }' all values od dataItems are correctly shown in tooltip.
What causes this behaviour?

Thanks for your support
Dirk
T. Tsonev
Telerik team
 answered on 02 Oct 2013
8 answers
318 views
Hello!

I am developing an ASP.NET MVC app in C# using the Kendo Scheduler. One of the requirements is that when an event is created/edited, the app should check for any overlapping events, and warn the user if any exist. This seems quite complex to me, given that both the event being created/edited and events already in the database can have recurrency rules...

So: Is there some recommended approach to tackling this sort of problem? Is there something built into Kendo UI that I could take advantage of? Or does anyone know of a third-party iCal RRULE parser or something that I could incorporate into my app?

Any and all suggestions appreciated!  :-)

Best regards,
  Gunnar

gunnisen
Top achievements
Rank 1
 answered on 02 Oct 2013
1 answer
255 views
The question is how can I override default behavior of TabStrip control to select tabs with TAB on the keyboard?
The default behavior actually allows to switch between tabs using Left/Right keys.
What I'm aiming is to give users an ability to "Tab" through all page controls with the keyboard and then activate this or that tab with Enter. In other words I would prefer to use tabindex attribute but as far as I can see <li> within <ul class="k-tabstrip-items"> are actually tabs, means setting ta bindex for them won't highlight them by default for users. Could you please advise an approach to achieve this?
Petur Subev
Telerik team
 answered on 02 Oct 2013
1 answer
165 views
I have a categoryAxis label that amounts to "Mon 11AM"; I was looking for a way to add a break between the day and time.

Here is how I am currently formatting the categoryAxis:

categoryAxis: {
    field: "date",
    labels: {
        dateFormats: {
            hours: "MMM dd h tt"
        }
    }
}
Thanks.
Iliana Dyankova
Telerik team
 answered on 02 Oct 2013
1 answer
161 views
Using this demo (http://demos.kendoui.com/web/scheduler/selection.html) it is possible to select a single day or multiple days in row (Month view). Is it possible to select multiple dates which do not follow up? For example: 4 october and 12 october.

Thanks in advance!
Vladimir Iliev
Telerik team
 answered on 02 Oct 2013
5 answers
349 views
HI,

I have the following code :
<select id="mlstProdTypes" multiple data-bind="source: prodTypesList, value: filter.prodTypes"
           data-text-field="name" data-value-field="id" class="prodTypesList"></select>




filter.prodTypes is defined as []. Even though I have specified data-value-field, selectedItem { name: "", id: "" }  added to filter.prodTypes instead of adding only the "id"

Please help how to get back only the selected item's data-value-field instead of the selected item ....

Thanks
Aparna



 

 

 

Alexander Valchev
Telerik team
 answered on 02 Oct 2013
1 answer
168 views
If i create an editor widget and set its value to an img tag with a style attribute, the style attribute gets removed when I view the html for the editor (using the "viewHtml" command tool):

<div id="homeBanner" contenteditable="true" style="height: 160px; overflow: hidden; border: 1px dashed red; padding: 0">
    <img src="~/Content/TemplateImages/homeBanner1.png" style="width: 100%" />
</div>
    var bannerEditor = $("#homeBanner").data("kendoEditor");
    bannerEditor.value("<img alt='' src='/ImageBrowser/Image?path=homeBanner.png' style='width: 100%' />");

Expected edited value: <img alt='' src='/ImageBrowser/Image?path=homeBanner.png' style='width: 100%' />
Actual Result:  <img alt="" src="/ImageBrowser/Image?path=homeBanner.png" width="100" />

style tag is missing and width is missing the '%'.
This does not happen on all tags e.g. <p> does not get modified.
Is there a way to prevent this behavior? I want to set any image added to be 100% width.

Thank you!
Vladimir Iliev
Telerik team
 answered on 02 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?