Telerik Forums
Kendo UI for jQuery Forum
3 answers
182 views

Is it possible to bind a column chart to individual fields in a MVVM viewModel? 

We have a calculator with numerous inputs from the with the end result being three main total fields. So these fields are actually calculated based on calculations which doesn't make them quite appropriate for a dataSource object. E.g. 

 

var myViewModel = kendo.observable({
    totalIncome: function(){
        /* get expressions to gather all the input provided by the user */
        return sumOfGetExpressionsAbove;
    },
 
    totalExpenses: function(){
     /* get expressions to gather all the input provided by the user */
        return sumOfGetExpressionsAbove;
    },
 
    /*other fields/properties related to the calculator for various types of incomes, expenses, assumptions etc. These all make up part of the fields used to calculate totals */
})

 

So the total fields are used in two divs show the totals but we also want to show this in a simple 2 column bar chart. 

Is this possible? I don't see any way to bind a chart to two separate fields instead of a datasource? 

Boyan Dimitrov
Telerik team
 answered on 21 Jun 2017
5 answers
330 views

Hi, according to documentation, The data source used by the kendo.ui.TreeList widget. Inherits from kendo.data.DataSource

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.data

But when I try to define  

schema: {
data:"result"

}

 

Widget can't load any data.

Boyan Dimitrov
Telerik team
 answered on 21 Jun 2017
1 answer
289 views

I am working with the Kendo mobile framework and am trying to use the bootstrap theme:

<link href="Content/kendo/2017.2.504/kendo.common.min.css" rel="stylesheet" />
<link href="Content/kendo/2017.2.504/kendo.default.min.css" rel="stylesheet" />
<link href="Content/kendo/2017.2.504/kendo.mobile.all.min.css" rel="stylesheet" />

 

var app = new kendo.mobile.Application(document.body, {
        skin: "bootstrap"
    });

 

This isn't working, so I'm wondering what the proper css files are.

Tsvetina
Telerik team
 answered on 21 Jun 2017
1 answer
564 views

Hello,

When I change the material theme to the default theme, the image inside the image-only button is not vertically aligned in the middle anymore: http://dojo.telerik.com/enefU/3

I have a similar issue with toolbar buttons too: http://dojo.telerik.com/OCICi

Currently I am trying to solve the issue with following CSS style, but it's not perfect:

.k-button .k-image {
    vertical-align: middle;
}

Any recommendations?

 

Best regards,

Kaan

Orlin
Telerik team
 answered on 21 Jun 2017
1 answer
401 views
In my chart , Legends are placed on the right of the chart area. Height of my chart is very high. Everytime user has to come to the center of the page to check the legends. Is there a way to place the legend at the top of the page and move down along with the scrolling of the page down. Please let me know if my question is not clear.
Tsvetina
Telerik team
 answered on 20 Jun 2017
2 answers
421 views

Is there a way to add a target marker in the donut chart?

There are three slices in the chart. The first slice is the actual value, the second slice is the remaining value to reach the target and the third slice is the remaining value to 100%. See image: kpi-target.png

If the target has been reached or surpassed then the chart will be two slices (actual value and remaining to 100%). See image: kpi-target-2.png

Thanks.

Jimmy
Top achievements
Rank 1
 answered on 20 Jun 2017
4 answers
551 views

We have 'selectable' set for our scheduler as it adds great easy and fast time selections while the user has the editor open (took out modal overlay to allow them to interact with scheduler while editor is open). 

However, this has the unfortunate side effect of browser behavior jumping down the page to focus the scheduler when you click inside if you were not previously focused on the scheduler... 

