Telerik Forums
Kendo UI for jQuery Forum
3 answers
187 views

I am having trouble make a chart wider. My html & JS is below:

<div class="demo-section k-content wide" style="width: 100%">
<div id="indepthGraph"></div>
</div>

$("#indepthGraph").kendoChart({

title: {
text: "Graph Shit"
}

});

 

However, when I check developer tools elements tab, I see that my both my div's have disappeared, to be replaced by this <svg> tag. This is fine, however, on your examples http://demos.telerik.com/kendo-ui/bar-charts/multiple-axes - developer tool shows the two divs still there, with the <svg> tag inside the child div.

Thanks

Marc

Eduardo Serra
Telerik team
 answered on 31 Jan 2017
1 answer
965 views

To begin using Kendo UI to work on a calendar, I first am beginning by pulling events from salesforce orgs and just displaying them on the scheduler. However, I am being plagued by "Cannot read property 'getTimezoneOffset' of undefined errors and am looking for help. My JS is:

var data = '{!jsonString}';
                    var scheduler = $('#scheduler').kendoScheduler({
                    date: new Date(),
                        startTime: new Date(),
                        height: 700,
                        timezone: "Etc/UTC",
                        views: [
                            {type: "week", selected: true},
                            "week",
                            "month",
                            "agenda"
                        ],
                        dataSource: {
                            batch: true,
                            transport: {
                                read: function(e){
                                    console.log(data);
                                    e.success(data);
                                },
                                update: {
                    url: "http://demos.telerik.com/kendo-ui/service/tasks/update",
                    dataType: "jsonp"
                },
                create: {
                    url: "http://demos.telerik.com/kendo-ui/service/tasks/create",
                    dataType: "jsonp"
                },
                destroy: {
                    url: "http://demos.telerik.com/kendo-ui/service/tasks/destroy",
                    dataType: "jsonp"
                },
                parameterMap: function(options, operation) {
                    if (operation !== "read" && options.models) {
                        return {models: kendo.stringify(options.models)};
                    }
                }
                          },
                          schema: {
                                model: {
                                    id: "OwnerId",
                                    fields: {
                                        taskId: { from: "TaskID" },
                        title: { from: "Title", defaultValue: "No title", validation: { required: true } },
                        start: { type: "date", from: "Start" },
                        end: { type: "date", from: "EndTime" },
                        startTimezone: { from: "StartTimezone" },
                        endTimezone: { from: "EndTimezone" },
                        description: { from: "Description" },
                        recurrenceId: { from: "RecurrenceID" },
                        recurrenceRule: { from: "RecurrenceRule" },
                        recurrenceException: { from: "RecurrenceException" },
                        ownerId: { from: "OwnerID", defaultValue: 1 },
                        isAllDay: { type: "boolean", from: "IsAllDay" }
                                    }
                                }
                            }
                         }
                        //});
                  });

 

And the data variable is JSON in the format:

 

[{"Title":"meeting","TaskId":"00U410000059ZjbEAE","StartTimezone":"Etc/UTC","Start":"2017-01-26","RecurrenceRule":null,"RecurrenceId":null,"RecurrenceException":null,"OwnerId":"005410000020eLnAAI","IsAllDay":false,"EndTimezone":"Etc/UTC","EndTime":"2017-01-26","Description":"a meeting"},{"Title":"meeting","TaskId":"00U410000059ZjcEAE","StartTimezone":"Etc/UTC","Start":"2017-01-26","RecurrenceRule":null,"RecurrenceId":null,"RecurrenceException":null,"OwnerId":"005410000020eU9AAI","IsAllDay":false,"EndTimezone":"Etc/UTC","EndTime":"2017-01-26","Description":"a meeting"}, etc...}]

according to the console.log(data) in the read operation. I have a controller that gets an array of events, then JSON.serializes that array (which is jsonString, which data accesses).

I don't get what the issue with the timezone offset is, all my JSON entry data matches the fields of the tutorial schema and it still doesn't work... I just need the calendar to display all events that currently exist when it is opened by passing this JSON to the read operation. Any help would be incredibly appreciated! Thank you. 

Peter Milchev
Telerik team
 answered on 31 Jan 2017
3 answers
1.7K+ views
I want to make just like Accordion which is uploaded and I tried several time to make an accordion just like given image or window using Kendo UI panelbar tool. But it did not work. I need your support to solve this issue by using Kendo UI panelbar.
Nencho
Telerik team
 answered on 31 Jan 2017
