Telerik Forums
Kendo UI for jQuery Forum
12 answers
742 views
Looking for a themed icon toggle button as is used in toolbars, such as the "Bold" button in this very forum text editor.

I can find none documented although KendoUI employs them in the toolbar for its own text editor.

Basically these buttons support an image and have on, off, and hover states.
Dimo
Telerik team
 answered on 11 Aug 2014
2 answers
660 views
I want to send the data from my datasource manually, using a jQuery-ajax call.

But Kendo throws an error when jQuery tries to serialize the data:

  1. Uncaught TypeError: Cannot read property 'field' of undefined kendo.all.min.js:9
    1. o.extend.wrapkendo.all.min.js:9
    2. jQuery.extend.param.addjquery-1.7.1.js:7601
    3. jQuery.extend.activejquery-1.7.1.js:7646
    4. jQuery.extend.eachjquery-1.7.1.js:658
    5. jQuery.extend.paramjquery-1.7.1.js:7621
    6. jQuery.extend.ajaxjquery-1.7.1.js:7467
    7. (anonymous function)fiddle.jshell.net:58
    8. jQuery.event.dispatchjquery-1.7.1.js:3256
    9. jQuery.event.add.elemData.handle.eventHandlejquery-1.7.1.js:2875

I recreated the problem in this JsFiddle

Is there a better way of serializing the data from a Kendo data source?
Navin
Top achievements
Rank 1
 answered on 10 Aug 2014
4 answers
151 views
Hi!
First off, I'd like to say that it's fantastic that you implemented this. Out of the box it works quite well, congrats!

That said, there are 2 things that I'd like to accomplish.

-Simpler boolean filter with a tristate checkbox. I already have this partly done, here's what I've got so far:
http://jsbin.com/gifaf/2/edit

I need help figuring out how to a) not show the "remove filter button" b) let the filter know that the "null" value in the input means "remove filter".
This would be really helpful because that way you can make the column really narrow and retain filtering capabilities.

-Filter box autosize. Ideally the input should have the width of the column (as much as possible, with a min-width probably). The default size is too large for narrow columns and it could be much larger when the column is wide. Can you think of any straightforward way of doing this?

Thanks!

Andrés
Top achievements
Rank 1
 answered on 09 Aug 2014
2 answers
53 views
Hi,

I have grid with custom footer template. Below is the configuration of columns with MVVM

data-columns="[
    {'field':'ComponentName', 'title':'Component Name','footerTemplate': '#= GetFooterText() #'},      {'field':'Percentage', 'title':'Percentage','footerTemplate':'#= GetFooterValue() #'}
                        ]"

GetFooterText and GetFooterValue functions return a <div> with necessary markup. I am adding a new row to the grid when even I press tab out form a text box which is above the grid. When i do that <div> from the footer are removed. Not sure how. How can I retain them?  They will not come back even after leaving editing. This is in line  editing.
Raja
Top achievements
Rank 1
 answered on 09 Aug 2014
2 answers
105 views
I'm using treeview from Backbone using Marionette.

I initialize  the treeview when I call the view render method.

View.myPanel = Marionette.ItemView.extend(
{
      render: function () {
            this.treeview = this.$el.find("#treeview").kendoTreeView({
            dataSource: this.hierarchicalDataSource,
                  dataTextField: ["item"],
                  dragAndDrop: true,
                  loadOnDemand: false,
                 drop: this.onDrop
            }).data("kendoTreeView"),
             this.treeview.expand(".k-item");
    },
           
      onDrop: function (e) {
            ...
            code to create model goes here ......
           ... 
            this.saveItem(localModel, false);
   }

The problem I have is that when I try and call this.saveItem, I have no reference to this. which normally would be the view itself. Instead "this" refers to the treeview object itself. I tried to extend the trreview with BackBone.Events but that causes me to lose the drag and drop functionality, I also tried passing the view object as a parameter to  the drop handler but that replaces the event parameter in the onDrop function.

Any help would be appreciated, thanks! 


Manuel Hernandez
Top achievements
Rank 1
 answered on 08 Aug 2014
4 answers
241 views
Example: http://dojo.telerik.com/aSeC/2

I'm not sure if this is a bug or something I'm doing wrong.  I'm trying to create windows as part of a detail template in a grid.  The problem is that no matter how I configure things, I always get the error "Uncaught TypeError: Cannot read property 'style' of undefined ".  The first window gets loaded and behaves correctly, but since it throws the error, it prevents the second window from ever getting loaded.

Please see the example at http://dojo.telerik.com/aSeC/2
Bill
Top achievements
Rank 2
 answered on 08 Aug 2014
11 answers
1.8K+ views
What's the best way to get a 100% window height splitter?

Having tried unsuccessfully with pure CSS I managed to get it working with what feels like a bit of a hack:

$("#splitter").height($(window).height() - 2);

i.e. setting the splitter div to the window height using javascript. I also had to subtract 2 pixels for what I assume is CSS border or padding on the Kendo UI styles.

Any input welcome.
Dimo
Telerik team
 answered on 08 Aug 2014
5 answers
680 views
I love the Kendo UI Validator, but I hate how it uses an input invalid attribute, "validationmessage", it should be data-validationmessage. Everything else in Kendo UI is done perfectly to match the HTML5 specs, why in this one instance is it different? Every time I run a HTML5 code validator I get this message:

Attribute validationmessage not allowed on element input at this point.

Is there anyway around this other than stop using Kendo Validator? Does Telerik have plans to fix this bug in future releases?
Daniel
Telerik team
 answered on 08 Aug 2014
3 answers
198 views
I am having an issue with the Scheduler where the date headings (Sun thru Sat) and the timeline are not lining up with the schedule detail (see attached screenshots).  I am including the appropriate script files and style-sheets in the project and all of the other controls seem to be working fine.  FYI, this is in IE 11 but the issue seems to also reside in Chrome (v 36) and Firefox (v 26).  Any help or assistance would greatly be appreciated.
Steven
Top achievements
Rank 1
 answered on 08 Aug 2014
7 answers
460 views
Is there any way via the api to add a group or textBlock?

I see in the samples how to create a group as below when using a datasource, but using the api I can't find anything.
shapeDefaults: {
visual: visualTemplate
}

Also directly adding a textBlock via the api, is it possible?  Something like below would be nice.
var tb = new dataviz.diagram.TextBlock({
            text: "Sample text",
            x: 10,
            y: 10,
            color: "red",
            fontSize:30
        });
        
diagram.addShape(tb)?

Thanks.
T. Tsonev
Telerik team
 answered on 08 Aug 2014
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
AIPrompt
TimePicker
AICodingAssistant
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?