I solved this by setting the height of the scheduler to the users browser window height, so the scheduler is always in view and the jumping stops. My only concern is that the all day slot is not included in the scrollable scheduler  section (the overflow of the scheduler time slots that don't fit in the view). Therefore... if someone has 20 all day events they are seeing in the current view, it is going to push the rest of the scheduler halfway down the page and greatly reduce visibility, but we need the all day slots.

Is there a better way to handle the browser jumping issue? Or is there a way to set a max height on the all day slot and make that scrollable? Or have it be part of the scrollable part of the scheduler?

Sayer
Top achievements
Rank 1
 answered on 20 Jun 2017
1 answer
211 views

Hello,

I do not see the Show Business hour toggle button or footer in my Scheduler. Even in Kendo demo Basic Scheduler HTML Shows the button but ASP .NET/MVC demo does not. What am i missing. When i am Setting workdaystart and workdayend will it still Show the ShowBusinessHour button?

@(Html.Kendo().Scheduler<MvcDesktop.Models.Scheduler.TaskViewModel>()
.Name("scheduler")
.Date(( DateTime)ViewBag.CurrentDay)
.WorkWeekEnd((int)ViewBag.WorkWeekEnd)
.MinorTickCount(Convert.ToInt32(Session["interval"]))
.WorkDayStart(new DateTime(System.DateTime.Today.Year, System.DateTime.Today.Month,System.DateTime.Today.Day,ViewBag.StartHour, ViewBag.StartMinute, 00))
.WorkDayEnd(new DateTime(System.DateTime.Today.Year, System.DateTime.Today.Month,System.DateTime.Today.Day,ViewBag.EndHour, ViewBag.EndMinute, 00))
.Height(800)
.Views(views =>
{
views.DayView(dayWeekView => dayWeekView.Selected(ViewBag.ShowDay).DateHeaderTemplate("<span class='k-link k-nav-day'>#=kendo.toString(date, 'ddd dd.M.')#</span>")).ShowWorkHours(ViewBag.ShowWorkDay);
views.WorkWeekView(workWeekView => workWeekView.Selected(ViewBag.ShowWorkWeek).DateHeaderTemplate("<span class='k-link k-nav-day'>#=kendo.toString(date, 'ddd dd.M.')#</span>"));
views.WeekView(workWeekView => workWeekView.Selected(ViewBag.ShowWeek).DateHeaderTemplate("<span class='k-link k-nav-day'>#=kendo.toString(date, 'ddd dd.M.')#</span>")).ShowWorkHours(ViewBag.ShowWorkDay);
views.MonthView(workmonthView => workmonthView.Selected(ViewBag.ShowMonth));

})

 

Thanks

 

Anmaika

Anamika
Top achievements
Rank 1
 answered on 20 Jun 2017
6 answers
236 views

See the live Telerik Demo: http://demos.telerik.com/kendo-ui/spreadsheet/sorting-filtering

Steps to reproduce:
1. Click the filter dropdown on the "Client" column header.
2. Expand the "Filter by value."
3. Check the top 5 client names.
4. Click the "Apply" button.
5. The grid refreshes with the filter applied.
6. Click the filter dropdown on the "Client" column header (again).
7. Click into the filter by condition.
8. Select "Text contains".
9. Type "hill".
10. Click the Apply button.

 

Notice nothing happens when it should apply the filter and show the item "Agnes Hill".

Problem:
This is broken behavior and doesn't match what Google Sheets or Excel does. Nor does it act in a way that is user friendly. Both Excel and Google sheets allow you to select *both* a filter by value *and* a filter by condition. In the current Spreadsheet implementation, it seems broken and you can't do this unless you apply the filters in the reverse order (first by condition, then by value) - in which case the filter for "condition" in the dropdown loses the filter value (another bug).

Expected behavior:
After step 10, the filter should be applied.

Veselin Tsvetanov
Telerik team
 answered on 20 Jun 2017
3 answers
1.5K+ views

Hi Telerik folk,

Once upon a time, I stumbled upon on an undocumented "feature" - Kendo Grid template take javascript function as value. e.g:

{
    // taking function as value
    template: function(data) {
        return "Name: " + data.name;
    },
    // string template
    template: "Name: #: name#",
}

I vaguely remember reading somewhere (in this forum?) there is a performance different between passing a function to template option vs passing string version. Can you confirm that? If so, how (is it memory usage? CPU? rendering time?) and why? We are finding this "template function" to be very convenient and want to use it more, but want to know if and what price we pay for it.

Thanks you.

Stamo Gochev
Telerik team
 answered on 20 Jun 2017
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
Drag and Drop
Application
Map
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?