Telerik Forums
Kendo UI for jQuery Forum
1 answer
157 views
Please reference the attached file.  

Creating an ObservableObject hierarchy yields an Object rather than an Observable for data members that start with the underscore character.

To reproduce, load the attached file, place a break point on line 31 which reads:
var root2 = vm2.get('_root');

Observe that root1 and root2 have been created using identical techniques, except that root2 has a member who's name starts with the underscore (i.e. _root).  Observe that root1 is an observable while root2 is an object.  Step over this line and note that the bind to the change event fails because root2 is not an observable.

How can one build a viewmodel when some members of the object hierarchy start with an underscore?
Rosen
Telerik team
 answered on 18 Dec 2012
10 answers
284 views
Heya,

I have a problem with the

 

scrollview widget. In this demo I want to change the options ( Photo Album,Cities, Sunset) each time I change the photo in the scrollview. For example, for each photo(city) I want to provide a small description about the city below the separation line. Does anyone have any suggestion?

-Afxe
Petyo
Telerik team
 answered on 18 Dec 2012
5 answers
8.3K+ views
I ve got a kendo grid and i want to a dblclick event on each row

$('tr').dblclick(function() { alert('hola'); });

But this doesnt work. If i want a dobleclick event o all table i can use 
$('table').dblclick(function() { alert('hola'); }); and this works.

What is it the problem?

I try to debug javascript y chrome and the first code ( $('tr').dblclick(function() { alert('hola'); }); ) works and 
can select different rows.
 
The same problem ocurrs with click event.
Daniel
Top achievements
Rank 2
 answered on 18 Dec 2012
2 answers
1.1K+ views
I have a button inside a <form> that always submits the entire form, even though it's not a submit button.

HTML:
<button id="button-app-preview" class="k-button">Oppdater</button>

JS:
$("#button-app-preview").click(preview);
function preview() {
    $("#app-preview").html(template({
        overskrift: $("#input-overskrift").val(),
        ingress: $("#input-ingress").val(),
        brodtekst: $("#input-brodtekst").val(),
        bildeurl: $("#bilde-sti").val()
    }));
}

Any ideas how come this button when clicked, first performs the preview() function, but then after it submits the entire form?
Robin
Top achievements
Rank 1
 answered on 17 Dec 2012
3 answers
124 views

IN kendo.core.js v2012.1.322
File :
// Internet Explorer does not support setting the innerHTML of TBODY and TABLE elements
        try {
            table.innerHTML = "<tr><td></td></tr>";

            /**
             * Indicates whether the browser supports setting of the &lt;tbody&gt; innerHtml.
             * @name kendo.support.tbodyInnerHtml
             * @property {Boolean}
             */
            support.tbodyInnerHtml = true;
        } catch (e) {
            support.tbodyInnerHtml = false;
        }


IN kendo.web.js2012.1.322
File
var tbodySupportsInnerHtml = kendo.support.tbodyInnerHtml,
if (tbodySupportsInnerHtml) {
                that.tbody[0].innerHTML = html;
            } else {
                placeholder = document.createElement("div");
                placeholder.innerHTML = "<table><tbody>" + html + "</tbody></table>";
                tbody = placeholder.firstChild.firstChild;
                that.table[0].replaceChild(tbody, that.tbody[0]);
                that.tbody = $(tbody);
            }

Atanas Korchev
Telerik team
 answered on 17 Dec 2012
2 answers
790 views
hi,

Is there any way to programmatically get the datasource in a grid with the items sorted as the user has selected?

The following:

$(grid).data("kendoGrid").dataSource.view()

takes into account grid paging also, and does not return the items of the entire datasource sorted. Can I get somehow all dataitems sorted regardless of paging?

Thanks in advacne

Michalis
Top achievements
Rank 1
 answered on 17 Dec 2012
2 answers
87 views
Hi,

Would you please surround grid popup editor buttons with div tag so that they do not wrap around in some cases when custom styling is used.

At present your code looks like:
html += that._createButton({ name: "update", text: updateText, attr: attr }) + that._createButton({ name: "canceledit", text: cancelText, attr: attr });
However it should look like:
html += '<div>' + that._createButton({ name: "update", text: updateText, attr: attr }) + that._createButton({ name: "canceledit", text: cancelText, attr: attr }) + '</div>';
Sypher
Top achievements
Rank 1
 answered on 17 Dec 2012
1 answer
796 views
Hi All,

As per project requirement, I have to display kendo list-view as popup on button/link click?
How we can do that? Please help in this case. Immediate response would be appreciated.

Regards,
Partha.
Vladimir Iliev
Telerik team
 answered on 17 Dec 2012
1 answer
86 views
Hi,

I have a touch event in a kendo template illustrated in the following jsBIN:
http://jsbin.com/isatoz/33/edit

Can you tell me why this don't work?

Thanks,
Martin
Petyo
Telerik team
 answered on 17 Dec 2012
1 answer
1.1K+ views
Hi,

I am using kendo tabstrip to display kendo tree view component.

I have populated kendo tree view by using hierarchical JSON structure, some of the nodes are too long to display it inside the tab hence I need to wrap the node text. Is there a way to wrap node text?

Thanks,
Barani
Petur Subev
Telerik team
 answered on 17 Dec 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?