Telerik Forums
Kendo UI for jQuery Forum
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
331 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
268 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
186 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
175 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
370 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
183 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
1 answer
93 views
Hi,

I am using KendoUI version Q2 2012.
I have added a drpdownlist. I set its SelectedIndex to -1.But when I open a dropdown list it is selecting 0 index by default.
I want to reset selection after every selection.
Following is my code:

@(Html.Kendo().DropDownList()
                                  .Name("BorderWidth")
                                  .HtmlAttributes(new { style = "width: 0px;float:left;" })
                                  .DataTextField("Text")
                                  .DataValueField("Value")
                                  .SelectedIndex(-1)
                                  .Height(150)
                                          .Events(events => events
                                                      .Close("borderWidthChange")
                                                 )
                                  .BindTo(new List<SelectListItem>() {
                                      new SelectListItem() {
                                        Text = "1pt", Value = "1"   
                                      },
                                       new SelectListItem() {
                                        Text = "2pt", Value = "2"   
                                      },
                                       new SelectListItem() {
                                        Text = "3pt", Value = "3"   
                                      },
                                       new SelectListItem() {
                                        Text = "4pt", Value = "4"   
                                      },
                                       new SelectListItem() {
                                        Text = "5pt", Value = "5"   
                                      },
                                       new SelectListItem() {
                                        Text = "6pt", Value = "6"   
                                      }
                                  })
                                
.Template("${ data.Text } " + "<img src=\"" +
Url.Content("~/Content/Images/Line/") + "${data.Text}.png\" />")

                            )

Kindly help.
Petur Subev
Telerik team
 answered on 02 Oct 2013
5 answers
360 views
Hi,

I am trying to specify a value with the menu item when I add it to the menu. When I inspect the menu.dataSource I can see the value I specified during initialization, however I don't see a way to associate the select event's e.item object to the menu.dataSource[N] object that the li was created from.

My goal is to store a value with each menu item that is NOT the text of the menu.

Any guidance is appreciated.

Thanks,

Elan
Kamen Bundev
Telerik team
 answered on 02 Oct 2013
3 answers
316 views
I have two grids on a scrolling div.
<div>
    <table id="grid1">
    ...
    </table>
 
    <table id="grid2">
    ...
    </table>
</div>
 
<script>
  $(document).ready(function() {
    $("#grid1").kendoGrid({
      height: 200,
      scrollable: false
    });
 
    $("#grid2").kendoGrid({
      height: 200,
      scrollable: false
    });
 
  });
</script>
Each div is initialized via tables using the standard grid.KendoGrid({...}) method; however, only one of the grids is styled correctly.
What is missing or otherwise causing the style to fail?  Thanks

I am prototyping this in the following jsFiddle:  http://jsfiddle.net/raltman/wcD28/13/

Dimo
Telerik team
 answered on 02 Oct 2013
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?