Telerik Forums
Kendo UI for jQuery Forum
5 answers
1.1K+ views

I just upgraded to the latest Kendo Pro: 2017.2.504.  This broke our code in several places. The most significant is that setting the cssClass to 'k-separator' no longer creates a line in the menu to separate menu groups. We used to be able to add a separator like this, but it no longer works:

<p>let menuItem = {</p><p>  text: '',</p><p>  cssClass: 'k-separator',</p><p>  enabled: false</p><p>}</p

 

Dimitar
Telerik team
 answered on 23 Jun 2017
1 answer
138 views

Facing error in using kendo spreadsheet. I included demo code given in kendo spread sheet portal.

Able to use other kendo controls in the application.

 

 

 

Veselin Tsvetanov
Telerik team
 answered on 23 Jun 2017
1 answer
166 views

kendoChart _toModelCoordinates(x,y) method is missing in the kendo ui v2017.2.504.

We have used this method in the older kendo version v2015.3.1111

_toModelCoordinates:function(t,n){var i=this.element,r=i.offset(),o=parseInt(i.css("paddingLeft"),10),a=parseInt(i.css("paddingTop"),10),s=e(window);return new Xt(t-r.left-o+s.scrollLeft(),n-r.top-a+s.scrollTop())}

Please let us know what is the equivalent alternative method for it in the latest kendo-ui version v2017.2.504 as soon as possible

 

Thanks,

Mahesh

 

 

Daniel
Telerik team
 answered on 23 Jun 2017
5 answers
2.1K+ views
Hi,

I have created a kendo menu. The code for it is something like this:

html:
<div id = "menu"></div>

js:

  var menu = $("#menu").kendoMenu({
            dataSource: [{
                text: "tab1",
                url: 'javascript:showTab1()'
            }, {
                text: "tab2",
                url: 'javascript:showTab2()'
            }
            ]
        });
Now, whenever a menu item is selected, i want to show it as selected. Need to add a class to the selected menu item. How can i do that?

Regards,
Khushali
Sunil
Top achievements
Rank 1
 answered on 23 Jun 2017
5 answers
254 views

I was looking at the new SASS Themebuilder.  For TabStrip, it looks like the tabs use the "Accent" foreground/background, with the currently selected tab using the "Common" pair.  So the unselected tabs are drawing attention to themselves, while the selected one is (generally) more muted.  This is opposed to the similar ButtonGroup, which seems to use "Base" colors, with the selected button using the "Selected" pair.  It would seem natural for TabStrip to use Base/Selected instead of Common/Accent as well?

I see that "Menu" uses Accent (and Base for its menu/submenu content items), but there isn't such a thing as the "selected" menu of a group.  Even if TabStrip uses "Common/Accent", wouldn't one expect usage to be reversed, with only the current tab using "Accent"?

What's done probably makes sense in the grand scheme of things - I'm just curious.  We're looking at replacing our current frankenstyling (a hacked up version of the old v1 Default) with a more cleanly extended SASS v2 Default, and the way TabStrip and a couple others use the stylings seems a bit non-intuitive.

Ivan Zhekov
Telerik team
 answered on 22 Jun 2017
1 answer
301 views

Here is my kendo popup of a particular height and width but when I double click on the panel it expands to full page width. How to avoid it?

Here is the html code for my kendo grid popup:

 

<div kendo-window="vm.winVersionHistory" id="verHistory" k-width="850" k-title="'Version History'" k-position="{ top: 200, left: 300 }" k-modal="true" k-visible="false">  </div>
Georgi
Telerik team
 answered on 22 Jun 2017
3 answers
1.2K+ views
The example for the Kendo UI Grid for Angular 2 shows how to implement sorting with an array fed into a GridDataResult as your data source, but what is the correct way to implement sorting when using an Observable as your datasource? I'm able to map my Observable<stuff[]> to a Observable<GridDataResult> but not clear on where to inject sorting in that process.
Dimiter Topalov
Telerik team
 answered on 22 Jun 2017
3 answers
157 views
Is it possible, or on the road map to enable a search box that could show at the top right of the diagram? This would be useful for something like searching a large organisation chart...
Boyan Dimitrov
Telerik team
 answered on 22 Jun 2017
4 answers
1.7K+ views

Hi! I'm having issues with the PDF exporter.

Basically, I want a PDF in which the first page is a normal Kendo bar chart, and *starting* in the second page a multi page long grid with related data starts.

If I wrap both in a <div> and export that, it works fine. I get a multi page PDF, with the grid's repeated headers and so on. Chart takes half of the first page, grid takes the other half and a couple more pages. I'd like for the first page to be occupied only by the chart, and the grid pages starting after that.

Here is an example: http://dojo.telerik.com/iHeXo

It proceeds to export the chart in the first page, then it does a page break, exports the grid starting at the second page, but it stays there. It renders the grid as far as it can go in the second page but it wont render the remaining rows in more pages, so a lot of data ends up missing.

If you remove forcePageBreak in the export settings, it renders the grid in multiple pages just fine, but the first few rows are placed in the first page.

If I've understood the code correctly, in the splitElement function in kendo.drawing.drawDOM, it seems that the crawling logic checks if it should issue a page break on the element, but then if it does, it skips it without crawling it to see if it will require more space. That is, splitElement gets called for the <div id="multi-page-grid"> element, but it never crawls the grid's <table> element inside to divide it up in multiple groups.

Any ideas?

Miguel
Top achievements
Rank 1
 answered on 21 Jun 2017
2 answers
898 views

Good afternoon,

So I have created this little example here: http://dojo.telerik.com/Ivipo

The important thing is that I added "min: 1" to the UnitPrice field definition (in the model). So If I test this I must input a value in UnitPrice greater than 0, at least 1 to be valid right? but it is not... it only requires the "ProductName" to have something and then it saves the information... why? am I doing something wrong? did I miss something here?

Could you please tell me where can I find the documentation about the properties that I can define for the "validation" object ?? things like "min" or "required"...

 

Thanks!

 

 

Jairo
Top achievements
Rank 1
 answered on 21 Jun 2017
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?