Telerik Forums
Kendo UI for jQuery Forum
1 answer
205 views
<div data-role="window" data-append-to="#my-form" data-modal="true" data-visible="false" data-width="100%"></div>
The above code will not append the window to the my-form element. This can be fixed in the source by setting a default value for the appendTo option of the window, or in the user's own code using the below line (be sure to set this before binding your model):
kendo.ui.Window.fn.options.appendTo = null;
This was tested in v2013.3.1119
Kiril Nikolov
Telerik team
 answered on 04 Dec 2013
4 answers
182 views
how do i listen to a  selected date when pre-selected
ramesh
Top achievements
Rank 1
 answered on 04 Dec 2013
11 answers
870 views
Hi everyone.  I just started using the Kendo UI, and so far it's awesome.

I was previously using highcharts, but kendo is great, because it's a combo of highcharts and jquery UI. So I only need to load one set of scripts! 

Anyway, I'm having some issues with formatting my charts. 

I'm trying to create a small thumbnail chart for several instances on one page. The chart is supposed to track progress as a percent over a period of a quarter. 

You can view what I've got so far here: 
http://jmillspaysbills.com/clients/radolo/rockhabits/daily-huddle.html

Obviously right now each chart is loading the same data. 

So, I'm having some problems with styling this chart. I have the category axis set up to have 65 points, wich would be the average business days in a quarter (it doesn't need to be exact). And I have the value axis as the points that will be recorded daily as a percentage. This works fine. 

First thing I can't get right is trying to skip the major grid lines by 10. Currently it has all 65 lines, but as you can see that looks terrible. 
Second, I have this huge padding on the top, left and bottom that I can't seem to get rid of. 

Here is my code: 
function createChart() {
                  $(".chart").kendoChart({
                      theme: $(document).data("kendoSkin") || "default",
                      
                      legend: {
                          position: "bottom",
                          visible: false,
                      },
                      chartArea: {
                          background: "",
                          margin: 0,
                           
                      },
                      plotArea: {
                          margin: 0,
                          border: {
                              width: 0
                          }
                           
                      },
                      seriesDefaults: {
                          type: "line" ,
                          border: {
                              width: 1   
                          },
                          margin: 0,
                          width: 1,
                          markers: {
                              visible: false,
                          }
                      },
                      series: [{
                          data: [0, 5, 5, 6, 8, 12, 16, 19, 20, 20, 23, 25, 28, 29, 29, 29, 32, 35, 35],
                      }],
                      valueAxis: {
                          majorUnit: 25,
                          max: 100,
                          min: 0,
                          majorGridLines: {
                              dashType: "dash",
                          }
                      },
                      categoryAxis: {
                          max: 65,
                          min: 0,
                          line: {
                               dashType: "dash" //or "dash", "longdash", "dashdot", "longdashdot" and "longdashdotdot"
                          },
                          majorGridLines: {
                              width: 1,
                          },
                          categories: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65 ],
                          majorUnit: 10,
                      },
                      tooltip: {
                          visible: true,
                          format: "{0}%",
                           
                      },
                      axisDefaults: {
                          labels: {
                              visible: false
                          },
                          majorTickType: "none",
                          majorGridLines: {
                              width: 1,
                          },
                           
                      }
                  });
              }
 
              $(document).ready(function() {
                  setTimeout(function() {
                      createChart();
 
                      // Initialize the chart with a delay to make sure
                      // the initial animation is visible
                  }, 400);
 
                  $(document).bind("kendo:skinChange", function(e) {
                      createChart();
                  });
              });


Regarding the Major Grid lines, I've tried majorunit: 10 with no luck. Any ideas what I'm doing wrong?

As for the padding issue, I've tried adding margin of 0 to the plotarea, but that didn't seem to do anything. 

Thanks in advance for any help you can give. I certainly appreciate it.
Hristo Germanov
Telerik team
 answered on 04 Dec 2013
