Telerik Forums
Kendo UI for jQuery Forum
6 answers
298 views

I have data showing on a Kendo chart almost exactly the way I want, with the exception I have to break out to of the series into the y2 axis.

function createMyChart(data) {
    var chart = $("#myChart").data("kendoChart");
 
    chart.setOptions({
        valueAxis: { min: 0 },
        dataSource: {
            data: data.ChartModel,
            group: {
                field: "Series"
            }
        },
        title: {
            text: "My Chart"
        },
        legend: {
            position: "right"
        },
        categoryAxis: {
            field: "Group"
        },       
        seriesColors:["blue", "red", "lightblue", "green"],
        series: [{
            name: "#= group.value #",
            field: "Value",
            color: "blue",
            spacing: 0
        }]
    });
}

 

Essentially I have my data returning from an Ajax call, all properly formatted (Series = 1 of 4 possible series (string), Group = The desired grouping on the X-Axis (string), Value = self explanatory (int)).  How can I tell the chart that I want Series 3-4 to be displayed on the y2 axis?  All the examples I have seen want the series divided up and/or want a crossing point for the X-Axis to be a number.

 Thanks,

Troy

Troy
Top achievements
Rank 1
 answered on 16 Sep 2015
2 answers
126 views

Is there any way to stop the timeline view wrapping events?

 I've made sure they don't overlap, but I've got a pair a minute apart and it wraps them.

I can't see anything in the settings to turn this off...?

 

It works fine in day and week view, but fails wraps in timelineMonth view?

Nathan
Top achievements
Rank 2
 answered on 16 Sep 2015
1 answer
149 views
I am trying to allow the touch events in mobile view to NOT have the scheduler take over the screen because once it does a drag no longer moves the page up/down and it ends upstopping the viewer from seeing controls outside of the schedule that are for filtering the dataset. How can I get the events to allow page scrolling when over the scheduler? I have tried using the kendoTouch to do a scroll based on the e.touch.y.position and it works except the scheduler fights it to set it as the 0 point. We need to keep the scheduler from fighting the kendoTouch events.
Vladimir Iliev
Telerik team
 answered on 16 Sep 2015
3 answers
932 views
Hi.

I want to add to button Bootstrap class='btn btn-primary', but whatever I tried it didn't help.
I tried this:
$(".k-button.k-upload-button").addClass("btn btn-primary");
nothing help, then I tried use templates:
<input name="files"  id="files" type="file"/>
<script id="fileTemplate" type="text/x-kendo-template">
  <div>
     <button type='button' class='btn btn-primary' ></button>
</div>
</script>

and use  template function, but no result.

What I'm doing wrong? 

Thanks in advance.


Iliana Dyankova
Telerik team
 answered on 16 Sep 2015
4 answers
966 views
I am trying to define column template for the grid using MVVM. Below is the piece of code that i am using.

data-columns="[
                                    {'template':'<input type=checkbox ><\/input>'}
]"

This is working fine. But this html is not exactly valid as I am missing single quotes (') and I am using closing tag for input which is ideally not required. How can define this in correct way? I think i am missing something very simple.

Konstantin Dikov
Telerik team
 answered on 16 Sep 2015
4 answers
164 views

How to call a remote API for add/edit/delete node when using a parent-child relationship JSON data?

I've created my scenario in dojo. In the example, when click on node, we are getting Add, Edit and delete options.

  1. When click on the Add, the add functionality is not working.
  2. On Edit, I should be using own view template and over-right the save functionality.
  3. On Delete, I should show the confirmation dialog and should call a function to perform the delete operation.

Also, the k-rebind is not working in our scenario. I'm loading the diagram by default with out data. I've a call to the rest to get the data for the diagram. Once I received the data. I want to rebind the diagram. but it is not rebinding.

 Kindly help to resolve the above issues.

 Thanks in advance!

Daniel
Telerik team
 answered on 16 Sep 2015
2 answers
93 views

When using the "overflow:always" option, how do I get this to work with tabindex? It seems like the bootstrap overflow menu does not have any real keyboard support.

See the following example (run in fullscreen to make tab usage easier inside the dojo):

 http://dojo.telerik.com/@ake_krakbar/ERicu

 

How can I make it possible to use the tab key to navigate to the buttongroup using overflow?

Boomerang
Top achievements
Rank 1
 answered on 16 Sep 2015
1 answer
306 views

Hi Telerik,

I have a kendopanelbar that contains 3 panel . I want to expand all panels to print details of gird in panels. I set expandMode is 'single'. The problem is In paper printer, It only show 1 panel and rest of panels collapse. I attempted to set expandMode is 'multiple' and It worked well But I just want expandMode is 'single'.

Here is my code:

function fqtt_PrintExpensesGrid() {
        var gridElement = $("#expensesheetpanel");
            gridElement.data("kendoPanelBar").expand($("li",gridElement.element)),
        win = window.open('', '', 'width=1000, height=500'),
        doc = win.document.open(),
        
        htmlStart =
            '<!DOCTYPE html>' +
            '<html>' +
            '<head>' +
            '<meta charset="utf-8" />' +
            '<title>' + ExpensesConstants.lbExpensesTitle + '</title>' +
            '<link href="' + ExpensesConstants.cssKendoCommon + '" rel="stylesheet" /> ' +
            '<link href="' + ExpensesConstants.cssKendoSilver + '" rel="stylesheet" /> ' +
            '<link href="' + ExpensesConstants.cssQttlayout + '" rel="stylesheet" type="text/css"> ' +
            '<link href="' + ExpensesConstants.cssQttprintreports + '" rel="stylesheet" type="text/css"> ' +
            '</head>' +
            '<body>',
        htmlEnd =
            '</body>' +
            '</html>';
        var decodedAddress = $('<div></div>').html(ExpensesConstants.lbCompanyAdress).text();
        
        doc.write(htmlStart + gridElement.clone()[0].outerHTML + htmlEnd);
 
        doc.close();
        win.print();
    }​

 

Please help me!

Many Thanks.

Daniel
Telerik team
 answered on 16 Sep 2015
1 answer
81 views

I have a grid that displays a subset of the entire column set of my model  as follows as a result of my search form

 

$("#kendoResultGrid").kendoGrid({
                            dataSource: {
                                data:response
                            },
                            scrollable: true,
                            sortable: true,
                            columns: [
                                { field: "EmpNo", template: "<a href='~/PMP/Index'>Select</a>" },
                                { field:"EmpName" },
                                { field:"EmpMgr" },
                                { field:"ClientName" },                                
                                { field: "FrameworkName",hidden:true }
                            ]
                        });      

 

 

I want to be able to pass the whole response object to my Index method on my PMP view and display employee id as a hyperlink. Can you please assist?

 

I have looked at a few samples but does not seem to work for me

Man
Top achievements
Rank 1
 answered on 16 Sep 2015
3 answers
148 views

I'm trying to use a custom UI element in my filter row in the grid, but I am having problems with my remote datasource.

The documentation states "Keep in mind that the passed dataSource instance may still not be populated at the time the template function is called, if the Grid uses remote binding", and the datasource received in the template function is indeed undefined.

Is there a way to update the filter templates when the datasource has finished fetching the data?

Plamen Lazarov
Telerik team
 answered on 16 Sep 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?