Telerik Forums
Kendo UI for jQuery Forum
3 answers
111 views
kendo.ns should be defined as:
public ns: string;

See http://docs.kendoui.com/howto/declarative_initialization at the bottom.

Until this is fixed ns must be set thus:
(<any>kendo).ns = "kendo-";

Atanas Korchev
Telerik team
 answered on 16 Apr 2013
3 answers
517 views
Hi;

I'm adding a custom tool ("save") to my editor. The tool works great but it looks lousy ( ^_^ ). The out of the box tool set icons are in a single .png file and I'm not familiar with how the individual icons are accessed.

Any tips on creating/adding icons for custom tools?

EDIT:

Nevermind. I implemented "Save" outside the editor.
Dimo
Telerik team
 answered on 16 Apr 2013
1 answer
169 views
I can't seem to get list bullets to display in the treeview. I've even tried using !important and disabling the list-style rules that set the type to none using firebug.  How can I achieve displaying bullets next to items? I wrote my rule so that they only display at a certain depth. My view is a maximum of 3 levels deep and I want the bullets on the 3rd level li's.
Dimiter Madjarov
Telerik team
 answered on 16 Apr 2013
2 answers
93 views
With 411...

If the view's property "wrap" is set to false, and the view has a list of root elements, and the view contains white space between elements on the root level, calling layout.showIn will throw an exception.
// no problems
layout.showIn("#content", new kendo.View("<div>hey ho</div><div>hey ho</div>", { wrap: false }));
// exception
layout.showIn("#content", new kendo.View("<div>hey ho</div> <div>hey ho</div>", { wrap: false }));
The exception is thrown in kendo.bind as follows.
Uncaught TypeError: Object #<Text> has no method 'getAttribute'
Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 16 Apr 2013
15 answers
925 views
Hi, After updating to .2013.1.319. I been having an internal js error on kendo.web.js. It seems that when I append a "new_node" into the tree view and try to a "child" to the new node using 

treeView.data('kendoTreeView').append(child, new_node), it cannot find the dataItem of the "new_node" in the tree view.

This occurs in kendo.web.(min).js at the "_dataSourceMove: function". 
The line  "referenceDataItem = destTreeview.dataItem(parentNode);" seems to give me null and thus when executing "referenceDataItem.loaded()", it will fail.

When I replaced the kendo.web.js to an older commerical version, it seems to work fine. Could I get a little insight into this? Is there new requirements that I need to add into the "new_node" so that it produces a dataItem?

Thanks in advance

Alex Gyoshev
Telerik team
 answered on 16 Apr 2013
2 answers
37 views
Hello,

we are in the process of updating our app to the new Kendo Mobile build 2013.1.319 and using the provided kendo.mobile.d.ts TypeScript definition file.

It appears that the definition of kendo.mobile.ui.ViewBeforeShowEvent is missing the definition of the preventDefault() and the isDefaultPrevented() methods.

I have added them myself, but would obviously appreciate them being added into the released file so I don't have to do it myself again with the next update.

Thanks,
David Sykes
David
Top achievements
Rank 1
 answered on 15 Apr 2013
2 answers
117 views
Hello,

we have just updated to Kendo Mobile build 2013.1.319 and are using the TypeScript definition file provided by it. We are converting our code from the very minimal definition file we had created up until now.

We have a call to jQuery.kendoMobileListView() that looks like this:
      $("#incident-list").kendoMobileListView({
        template: kendo.template($("#template-incident-list").html()),
        dataSource: this._dsIncidents,
        style: "inset"
      });

The template is defined using the pattern:

    <script id="template-incident-list" type="script/x-kendo-template">
      ...
    </script>

This generates a compiler error because the definition in kendo.mobile.d.ts reads as follows:

    interface ListViewOptions {
       ...
        template?: string;
        ...
    }
    kendoMobileListView(options: kendo.mobile.ui.ListViewOptions): JQuery;

Isn't this an error? Why can't I pass in a Kendo template in the template parameter? 

The code above worked fine on the previous version. I will modify the .d.ts file to see if it still runs on the new version as well.

Thanks,
David Sykes
David
Top achievements
Rank 1
 answered on 15 Apr 2013
1 answer
81 views
I've tried running the Kendo Mobile examples in IE10 and Chrome on Windows Server 2012. They work fine in Chrome, however in IE10 desktop, the formatting doesn't work at all. Doesn't Kendo Mobile work on IE10?
Ken
Top achievements
Rank 1
 answered on 15 Apr 2013
0 answers
88 views
I use this:
.DataSource(dataSource => dataSource
.Ajax()
.Aggregates(aggregates =>
{
aggregates.Add(p => p.UnitsInStock).Min().Max().Count();
aggregates.Add(p => p.UnitsOnOrder).Average();
aggregates.Add(p => p.ProductName).Count();
aggregates.Add(p => p.UnitPrice).Sum();
})
.Group(groups => groups.Add(p => p.UnitsInStock))
.Read(read => read.Action("Aggregates_Read", "Grid"))

Now I want to calculate the sum  of UnitPrice without those price which <0 and background is not transparent(without color);I write the codes down,but it is wrong.
.DataSource(dataSource => dataSource
.Ajax()
.Aggregates(aggregates =>
{
aggregates.Add(p => p.UnitsInStock).Min().Max().Count();
aggregates.Add(p => p.UnitsOnOrder).Average();
aggregates.Add(p => p.ProductName).Count();
aggregates.Add(p => p.UnitPrice).Sum(p.UnitPrice>0&&p.background==transparent);
})
.Group(groups => groups.Add(p => p.UnitsInStock))
.Read(read => read.Action("Aggregates_Read", "Grid"))

ABC
Top achievements
Rank 1
 asked on 15 Apr 2013
6 answers
842 views
If I have a date value in my JSON, and I want to call a function on it to format it in my listview template...how do I go about that?

So if this is my template...and I wanted to format the date value...how would I go about that?
"<li>${Date}</li>"

All the samples with the # syntax are looping results
Ken Lewis
Top achievements
Rank 1
 answered on 15 Apr 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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?