Telerik Forums
Kendo UI for jQuery Forum
1 answer
240 views
Hey i've a Problem with KendoTreeview. I build a TreeView with a json Datasource
[
{"id":1,"text":"foo","expanded":true,"items":
[
{"id":2,"text":"foo2","expanded":false,"checked":false},
{"id":3,"text":"foo2-1","expanded":false,"items":
[
{"id":4,"text":"foo3","expanded":false,"checked":false}
]
,"checked":false}
],"checked":true
}
]
JS Code:
$(document).ready(function() {
var dataSource = new kendo.data.HierarchicalDataSource({
transport: {
read: {
url: servlet,
datatype: "json",
contentType: "application/json"
}

},
schema: {
model: {
children: "items",
id: "id"
},
data: function(data) {
var dataArray = eval(data);
return dataArray;
}
}
});

var treeView = $("#treeView").kendoTreeView({

dataSource: dataSource,
dataTextField: "text",
checkboxes: {
checkChildren: true
}
});
It works well but if i use checkChildren: true the pre check is not working. if i use only checkboxes: true without checkchildren pre check works but not check all childs. What is wrong ?

Alex Gyoshev
Telerik team
 answered on 22 Jan 2015
1 answer
161 views
Hi

I am trying to test the save function for an edit to catch the value entered and field id.

However this does not seem to work with the edit popup where I listen to "e.values.name".

Simply changing the edit to "mode: popup" from inline breaks the save function.

http://dojo.telerik.com/OLoQO

Help appreciated
Kiril Nikolov
Telerik team
 answered on 22 Jan 2015
3 answers
230 views
Hi,

In the attached chart I have multiple dynamic line series on the chart which last for varying periods of time however the category axis seems to be generating it's values from the very first data point, so if the first one only lasts for one month then that's all the category axis will represent even though the other lines last for longer. Is there a way to get the category axis to generate its labels dependent on the longest line rather than the first?

Thanks. 
Gabriel
Top achievements
Rank 1
 answered on 21 Jan 2015
1 answer
135 views
We have several grids that have some non-sortable columns and we would like to identify which columns are sortable with some type of visual indicator.

Is there an accepted way to do this. I was thinking of maybe using a sort icon for the sortable columns, is this supported out of the box or do I need to figure out something clever with jquery?
Dimo
Telerik team
 answered on 21 Jan 2015
1 answer
9.5K+ views
I tried to hideColumn(k) in databound event when the whole column has null values. But because my first row of header is colspan of 6 columns, so it did not hide properly.  I could only hide the first column or the second column (contains all the columns).  I tried grid.columns[1].hideColumn(3) but failed as hideColumn is related to grid. 
How can I achieve that?

columns: [
{ field: "facname", title: "Facility", attributes: { style: "text-align:left" }, width: "200px" },
{
title: "",
columns: [
{ field: "envelopes[0]", title: "Food", attributes: { style: "text-align:right" }, width: "90px", template: "#= envelopes[0] == null ? '-' : kendo.toString(envelopes[0], 'c0') #" },

Thanks.
Bertha
Top achievements
Rank 1
 answered on 21 Jan 2015
1 answer
188 views
Hello, 

Infos:

I'm working with kendo 2014.1.318 in an asp.net MVC application : I use the wrappers.

I have an issue with the cascading dropdown on Ipad (IOS 8.1 safari)
The issue is not reproducible on windows browsers, I tried ie9, chrome, firefox and safari for windows : no problem

So, here is the problem:

I have a first dropdown containing a list of brands.
I have a second dropdown with a list of models

First I select a brand 
My dropdown "models" is populated => ok

Then I select a brand with a few models

My dropdown "models" is populated but the popup is not painted: it's all white (see attached screenshot)

But if I touch the popup a few time: the items appears

If I select a brand with a lot of models : no problem

So I think this issue only appears when the number of items in the "models" dropdown is not big enough to activate the scroll in the popup


Has anyone experienced this issue?

Do you have any ideas how to resolve this ?
Samuel
Top achievements
Rank 1
 answered on 21 Jan 2015
6 answers
308 views
I've got a bar graph that is bound to the result of a query.
The query may be grouped by Category, or Category + SubCategory

The data is displayed visually correctly, however, I'm only able to display either the category OR the subcategory across the category axis.  
How can I A. display both, and B. wrap the text so that it will fit?
T. Tsonev
Telerik team
 answered on 21 Jan 2015
2 answers
140 views
http://dojo.telerik.com/EXODI

creating a mask as described below, the last character should be the number zero.
$("#maskedtextbox").kendoMaskedTextBox({
    mask: "\\1\\0A\\ 00\\ 00\\ 000\\ 00\\ L0\\ \\00",
  value: "100 14 36 085 17 W6 00"
});

when the mask renders it renders as 100 14 36 085 17 W6 0_
it loses the last character.  If the last character is not a zero then it seems to work fine but must be some wierd logic in there where it's causing the last number to be lost.
Georgi Krustev
Telerik team
 answered on 21 Jan 2015
1 answer
176 views
I'm trying to create a chart with the x-axis (horizontal) being a date/timeline and the y-axis (vertical) being the values. I want to show each value in the chart (4 values per year), but only displaying the year in the x-axis.

I've been trying to work with the settings on the categoryAxis object, but can't seem to get it to work.

I have illustrated the issue below in two images.

One having the correct x-axis, but not the correct number of dots and the other one having the correct number of dots, but not the correct x-axis. 


Iliana Dyankova
Telerik team
 answered on 21 Jan 2015
12 answers
1.5K+ views
I need a couple of my aggregate fields to be calculated based on the aggregates of other columns. Is this possible?

For example, if I have the following fields:

Revenue, Cost, Margin (Revenue - Cost), Margin % (Margin / Revenue)

For aggregating these fields, sum works fine on Revenue, Cost, and Margin. However, if I want to find the total Margin %, I need to do: SUM(Margin) / SUM(Revenue). Is there a way to do this with the DataSource?
Vachara
Top achievements
Rank 1
 answered on 21 Jan 2015
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?