Telerik Forums
Kendo UI for jQuery Forum
1 answer
263 views

Example of this problem in Dojo

How to resolve?

 

<!DOCTYPE html>
<html>
<head>
    <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
    <title></title>
    <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.2.504/styles/kendo.common-bootstrap.min.css" />
    <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.2.504/styles/kendo.bootstrap.min.css" />
 
    <script src="//kendo.cdn.telerik.com/2016.2.504/js/jquery.min.js"></script>
    <script src="//kendo.cdn.telerik.com/2016.2.504/js/kendo.all.min.js"></script>
</head>
<body>
<div id="example">
 
    <div class="demo-section k-content">
        <div>
            <h4>Check nodes</h4>
            <div id="treeview"></div>
        </div>
        <div style="padding-top: 2em;">
            <h4>Status</h4>
            <p id="result">No nodes checked.</p>
        </div>
    </div>
 
    <script>
        $("#treeview").kendoTreeView({
            checkboxes: {
                checkChildren: true
            },
 
            check: onCheck
        });
       
      $("#treeview").data("kendoTreeView").setDataSource([{
                        id: 9, text: "Reports", spriteCssClass: "folder", items: [
                            { id: 10, text: "February.pdf",checked:true, spriteCssClass: "pdf" },
                            { id: 11, text: "March.pdf", spriteCssClass: "pdf" },
                            { id: 12, text: "April.pdf", spriteCssClass: "pdf" }
                        ]
                    }]);
 
        // function that gathers IDs of checked nodes
        function checkedNodeIds(nodes, checkedNodes) {
            for (var i = 0; i < nodes.length; i++) {
                if (nodes[i].checked) {
                    checkedNodes.push(nodes[i].id);
                }
 
                if (nodes[i].hasChildren) {
                    checkedNodeIds(nodes[i].children.view(), checkedNodes);
                }
            }
        }
 
        // show checked node IDs on datasource change
        function onCheck() {
            var checkedNodes = [],
                treeView = $("#treeview").data("kendoTreeView"),
                message;
 
            checkedNodeIds(treeView.dataSource.view(), checkedNodes);
 
            if (checkedNodes.length > 0) {
                message = "IDs of checked nodes: " + checkedNodes.join(",");
            } else {
                message = "No nodes checked.";
            }
 
            $("#result").html(message);
        }
    </script>
 
    <style>
        #treeview .k-sprite {
            background-image: url("../content/web/treeview/coloricons-sprite.png");
        }
 
        .rootfolder { background-position: 0 0; }
        .folder     { background-position: 0 -16px; }
        .pdf        { background-position: 0 -32px; }
        .html       { background-position: 0 -48px; }
        .image      { background-position: 0 -64px; }
 
    </style>
</div>
 
 
</body>
</html>

Alex Gyoshev
Telerik team
 answered on 09 May 2016
1 answer
176 views

Hi,

 

I have a Gantt chart tree structured data. I have accomplished using 'summary=true' on data source. The issue is my web service provides only the parent level data first. On expand of an item, I need to make a call to get the next level data and dynamically insert into it. seems there is no event on expand and not sure how to deal with this scenario.

 

Any help is appreciated.

Thanks

Bozhidar
Telerik team
 answered on 09 May 2016
3 answers
159 views
We have Kendo UI version 2015.3.930.  We have a page with a single grid which uses server-side filter, paging, and sorting via odata, and noticed that if you reorder a column manually through the browser, and then manually try to sort the moved column, it will take on the values of the other column.  Is this a known bug or is there something I need to do to avoid this problem?
Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 06 May 2016
2 answers
255 views
Hi! I'm using a IEnumerable<dynamic> as a model, as show in this forum thread.
http://www.kendoui.com/forums/mvc/grid/kendo-mvc-grid---data-binding-to-dynamic-object-model.aspx

But when i try to add editing option to my grid

.Editable(editable => editable.Mode(GridEditMode.InCell))

i've got a mistake. Does Kendo UI Grid allow editing dynamic objects? Thanks.
Rosen
Telerik team
 answered on 06 May 2016
3 answers
452 views
Morning, guys!
I`m pretty new to Kendo UI and yesterday I've encountered a problem which seems to be impossible for me to solve. Basically, I've got a Kendo hierarchical grid where I can add a new record for both parent and children by clicking a button. It looks something like this: http://jsbin.com/ubiruc/12/edit?html,js,output . I'm caught with 2 problems:
1) At the start, my whole grid is empty. If I add rows and then their details, all fine. But if I add a row, its details and after that another row in the main grid, the added details for first parent disappears. 

2) Stuck on how to save the whole structure in a JSON Object after I finished adding my wanted records.
Hope someone can help me out with this as I've been searching the internet for over 6 hours and nothing. Thanks in advance, have a great day!
Alex Gyoshev
Telerik team
 answered on 06 May 2016
2 answers
752 views

Hi
We look for a way to programmatically hide a certain column from a chart according to its category value and user selection. For example look at the following basic columns chart dojo:
http://dojo.telerik.com/eyaFi

How can we hide from this chart the column of year 2005 programmatically?

Notice we look for a way to hide/show it programmatically and dynamically without manipulating the chard data

Thanks,

 

Ron

Ron
Top achievements
Rank 1
Veteran
 answered on 05 May 2016
5 answers
480 views

Hello,

I have a problem when using cascading drop down lists and the MVVM source and value bindings. I created a demo here: http://dojo.telerik.com/EweGO/2

 

Selecting something in the first drop down ("province") causes the displayed value in the second drop down ("location") to update as expected. But even though both province and location are bound to the view model with the value binding only the province will actually be set on the view model as can be seen in the console log. So the location value does not change on the view model but is displayed in the view. It should be either empty or set in both. Is this a bug or am I missing something?

Georgi Krustev
Telerik team
 answered on 05 May 2016
1 answer
206 views
I can't get the 'required' attribute to work on selectboxes and radio buttons in Kendo UI custom templates.

I have a Kendo Scheduler. I then have a custom template that contains the form for adding/editing items. In that form are a group of radio buttons that by default are all unchecked. Also a selectbox that is unselected by default.

Using required="required" has no effect on either.

How do I restore this basic html5 functionality within the kendo custom template?
Vladimir Iliev
Telerik team
 answered on 05 May 2016
5 answers
191 views

Hiya,

I was trying to get the x&y value of a scatter chart while dragging a point. I was able to get the x&y value using the plotAreaClick event but could not do the same in the drag and also on the dragStart and dragEnd events. Can you show me a way to achieve this?

Best regards,

Ruby

Iliana Dyankova
Telerik team
 answered on 05 May 2016
1 answer
151 views

Users are creating a new record for a bound grid inside of a popup. Upon return, the new row is created via SignalR & the .create method but it's showing at the bottom of the grid. Is it possible to place the new record at the top of the grid (w/out changing sort)?

For, refreshing the grid is a partial workaround (SO link below), but still does not place the row where we would like it.

Thanks!

http://stackoverflow.com/questions/29529318/how-to-use-signalr-datasource-with-kendo-grid

Alexander Valchev
Telerik team
 answered on 05 May 2016
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
Drag and Drop
Application
Map
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
LLM Kit
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?