2 answers
133 views
Please take a look at the below jsbin example

http://jsbin.com/oGaZukih/1/edit?html,css,js,output

You can see that I have told the menu to open below the menu bar (data-direction="bottom") but because the resulting menu item will be taller than the remaining height of the page it opens above the menu instead.

Is there a way to force the menu to open below the menu bar and force the page to show a scroll bar. We're trying to use the menu like the kendo tabstrip but use the popover / absolute position of the menu.

Neil
Neil
Top achievements
Rank 1
 answered on 04 Dec 2013
1 answer
80 views
Hello. I would like to implement a stacked bar chart inside a PhoneGap app. I want to keep the app as small as possible, therefore I only want to import what is absolutely necessary only for the stacked bar chart. Your example for the stacked bar chart suggests that I link and load the following css and js files:

 <link href="../../content/shared/styles/examples-offline.css" rel="stylesheet">
    <link href="../../../styles/kendo.common.min.css" rel="stylesheet">
    <link href="../../../styles/kendo.default.min.css" rel="stylesheet">
    <link href="../../../styles/kendo.dataviz.min.css" rel="stylesheet">
    <link href="../../../styles/kendo.dataviz.default.min.css" rel="stylesheet">

    <script src="../../../js/jquery.min.js"></script>
    <script src="../../../js/kendo.dataviz.min.js"></script>
    <script src="../../content/shared/js/console.js"></script>

But, when I download the library, I see some files that look like they may contain only the requirements for the chart instead of the whole dataviz library. For example, I see a javascript file called kendo.dataviz.chart.min. Is it possible to only import what is necessary for the chart so that I can keep my app size down?

Thank you!
Iliana Dyankova
Telerik team
 answered on 04 Dec 2013
1 answer
98 views
Hi,

I'm using version 2013.3.1119 to create a basic TreeView. Please refer to http://jsfiddle.net/fDrvP/

I've tried running this fiddle in Chrome 31/Firefox 25/IE 9 on Windows 7 with the same result.

When I try expanding Item 3 (clicking the arrow or double clicking the text), no child items are shown. If I inspect the li element, I can see some attributes changing to expanded="true" but no child items appended.

Is there something I've overlooked?
Alex Gyoshev
Telerik team
 answered on 04 Dec 2013
1 answer
198 views
Using Kendo UI's awesome kendoEditor, I am experiencing a bit of an annoying issue when coupling it with jQuery 2.0 or higher.

I have reproduced the problem here, using kendo's latest build; But basically, when you create an editor, if you try to use the indent functionality on the first line, you receive this error...

Uncaught TypeError: Cannot read property 'nodeName' of null


Is there anything I can do about this? It isn't completely 'breaking', but it sure is obnoxious.

Failing Test Available Here :  

jsBin

Kiril Nikolov
Telerik team
 answered on 04 Dec 2013
3 answers
906 views
I want to put TreeView in DropDownList, but I've no idea how to realize it. Does Kendo support it?
Kim
Top achievements
Rank 1
 answered on 04 Dec 2013
0 answers
179 views
Hi, when I switch locales in my app, I am still seeing the english text in the page control (i.e. 1 to 10 of 800 items).  How can I have that text be the {current locale} text?  Here is a JSFiddle demonstrating the problem.

Also, the text associated with the paging buttons (first, prev, next, last) is still in English as well.  Is there a way within the framework to update these as well?

I found this JSFiddle, where they are using a template hooked into dataBound to specify the details of the current page, but I would expect this to be part of the framework where I set the locale and it is localized for me.

I just found the Messages section in the docs.  Do I need to include my own translations for each of these?

Aha!  Here is the page I was looking for.

Thanks,
--Ed
Ed
Top achievements
Rank 1
 asked on 03 Dec 2013
4 answers
266 views
I'm not sure if this post would be better suited in the Grid forum or the Color Picker forum, so I apologize if I chose the wrong location.

