Telerik Forums
Kendo UI for jQuery Forum
2 answers
191 views
I seem to be having problems getting the select to update when I change the item in the underlying observable array (the select's source).  If I add a new item, it appears in the list and looks correct; however, if I edit the name of an item I can't get it to change unless I rebind the viewmodel to the view.

Here is an example:
http://jsfiddle.net/MadCodeMonkey/u8quqvtd/

Is this expected behavior?
Dave
Top achievements
Rank 1
 answered on 16 Oct 2014
2 answers
306 views
Here is slimmed down version of code:
gridDataSource = new kendo.data.DataSource({
        batch: true,
        transport: {
            read: {
                url: 'Equipment'
            },
            destroy: {
                url: 'Equipment',
                contentType: "application/json",
                dataType: 'json',
                type: "DELETE"
            },
            parameterMap: function (options, operation) {
                if (operation == "read") {
                    return "this=works-fine";
                } else {
                    alert('not reading');
                    return kendo.stringify(options.models);
                }
            }
        },
        schema: {
            id: "EquipmentId",
            fields: {
                EquipmentId: { type: "number" }
            }
        }
    });
 
kendoGrid = gridObj.kendoGrid({
        dataSource: gridDataSource,
        selectable: 'row',
        navigatable: true,
        change: rowSelect,
        sortable: true,
        pageable: false,
        editable: { confirmation: false },
        columns: [
            { field: "EquipmentId" },
        ]
    }).data('kendoGrid');

And the read works just fine, I remove a row (or many) with this (selectedRow is populated correctly, just skipped for brevity):
$('#footer-remove').off().on('click', function () {
        kendoGrid.removeRow('table tr[data-uid="' + selectedRow.uid + '"]');
        console.log(gridDataSource._destroyed);
    });

And its shows up in gridDataSource._destroyed, all my tests all show that the gridDataSource is dirty.When I call sync, nothing happens if I am just deleting. What am I missing? Thank you.

Stan
Top achievements
Rank 1
 answered on 16 Oct 2014
2 answers
245 views
Seems like when the separator option is used with a remote datasource and autocomplete only the last filter in the separated input makes it to the server.

http://dojo.telerik.com/aXeGe
Danny Fritz
Top achievements
Rank 1
 answered on 16 Oct 2014
1 answer
125 views
I have a hierarchic javascript object that I pass to kendo observable. Is it better to use get and set on the top-level object with dotted path into the object?
    viewModel.get('current.prType');


Or is it better to use get and set on the lowest level of the hierarchy?
    viewModel.current.get('prType');

Here is a simple jsfiddle sample that demonstrates that both forms work. I just want to know if there is any difference that I should be aware of.

http://jsfiddle.net/ebLxk7at/


Thanks,
randall.

Petur Subev
Telerik team
 answered on 16 Oct 2014
3 answers
87 views
I suspect I know the answer, but gotta ask; do grids work on mobile?
Kiril Nikolov
Telerik team
 answered on 16 Oct 2014
5 answers
440 views
Hello,

In the DayView, there is a red line when there is an task.
Here I have 4 questions:

1)  I want to know what's the use of the red line?
2)  And why the task is so small in such a small column in the right??   It's very difficult for old man to click on such a small event by mouse!
     See the WeekView, if you have series events, it will crowd together, and can't be seen and chosen at all!
3)  What's the big white space on the left for?
4)  Why not place the the event on the big white space on the left? 

Please see the Image attached, I point the 4 questions' place on the image.


yours,
Ivan
Dimo
Telerik team
 answered on 16 Oct 2014
1 answer
102 views
If I'm turning an `<input>` into a kendoDateTimePicker before it is attached to the DOM, how do I then attach the newly wrapped element to the DOM? Just appending the `<input>` element appends an incomplete portion of the control because the `<input>` was wrapped. Was wondering if there was a better way then traversing for the parent `k-widget` class to append.

http://dojo.telerik.com/eqOsU
Alexander Popov
Telerik team
 answered on 16 Oct 2014
1 answer
330 views
Hi
  I didn't know if anyone has ever asked for this

I want to have a page with a large panelbar on it, I'd like to be able to change the order of items within the panelbar via drag and drop, is this possible?

In essence I'll have something at the top of the page that I will filter using items within the panelbar, it may be that the panelbar has 10 sections and it would be useful to drag the bottom panel to the top.

thanks
Daniel
Telerik team
 answered on 16 Oct 2014
1 answer
142 views
I need to create a Multi-Axis chart ,

Double bar chart … Dual Axis 
1st bar  -> Sales   2nd bar -> Cost
Color coded by State 
Line -> Sales Margin
By Month as X-Axis

I am using json web service to bind data.

I am not able to figure out. Please need a help


$("#Chart").kendoChart({
                                                        dataSource: {
                                                            data: result
                                                        },
                                                        legend: {
                                                            visible: false
                                                        },
                                                        series: [{
                                                            type:"column",
                                                            field: "Sales",
                                                            name: "Sales",
                                                            color: "#3A5ECF",
                                                            categoryField: "MonthName",
                                                            tooltip: {
                                                                visible: true,
                                                                template: "#= kendo.toString(value, 'c') # ",
                                                            }
                                                        }, {
                                                            type:"column",
                                                            field: "Cost",
                                                            name: "Cost",
                                                            categoryField: "MonthName",
                                                            color: "#87F5F3",
                                                            tooltip: {
                                                                visible: true,
                                                                template: "#= kendo.toString(value, 'c') # ",
                                                            }
                                                        }
                                                        , {
                                                            type: "line",
                                                            field: "ContributionMargin",
                                                            name: "ContributionMargin",
                                                            color: "#CCCCCC",
                                                            axis: "ContributionMargin",
                                                            tooltip: {
                                                                visible: true,
                                                                format: "{0}%",
                                                            }
                                                        }],
                                                        valueAxes: [
                                                           {
                                                               title: { text: "Sales" },
                                                               labels: {
                                                                   format: "#= kendo.toString(value, 'c') # "
                                                               }
                                                           },
                                                        {
                                                            name: "ContributionMargin",
                                                            title: { text: "Contribution Margin" },
                                                            labels: {
                                                                format: "{0}%"
                                                            }
                                                        }],

                                                        categoryAxis: {
                                                            majorGridLines: {
                                                                visible: false
                                                            },
                                                            field: "State",
                                                            axisCrossingValues: [0, 200]
                                                        }

                                                    });
Hristo Germanov
Telerik team
 answered on 16 Oct 2014
1 answer
277 views
Hello,

I am just at your online demo of localization of the scheduler:


And chose language to zh-CN, all the text on the button in scheduler is translated into Chinese, but not the text on the head of the Month View.
They still show as Sunday, Monday and so on. Also, the datepicker on the scheduler is still in English too.

How to localize the month view's head and datepicker on the scheduler?
Please see the image I cut.

Thanks,
Ivan
Daniel
Telerik team
 answered on 16 Oct 2014
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
Drag and Drop
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
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
Licensing
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?