1 answer
864 views

Hi, 

As my title says, im trying to change the icons of the command buttons in my inline grid.

Now I've managed about 73% of the way; by setting the edit icons in the 'dataBound' event and the update icons in the 'edit' event. But when the user clicks 'cancel' (in edit mode) kendo resets the icons to the kendo standard. What event can I trigger after a cancel has completed  to reset the icon to my custom ones?

For Info purposes

dataBound: function(e) {
  $(".k-grid-edit").find("span").removeClass().addClass("fa fa-pencil");
  $(".k-grid-destroy").find("span").removeClass().addClass("fa fa-times");
},
edit: function(e) {
  $(".k-grid-update").find("span").removeClass().addClass("fa fa-check");
  $(".k-grid-cancel").find("span").removeClass().addClass("fa fa-ban");
}

 

Please advise on how I can achieve this or if there is a more efficient way to do the same thing.

Kind Regards,
Grant

Dimiter Topalov
Telerik team
 answered on 31 Jan 2017
1 answer
207 views

We want to set a variable editable value for all grid columns. The value is configured in our json-file, but we don't know how to assign the value from json to the editable option.

http://dojo.telerik.com/@brandung/eKOyi/16

Vladimir Iliev
Telerik team
 answered on 31 Jan 2017
1 answer
286 views

Hello

I want to use the new "noDataTemplate" to add new items as in this example: http://demos.telerik.com/kendo-ui/combobox/addnewitem

If I type "custom" in the example I can then add that as a new item.

But I can't add a new item called "Cha" because there are 3 other items starting with "cha". I know there is a conflict here: Should we show the 3 items or the add-new-item-dropdown. But do you have a solution for this problem? E.g show the add-new-item-dropdown above the input so that both can be active at the same time? Or is it not possible?

Boyan Dimitrov
Telerik team
 answered on 31 Jan 2017
1 answer
209 views

I have multiple buttons for things such as save, save as, new, etc. I wrote the function below so that we could easily call these windows without individually writing JS and HTML for each. Currently everything works except the title. The title displays as the first window opened, if i open Save then close, then open Delete the delete window content is displayed with the Save title. thanks for any help

 

JS

$(".kendo--modal").click(function(e) {
    var div     = $(this).attr("data-div"),
        title   = $(this).attr("data-title"),
        content = $(this).attr("data-content"),
        h       = $(this).attr("data-h"),
        w       = $(this).attr("data-w");
   createKendoModal(div, title, content, h, w ) 
});

 

HTML

                        <li>
                            <a class="kendo--modal"
                           data-title="Save View As"
                           data-div = "#window"
                           data-content = "/templates/html/modal--save.html"
                           data-h = "800"
                           data-w ="800"
                           >Save As
                           <span class="glyphicon glyphicon-floppy-open"></span>
                           </a>
                        </li>
                        <li>
                           <a class="kendo--modal"
                           data-title="Delete View"
                           data-div = "#window"
                           data-content = "/templates/html/modal--delete.html"
                           data-h = "800"
                           data-w ="800">Delete 
                           <span class="glyphicon glyphicon-trash"></span>
                           </a>
                        </li>

Ryan
Top achievements
Rank 1
 answered on 30 Jan 2017
2 answers
93 views
Hello, my json output is a bit different that what is need. I've attached a screenshot of what it looks like. Can I use this as the datasource?
Vivek
Top achievements
Rank 1
 answered on 30 Jan 2017
10 answers
576 views

Hello, I've been testing the PivotGrid using local data binding and have some questions:

Is there any way that I can make a button to expand all rows and columns with local data binding? I tried to do that in the column using

pivotgrid.dataSource.expandColumn("Dimension1&Value", "Dimension2");

but the grid's colspan was all wrong (see image attached). Is there any way to fix this? I tried to do the same thing on the row and it works fine.

Joey
Top achievements
Rank 1
 answered on 30 Jan 2017
1 answer
839 views

I want the Numeric text box to show the integer values(and not any decimal part) for which we set the below options and it seems to show the values properly in integers in both IE and chrome browsers.. but both the up and down buttons are not working only in Internet explorer whereas it works perfectly in chrome... How can this be fixed..??

$("#size").kendoNumericTextBox({
     value: 32.3,
     min: 0,
     max: 480,
     step: 5,
     decimals: 0,
     format: '0.'
});

The above sample code is available in this fiddle link(http://jsfiddle.net/Mgb77/)

 

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 30 Jan 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?