Telerik Forums
Kendo UI for jQuery Forum
2 answers
198 views
I want to update my kendogrid data using that:

$('#myGrid').data('kendoGrid').dataSource.data(myArrayVariable)

I always get that error: "object is not a function"

I traced the code, and I had to change the line 55564 in src/kendo.all.js (version 2014.3.1209)

current = $(that.current()),
-> 
current = that.current

Not sure if that fix works for all possible case, but it solved my issue.
Bridge24
Top achievements
Rank 1
Iron
Iron
 answered on 25 Mar 2015
2 answers
976 views
I have a kendo gird with a custom button that if disable should not allow the user to fire the click event.  This works as expected in IE but in chrome the event still fires even though the button is disabled.

I disable the button like this


    function onDatabound(e) {
        var grid = this;
        grid.tbody.find("tr").each(function () {
            var model = grid.dataItem(this);
            if (model.DraftIndicator) {
                var customButton = $(this).find(".k-grid-Download");
                customButton.attr('disabled', '');
            }
        });

I even specifically ignore the logic on the onClick event method if the button is disabled.

 function download(e) {
        e.preventDefault();
        var downloadButton = e.target;
        if (!downloadButton.disabled) {
            var tr = $(downloadButton).closest("tr");
            var data = this.dataItem(tr);
            var url = '@Url.Action("DetailsPopup", "Home")?Id=' + data.id;
            window.open(url, null, "height=600,width=1200px,status=yes,toolbar=no,menubar=no,location=no,scroll=yes");
        }
    }

 is there something special i have to do for Chrome to prevent the click event

steve
Top achievements
Rank 1
 answered on 25 Mar 2015
2 answers
243 views
Is there a way to remove the shapes edit toolbar. I've managed to hide the diagrams top toolbar via:

editable: {
    tools: false
},

But can not figure out how to hide the shapes or connections toolbar.
Lee
Top achievements
Rank 1
 answered on 25 Mar 2015
2 answers
135 views
Here is a example : http://dojo.telerik.com/oqEVu

Open the dropdown and the first item stay highlighted. I have the same problem in a grid with 'popup' editing enabled. The dropdown generated by Kendo has the same behavior.

Thank you,
Luc
Georgi Krustev
Telerik team
 answered on 25 Mar 2015
6 answers
219 views
Hi,

Currently using version "2014.2.716"

I have code using the router 'init' method. I went looking for documentation on this method but couldn't find any... I could have sworn there used to be some somewhere. Is there documentation of this method somewhere?

Thanks,
Josh
Petyo
Telerik team
 answered on 25 Mar 2015
1 answer
320 views
Hi Guys,

I have a dropdownlist inside a grid which have a remove datasource. When my datasource lenght is zero, I can't do anything in the grid. The dropdownlist keep opened. 

Here an example based on kendo custom edit example

http://dojo.telerik.com/atObU

Try to select a new category, a then, try to edit a different category. It doesn't work.

Thanks for your attention and sorry for my english :P
Vladimir Iliev
Telerik team
 answered on 25 Mar 2015
1 answer
234 views
Is it possible to show a loader when an event is updated (Moved, resized or edit in the modal)?


Thanks very much in advance

/Peter 
Vladimir Iliev
Telerik team
 answered on 25 Mar 2015
3 answers
649 views
Hi,
 I'm running the Kendo trial and experimenting with the various controls at the moment.

One of the things i'd like to do is replicate a windows app which has a button with text "start" that functions as a toggle. When initially clicked it recognises the current text as start so starts a timer and changes its text to stop. a subsequent click recognises the text as "Stop", stops the timer and reverts the text to "Start".

Is this something that is possible with a Kendo button possibly by using some of the CSS etc that makes a button a radio button and testing the checked state ?
Kiril Nikolov
Telerik team
 answered on 25 Mar 2015
14 answers
711 views
Is it possible to return a model which contains some lists and some integers, and process each as a series, using ASP.NET MVC? I'm wanting to display a scatter chart, line charts, etc.
Alex Gyoshev
Telerik team
 answered on 25 Mar 2015
1 answer
241 views
Hi i am new to kendo UI framework and trying my hands on tree view part.I am using Ajax for loading data but its not coming in Treeview format.i guess something wrong with the schema part the mapping is not correct ,i don't know how to map it exactly.Can anyone help me in this.right now i am able to load kendo tree using the local data.how can i convert this into remote data binding...???? here is my code: 

public class EloquaTreeJSONBean {

private String id;
private String text;
private String parent;
private String type;
}.....////////// follow with getters and setters  

jsp code:

var dataSource = new kendo.data.HierarchicalDataSource(
{
data : [
{
categoryName : "TransperfecttranslationPartner",imageUrl: "../resources/js/jstree/home.png",
subCategories : [
{
subCategoryName : "Emails",imageUrl: "../resources/js/jstree/email_16.png",
subCategories : [

{
subCategoryName : "Emails1.1",imageUrl: "../resources/js/jstree/email_16.png",
},
{
subCategoryName : "Emails1.2",imageUrl: "../resources/js/jstree/email_16.png",
},
{
subCategoryName : "Emails1.3",imageUrl: "../resources/js/jstree/email_16.png",
}

]
},
{
subCategoryName : "Landingpage",imageUrl: "../resources/js/jstree/eloquaLandingPageIcon.png",
subCategories : [

{
subCategoryName : "landingpage1.1" ,imageUrl: "../resources/js/jstree/eloquaLandingPageIcon.png",
},
{
subCategoryName : "landingpage1.2",imageUrl: "../resources/js/jstree/eloquaLandingPageIcon.png",
},
{
subCategoryName : "landingpage1.3",imageUrl: "../resources/js/jstree/eloquaLandingPageIcon.png",
}

]
},
{
subCategoryName : "Dynamiccontent",imageUrl: "../resources/js/jstree/dynamicContentIcon.png",
subCategories : [

{
subCategoryName : "Dynamiccontent.1",imageUrl: "../resources/js/jstree/dynamicContentIcon.png",
},
{
subCategoryName : "Dynamiccontent.2",imageUrl: "../resources/js/jstree/dynamicContentIcon.png",
},
{
subCategoryName : "Dynamiccontent.3",imageUrl: "../resources/js/jstree/dynamicContentIcon.png",
}

]
}, ]
},

],
schema : {
model : {
children : "subCategories"
}
}
});

$("#gltreegrid").kendoTreeView(
{
dataSource : dataSource,
dataTextField : [ "categoryName",
"subCategoryName" ],

checkboxes: {
               checkChildren: true
           },

           

}); 
Alex Gyoshev
Telerik team
 answered on 25 Mar 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?