Telerik Forums
Kendo UI for jQuery Forum
1 answer
290 views
I have a chart that displays a tooltip with the value. I need it to also display the date associated with the value.

This is financial data, so I need it to show in the tool tip "34,000 at Mar 31" not just "31,000" as it does now.

Here's my chart:

Html.Kendo().Chart<AccountPerformance>(Model.Results)
    .Name("chartMKT")
    .Title("Market Value")
    .Legend(legend => legend.Visible(false))
    .Series(series =>
            series.Line(model => model.Metrics.MarketValue)
                  .Name(Model.ColumnTitle)
                  .Labels(false)
    )
    .ValueAxis(axis => axis
        .Numeric()
        .Labels(labels => labels.Format("{0:C0}")))
    .CategoryAxis(axis => axis
        .Date()
        .MajorGridLines(builder => builder.Visible(false))
        .Categories(model => model.MarketDate)
        .Labels(labels => labels.Format(mktValFormatter)
        .Rotation(mrkValRotation)))
    .SeriesDefaults(builder => builder.Line().Color("#005984"))
    .Tooltip(tooltip => tooltip
          .Visible(true)
          .Format("{0:C}")
          .Color("white")
          .Background("black")
          .Template("#= value #")
    )
     .Render();
Iliana Dyankova
Telerik team
 answered on 23 Jul 2013
10 answers
164 views
Hi
 I am having an issue when you scroll down a listview with fixed headers then refresh the list the headers get all out of sync.

Example here http://jsfiddle.net/M5FHN/9/

Scroll down then click refresh, then scroll up and the fixed headers are messed up - its like its not counting the offset of the current scroll position when redrawing.


Any ideas how to get over this?

Cheers
Kiril Nikolov
Telerik team
 answered on 23 Jul 2013
1 answer
397 views
Trying to populate a dataviz chart with remote data but no data is plotted and "TypeError: a[0] is undefined" is thrown by kendo.dataviz.min.js.

chart is setup as follows:

function createChart(Description) {
            var chartds = new kendo.data.DataSource({
                transport: {
                    read: {
                        type: "POST",
                        url: "../AJAX/service.asmx/GetMetricTrend",
                        dataType: "json",
                        contentType: "application/json"
                    },
                    parameterMap: function (data, operation) {
                        if (operation != "read") {
                            // web service method parameters need to be send as JSON. The Create, Update and Destroy methods have a "products" parameter.
                            //return JSON.stringify(data);

                        }
                        else {
                            // web services need default values for every parameter
                            data = $.extend({ intMetricID: 17}, data);

                            return JSON.stringify(data);
                        }
                    }
                },
                schema: {
                    data: "d"
                }
            });

            $("#chart").kendoChart({
                dataSource: chartds,
                title: {
                    text: Description + " Weekly Trend"  
                },
                legend: {
                    position: "bottom"
                },
                seriesDefaults: {
                    type: "line"
                },
                series:
                [{
                    field: "Value",
                    name: "Actual Value"
                }],
                categoryAxis: {
                    field: "Week",
                    labels: {
                        rotation: 0
                    }
                },
                valueAxis: {
                    labels: {
                        format: "N0"
                    },
                    majorUnit: 10
                },
                tooltip: {
                    visible: true,
                    format: "N0"
                }
            });
        }


JSON response:

{"d":[{"__type":"clsMetricTrendValues","Week":5,"Value":104.00},{"__type":"clsMetricTrendValues","Week":6,"Value":109.00},{"__type":"clsMetricTrendValues","Week":7,"Value":94.00},{"__type":"clsMetricTrendValues","Week":9,"Value":96.00},{"__type":"clsMetricTrendValues","Week":10,"Value":90.00},{"__type":"clsMetricTrendValues","Week":12,"Value":86.00},{"__type":"clsMetricTrendValues","Week":13,"Value":90.00},{"__type":"clsMetricTrendValues","Week":14,"Value":95.00},{"__type":"clsMetricTrendValues","Week":15,"Value":98.00}]}


following .js files are included:

jquery-1.8.2.min.js
jquery-ui-1.9.2.custom.min.js
kendo.dataviz.min.js
kendo.web.min.js

Thanks
Iliana Dyankova
Telerik team
 answered on 23 Jul 2013