Kendo UI Version: 2013.3.1119
I am using the ASP.NET MVC markup for the grid

I have a grid that is using batch editing which has a cell that has an editor template that is an HSV Color Picker.
When I select the cell for editing, the widget is fine in all browsers except IE 11.

In IE 11, the widget loads correctly and also opens correctly, but the issue comes when I attempt to change the color by clicking on the drag handler to move it around the canvas on the screen.  I've included images of the before and after, but basically, the drag handler loads in the correct location, but when it is clicked, it immediately 'jumps' to the far left side of the page and refuses to drag to the right unless I take the cursor way to the right of the widget.

Here is my grid code and my detail template information.  Please let me know if you need any more information.
<script type="text/javascript">
    function RefCarrierRank_ErrorHandler(e) {
    }
 
    function RefCarrierRankEdit(e) {
        if (e.container[0].cellIndex == 2) {
            $(".k-selected-color").css("width", "100%");
            $("#RankColor").data("kendoColorPicker").open();
        }
    }
</script>
 
<div id="RefCarrierRankContainer">
    <h3 style="margin:1px;">Rank Dictionary</h3>
 
    @(Html.Kendo().Grid(Model.AdminModel.GlobalDictionary.RefCarrierRankModels)
        .Name("RefCarrierRank")
        .Columns(columns =>
        {
            columns.Bound(item => item.Name);
            columns.Bound(item => item.Rank)
                .EditorTemplateName("RefCarrierRank/Rank");
            columns.Bound(item => item.RankColor)
                .ClientTemplate("<div class='k-textbox' style='background-color:#=RankColor#; width:80px; height:20px;'></div>")
                .EditorTemplateName("RefCarrierRank/RankColor").Width(100);
            columns.Command(command =>
            {
                command.Destroy();
            }).Width(100);
        })
        .ToolBar(toolbar =>
        {
            toolbar.Create();
            toolbar.Save();
        })
        .Events(events =>
        {
            events.Edit("RefCarrierRankEdit");
        })
        .Editable(editable => editable.Mode(GridEditMode.InCell).CreateAt(GridInsertRowPosition.Top))
        .Navigatable(navigatable => navigatable.Enabled(true))
        .Pageable(pageAction =>
        {
            pageAction.PageSizes(new int[] { 5, Model.AdminModel.GlobalDictionary.RefCarrierRankModels.Count });
        })
        .Sortable()
        .Scrollable()
        .Filterable()
        .Resizable(resize => resize.Columns(true))
        .DataSource(dataSource => dataSource
            .Ajax()
            .Batch(true)
            .ServerOperation(false)
            .Events(events =>
            {
                events.Error("RefCarrierRank_ErrorHandler");
            })
            .Sort(sort =>
            {
                sort.Add("Rank").Ascending();
            })
            .Model(model =>
            {
                model.Id(i => i.RefCarrierRankID);
                model.Field(i => i.Rank).DefaultValue(Model.AdminModel.GlobalDictionary.RefCarrierRankModels.Max(i => i.Rank) + 1);
                model.Field(i => i.RankColor).DefaultValue("#a8a8a8");
            })
            .Read(read => read.Action("GetRefCarrierRanks", "Dictionary"))
            .Create(create => create.Action("CreateRefCarrierRanks", "Dictionary"))
            .Update(update => update.Action("UpdateRefCarrierRanks", "Dictionary"))
            .Destroy(delete => delete.Action("DeleteRefCarrierRanks", "Dictionary"))
        )
    )
</div>
@(Html.Kendo().ColorPicker()
    .Name("RankColor")
    .Value("#=RankColor#")
    .Opacity(true)
)
Jark Monster
Top achievements
Rank 1
 answered on 03 Dec 2013
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)
SPA
Filter
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
OrgChart
TextBox
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
Popover
DockManager
FloatingActionButton
TaskBoard
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
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?