Telerik Forums
Kendo UI for jQuery Forum
1 answer
81 views

Hi,

I have 3 different object / node as below, and I am trying to form the finalObj / node which is the union (unique tree list) of the 3 nodes..

Is there a method in tree view with which I can union 3 objects (nodes)  based on text or id ?

First node: 
[ { text: "TreeRoot", items: [ { text: "Subgroup1" }, { text: "Subgroup2" } ]}] Second Node: var obj2= [ { text: "TreeRoot", items: [ { text: "Subgroup3" } ]}] Third node: var obj3= [{ text: "Subgroup3", items: [ { text: "subgroup5", items: [ { text: "subgroup6", items: [ { text: "subgroup7", items: [ { text: "subgroup8" }] }] }] }]}]
Final expected node:
var finalObj= [ { text: "TreeRoot", items: [ { text: "Subgroup1" }, { text: "Subgroup2" }, { text: "Subgroup3", items: [ { text: "subgroup5", items: [ { text: "subgroup6", items: [ { text: "subgroup7", items: [ { text: "subgroup8" }] }] }] }]}]}]
Atanas Korchev
Telerik team
 answered on 09 Jan 2013
1 answer
81 views
Is there an easy way to only allow a user to select say 3 items in a listview with checkboxes?
Alexander Valchev
Telerik team
 answered on 09 Jan 2013
2 answers
2.4K+ views
I don't want the drop zone, just the button for uploading a single file.  Any way to do this via configuration?
T. Tsonev
Telerik team
 answered on 09 Jan 2013
1 answer
105 views
Hi,

I would like to know what is the limit of items you can display in Sub Menu. I have 40-50 items in sub menu and it only displays 25. I think it is limited to the screen height and there is no way you can scroll up/down on submenu. Could you please help me out on this?

Thanks
Tanweer Badami
Alex Gyoshev
Telerik team
 answered on 09 Jan 2013
3 answers
115 views
Hi,
I try to create a grid with Kendoui. The data are showed in the list, but the pager doesn't work. It shows No items to display. 

And if I click a column for sorting for more than three times, an error, "Uncaught TypeError: Cannot read property 'length' of undefined", will be through out at " that.length = array.length;" (line 4690 of kendo.web.js in kendoui.trial.2012.3.1114). 

The json object from Java controller is 
{"data":[{"id":9,"name":"asfsasa","number":"d","type":2,"status":"asdas","startDate":"2012-01-29","endDate":"2012-01-31","contact":"","vendor":"","hierarchy":"standalone","master":null},{"id":12,"name":"aaaaa","number":"aaaaa","type":2,"status":"aaaaaa","startDate":"2012-01-01","endDate":"2012-01-28","contact":"","vendor":"","hierarchy":"standalone","master":null},{"id":1,"name":"test1","number":"test1","type":1,"status":"test1","startDate":"2012-01-01","endDate":"2012-01-29","contact":"test1","vendor":"test1","hierarchy":"standalone","master":null},{"id":2,"name":"aaa","number":"aaa","type":1,"status":"aaa","startDate":"2012-01-01","endDate":"2012-01-27","contact":"aa","vendor":"aa","hierarchy":"standalone","master":null}]}

Please see the source code and screen shot in attachment. Could you help me? Thanks a lot.

Best regards
Shi Nuo
Rosen
Telerik team
 answered on 09 Jan 2013
1 answer
82 views
Hi all,

I just started to work on mobile with Icenium (really nice ;-)) and I wanted to use the kendo datasource to read&write datas to my existing SQL DB (through custom web services).

But what happens if the device is offline? I want to have the last downloaded datas displayed when the user closes the app and re-open it later when he is offline. Can I achieve that easily or I have to put in place a local storage? 

Thanks for your help.


Jordan
Telerik team
 answered on 09 Jan 2013
3 answers
1.1K+ views
My drop down list, which is in a grid column is set up as follows:

...
editor: function (container, options) {
                      $('<input data-bind="value:Operator"/>')
                        .appendTo(container)
                        .kendoDropDownList({
                            optionLabel: " ",
                            dataSource: Adhoc._operatorDataSource,
                            dataTextField: "Description",
                            dataValueField: "ID",                        });
                  },
...

The control works as expected in edit mode, but when the control resolves from edit mode, the ID is displayed in the grid column. I want the text to be displayed in the grid column. What is necessary to make this happen?

Thanks!
Robert
Top achievements
Rank 1
 answered on 09 Jan 2013
0 answers
71 views
k
DISREGARD
Michael
Top achievements
Rank 1
 asked on 08 Jan 2013
2 answers
1.4K+ views
Hello, 

is it possible to select a node by the user to be prevented?


Thanks for your answers!  
Alexander
Alexander
Top achievements
Rank 1
 answered on 08 Jan 2013
1 answer
128 views
So I've been working in jsFiddle for quite a while lately trying to get grid editing working the way I've envisioned.

Essentially I have a grid describing some items, and costs associated with them. When toggling a button I want to be able to prevent my editable fields from being edited which I have been able to do. Because the costs on these items are so minimal they go past 2 decimal places of significance I've had to tell the grid to use an editor in which I create a numericTextBox and edit my values from there.

Here's where I run into an issue. I can no longer figure out how to perform any required field validation of my override columns after a value has been changed. I've tried assigning it as an additional validator on the numericTextBox and as a required field in both the column definitions and dataSource to no avail...

Ideally what I want to find a null value and replace it with the default, however I have not been able to tie into any blur, validate, edit, or save events which will let me change the value to default in the numericTextBox when deleted. I would need it to not only persist to the dataSource, but also reflect the default value in the grid as well. You can see my attempt at trying to do this on blur of my numericTextBox where I attempt to set the value to 5. If you delete the value entirely sometimes the text box will flash "5.00" very briefly before saving the null value.

So on blur of a property in a batch edit I'm looking to get a non-generic grid editor control to validate that a field is required, or in the more optimal case, replace it's value with another value.

I have a link to the jsFiddle I have been using to test this out if it helps: http://jsfiddle.net/sparksterz/YFqNC/
Dimiter Madjarov
Telerik team
 answered on 08 Jan 2013
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?