1 answer
88 views
I am creating an app with Kendo UI that you can see in the attached file.

Here everything is MVVM: the whole tabstrips are populated through JS variables loaded through Ajax. All the tabs you don't see the content of are lists of items and charts, where you can add/edit/remove items and it's directly visible without reload. On the "Informations" tab (the one you see) however, there are general information blocks that I want to be able to edit through forms in a popup. 
Although I'd know how to achieve this with regular JS, I'd like to know which way you'd recommend to use with Kendo MVVM - knowing there is an existing observable with all the data.

Thanks!
Daniel
Telerik team
 answered on 23 Jul 2013
1 answer
125 views
When my column chart is rendered with a few data points, they look thin and widely spaced apart. Have a look at the Current_state.png. I want it to look like the desired_state.png 

Here's my existing chart:

Html.Kendo().Chart<AccountPerformance>(Model.Results)
    .Name("chartPCT")
    .Title("% Return")
    .Legend(legend => legend.Visible(false))
    .Series(series =>
            series.Column(model => model.Metrics.Return)
                  .Name(Model.ColumnTitle)
                  .Labels(false)
    )
    .ValueAxis(axis => axis
        .Numeric()
        .Labels(labels => labels.Format("{0}%")))
    .CategoryAxis(axis => axis
                              .Date()
                              .MajorGridLines(builder => builder.Visible(false))
                              .Categories(model => model.Observation)
                              .Labels(labels => labels.Format("MMM")))
     .SeriesDefaults(builder => builder.Column().NegativeColor("#BE2D55").Color("#C0BD7F"))
     .Tooltip(tooltip => tooltip
          .Visible(true)
          .Color("white")
          .Background("black")
          .Format("{0:P2}")
          .Template("#= value #")
    )                             
                                   
    .Render();
Iliana Dyankova
Telerik team
 answered on 23 Jul 2013
4 answers
501 views
I'd like to know if this scenario is possible:
A user expands a row in a master/detail grid, and clicks on a cell with a link that redirects him to another page.
When the user comes back on the grid page, the previously expanded row is expanded.

It would mean saving the expanded row when the user leaves the page (is there a method to retrieve the expanded row?), and expand it again when he comes back (is there a method to expand a row based on for example the ID?)


Marcin
Top achievements
Rank 1
 answered on 23 Jul 2013
6 answers
315 views
Is there any way to get server side data passed into a view into a Kendo MVVM view model? Like with knockoutjs, we use the "ko.mapping" plugin... is there a way to define how to populate a view model with a given JSON object? Or the behaviors, etc?
Alexander Valchev
Telerik team
 answered on 23 Jul 2013
2 answers
141 views
Search is failing me. Is there a known issue with the performance of selecting grid rows in IE8? With 15 columns and 100 rows,selecting a row takes 3 seconds... 


.Selectable(select => select.Type(GridSelectionType.Row).Mode(GridSelectionMode.Multiple))


Works fine in Chrome. We don't have that option though.


Update: Upgrading to jQuery 1.8.2 may have resolved this.
Dimo
Telerik team
 answered on 23 Jul 2013
1 answer
178 views
Hi,

We have a grid with a lot of columns - inline editing. Some of these columns have custom validations. For example we have 3 date fields with custom validations attached to them.
If a validation fails then it will show the message next to the date column. But the problem is when this happens and we scroll to the right the grid columns become unaligned.
ie. the headers don't stay above the column values when we scroll to the right - perhaps to accomodate the validation messages.

1) Is there a way to rectify the above situation?
2) If it is not possible to fix the above, what is the name of the class that needs to be changed to reduce the left and right padding for the validation message - this is more than is needed currently - if we reduce this the grid might look a little better.

Thanks,

SJ
Daniel
Telerik team
 answered on 23 Jul 2013
3 answers
181 views
Hi!

On the Settings screen of my app, which has a left Drawer for the main menu,  I've put a ListView with text inputs inside.
The thing is: if you touch inside the input and try to scroll (i.e., touch and move), you'll be able to push the view to the left.

Noticed this because when you focus the text input for editing, the screen moves so the input is centered.

I'm testing on iOS.

Thanks in advance.
Petyo
Telerik team
 answered on 23 Jul 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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?