Telerik Forums
Kendo UI for jQuery Forum
1 answer
647 views
I have configured a Kendo ComboBox as follows:

    var junk = $("#junk").kendoComboBox({
        dataTextField: "Code",
        dataValueField: "Id",
        dataSource: {
            type: "json",
            //serverFiltering: true,
            transport: {
                read: {
                    url: "myServlet?action=ReadJunk",
                    contentType: "application/json;charset=utf-8",
                    dataType: "json"
                }
            },
            schema: {
                model: {
                    id: "Id",
                    fields: {
                        Id: {
                            type: "integer"
                        },
                        Code: {
                            type: "string"
                        },
                        shortDescription: {
                            type: "string"
                        }
                    }
                }
            }
        },
        change: function(e){
            // in here I want to set the ShortDesc widget's content to the selected shortDescription
            $("#ShortDesc").value = "shortDescription";  // this doesn't work
        }
    }).data("kendoComboBox");



The values ID, Code, and shortDescription are properly being returned by my Java Servlet. In the change event I would like set the value of another control to the value of shortDescription that is associated with the selected ComboBox item. What is the proper format for accessing this value?

Thanks

Steven
Georgi Krustev
Telerik team
 answered on 07 Oct 2014
3 answers
123 views
I am trying to bind to a list view, but with no luck, I have checked with fiddler that data contains an array and is populated correctly.
Where am I going wrong thanks

var vm = kendo.observable({ jobs: data });
kendo.bind($("#jobs-list"), vm);



<ul id="job-ul" data-role="listview" data-style="inset" data-type="group" data-template="jobs-list-template" data-bind="source: jobs"></ul>
 
<script type="text/x-kendo-template" id="jobs-list-template">
    <li class="row job-list-item" data-bind="attr: {'data-job-id': JobId}">
        <h3><span data-bind="text: Property"></span> <span data-bind="text: LocationName"></span></h3>
    </li>
</script>
Alan Mosley
Top achievements
Rank 1
 answered on 07 Oct 2014
8 answers
1.7K+ views
I had been getting random errors when navigating through my app. After digging down into the issue if found the cause.

When elements are removed from the down the scope must be destroyed. Angular Kendo listens to the $destroy event and responds by  removing any remaining event handlers as to minimize memory leaks.

Starting at this this method:
```
// Cleanup after ourselves
scope.$on( '$destroy', 
   widget.destroy();
});
```

I only have the minified version of kendo.all.js, but the destroy method goes a little like

```
destroy: function() {
this.wrapper.off(y).find("*").off(y);
this._popup && (this._selector.destroy(), this._popup.destroy());
this._selector = this._popup = this.wrapper = null;
h.fn.destroy.call(this)
}
```


The issue for me is the wrapper property is null by the time destroy is invoked. My guess is Angular and  JQuery removes this element before kendo has the chance to do so.





Alex Gyoshev
Telerik team
 answered on 07 Oct 2014
3 answers
106 views
When I'm using appendTo if i try to remove the widget instance to show just one notification at the same time the wrapper element is also removed.

example ('Static in the right panel', then 'Hide all notifications'): http://dojo.telerik.com/alOyo

Dimo
Telerik team
 answered on 07 Oct 2014
1 answer
120 views
Hello,

I have realized that when we move an all-day-event the scheduler preserves the start time (changing only the hour) but when resizing it resets the time to 00h00m.
Would it be possible to keep the selected time and only change the date? 

Thank you very much in advance for your help.

Vladimir Iliev
Telerik team
 answered on 07 Oct 2014
1 answer
567 views
Hello,

  My requirement has to show ellipsis in Grid if text is long and when user click or mouse over the ellipsis the full text should come up as bubble or popup window.
This page is show the history of data. there this column has both new value and old value. mock up of the design is attached. 

1st Attached before clicking to ellipsis and 2nd after clicking to ellipsis
Dimo
Telerik team
 answered on 06 Oct 2014
5 answers
136 views
Hello everybody. 

I have a kendo chart on MVC which is showing some information with a date axis for a year. The maximum number of points allowed is 365 (one for each day of the year). 
The default display setting is set to a "complete year view" with just 12 points (each one for each month of the day). However, I have implemented a drill in custom function where on the series click the chart displays the 31 points related to the clicked month.  

However, my chart does not always have the full information so I might not have 365 points to show. Therefore, I am using ChartLineStyle.Smooth, to join the existing points. On the full year view, The points join smoothly just as I want. However, when I drill in the data for the month appears to be isolated from the subsequent points in the series (there is no smooth line connecting to the next point). Is there a way to connect the different data points with a smooth line even though they are not being shown?

 I have a attached a couple of files to  show you what I currently have vs what I want.

Greetings,
Luis.

Hristo Germanov
Telerik team
 answered on 06 Oct 2014
7 answers
2.7K+ views
Hello!

I built a custom theme in ThemeBuilder for Kendo UI based on Bootstrap theme.  Now I have the colors that I want, except for a couple of places.  For example Calendar and DatePicker Selected Date has a dark gradient in the background.  How do I get rid of it?

I read a proposed solution here: http://stackoverflow.com/questions/13507971/kendo-ui-picker-css-issue, but it doesn't seem to work for me.

Please help me address this!

Thank you!

Sergey
Sergey
Top achievements
Rank 1
 answered on 06 Oct 2014
1 answer
131 views
I have a grid where I have a data element that is being received from  my data store as
        schema: {
            model: {
                id: "junkTypeId",
                fields: {
                    junkTypeId: {
                        type: "integer"
                    },
                    junkTypeDesc: {
                        type: "string"
                    }
                }
            }
        }

I display junkTypeDesc in my grid, for that is the human readable form of this datum.I have created a custom popup editor with a dropdownlist of all possible "junks". The dataTextField of the dropdownlist is set to junkTypeDesc and the dataValueField is set to junkTypeId. I have bound the dropdownlist to value:junkTypeId.

The popup editor window works great. The proper initial value is selected in the dropdownlist. I can drop down the dropdownlist and select a new junk. When I press the update button the windows is dismissed and I see (using fiddler) the new value of junkTypeId being sent to the backend but junkTypeDesc is still set to the old text value. In addition, the column in the grid is still set to the old text value.

I know that this is because I am binding to junkTypeId and not junkTypeDesc. But I need to do this because the ID is what is sent to the backend. How can I get  the grid to show the new value of junkTypeDesc after I close the popup editor. Perhaps there is an event that I can attach to to update the appropriate grid cell.

I hope this description makes sense, it is somewhat difficult to describe.

Can anyone help me out with this problem?
Alexander Valchev
Telerik team
 answered on 06 Oct 2014
1 answer
108 views
I have a data source that is bound to an XML file. The XML file in many places contains XHTML nested inside the elements. In those cases, I need the raw XHTML to be emitted into the template.
So for the linked example, I would expect the template to emit the raw XHTML below:

<body xmlns="http://www.w3.org/1999/xhtml">Markup<br/>(11th District)</body>

How can I accomplish this?

Alex Gyoshev
Telerik team
 answered on 06 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
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?