Telerik Forums
Kendo UI for jQuery Forum
1 answer
115 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
132 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
1.9K+ 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
208 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
252 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
123 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.6K+ 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
842 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
3 answers
657 views
I'm working on a project where I have 2 horizontal panes. The left side is a tree view and the right side is the content view (Think windows explorer). Is it possible to have a content layout (grid) in that right pane that will resize based on the size of the splitter pane? Right now I can't seem to get controls to stack properly when the pane is resized.  This isn't a kendo issue exactly, but I'm hoping someone else has worked through this.  My left pane is going to start with a fixed size and the right pane takes the remainder of the viewport. 
Dimitar
Telerik team
 answered on 21 Jun 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?