Telerik Forums
Kendo UI for jQuery Forum
7 answers
1.6K+ views

I am using Kendo UI Grid with AngularJS. Some of my columns are narrow and the column headers don't display fully (they end in ... next to the filter icon). I want to display tooltip when I hover over them. I also want to display tooltip for every cell in the grid when I hover over them. I looked at some examples from this forum but they were showing tooltip only for a specific column. How can I display tooltips for all headers and cells?

 

Development details:

Kendo UI version: 2016.1.226

OS: Windows 8.1

Browser: Chrome 49, Firefox 45, IE 11

 

Editing the standard AngularJS grid sample will be helpful to us. If this has already been answered, kindly redirect me to the answers.

Thank you for your time.

Rahul
Top achievements
Rank 1
 answered on 30 Mar 2016
1 answer
128 views

I trying to map a simple JSON data from the web service to the Kendo UI AutoComplete, but I keep on getting Unexpected token : error. Below is the data set from the service, and the Kendo UI piece.

{
"d": [{
"__type": "Subscriber:#Entities",
"ContactEmail": null,
"ContactName": null,
"ContactPhone": null,
"FolderPath": null,
"Notes": null,
"OrganizationName": "Sample Holdings PLC",
"ProvisionAckReceived": "\/Date(-62135571600000-0700)\/",
"ProvisionFileSent": "\/Date(-62135571600000-0700)\/",
"Status": null,
"SubscriberUpdated": "\/Date(-62135571600000-0700)\/"
}, {
"__type": "Subscriber:#Entities",
"ContactEmail": null,
"ContactName": null,
"ContactPhone": null,
"FolderPath": null,
"Notes": null,
"OrganizationName": "Sample LLC",
"ProvisionAckReceived": "\/Date(-62135571600000-0700)\/",
"ProvisionFileSent": "\/Date(-62135571600000-0700)\/",
"Status": null,
"SubscriberUpdated": "\/Date(-62135571600000-0700)\/"
}, {
"__type": "Subscriber:#Entities",
"ContactEmail": null,
"ContactName": null,
"ContactPhone": null,
"FolderPath": null,
"Notes": null,
"OrganizationName": "Test LLC",
"ProvisionAckReceived": "\/Date(-62135571600000-0700)\/",
"ProvisionFileSent": "\/Date(-62135571600000-0700)\/",
"Status": null,
"SubscriberUpdated": "\/Date(-62135571600000-0700)\/"
}]
}

<script>

$("#search").kendoAutoComplete({            
dataTextField: "OrganizationName",            
minLength: 3,
dataSource: {
type: "odata",
transport: {
read: GetServiceUrl('SubscriberSubscriptionSearch'),
parameterMap: function () {
return { searchText: $("#search").data("kendoAutoComplete").value() };
}
},
schema: {                    
data: "d",
model: {
fields: {
OrganizationName: { type: "string" }
}
}
}
},           
placeholder: " Search existing Subscribers/Subscriptions",
close: onClose
});

</script>

 

 

Nirav
Top achievements
Rank 1
 answered on 30 Mar 2016
3 answers
347 views

We are using the example chart at the moment trying to resize the donut,  The doc say use seriesdefault.holeSize  holeSize does not exists

The difference between the example code and others is

 

Example code

.SeriesDefaults(series => series.Donut()
.StartAngle(150)

 

Telerik Support code

seriesDefaults: {
     holeSize: 20,

 

so using the example code below what's the way to resize the chart,  also, Id like to know how to add values to the donut to show what value the % come from.

 

Thanks in advance

Example code used

<div class="demo-section k-content wide">
@(Html.Kendo().Chart()
.Name("EventPriorityGraph")
.ChartArea(chartArea => chartArea
.Background("transparent")
// .Width(200)
// .Height(200)
)
.Title(title => title
.Text("Events by priority")
.Position(ChartTitlePosition.Bottom)
)
.Legend(legend => legend
.Visible(false)
)
.SeriesDefaults(series => series.Donut()
.StartAngle(150)

)
.Series(series =>
{
series.Donut(new dynamic[] {
new {category = "P1",value = 0,color = "#ADC9D5"},
new {category = "P2",value = 0,color = "#5FCBFF"},
new {category = "P3",value = 0,color = "#49B4E7"},
new {category = "P4",value = 0,color = "#00689B"},
new {category = "Unknown",value = 100,color = "#002D42"},
})
.Name("2014");

series.Donut(new dynamic[] {
new {category = "P1",value = 1.72,color = "#ADC9D5"},
new {category = "P2",value = 3.41,color = "#5FCBFF"},
new {category = "P3",value = 17.45,color = "#49B4E7"},
new {category = "P4",value = 73.56,color = "#00689B"},
new {category = "Unknown",value = 3.83,color = "#002D42"},
})
.Name("2015");
series.Donut(new dynamic[] {
new {category = "P1",value = 1.61,color = "#ADC9D5"},
new {category = "P2",value = 2.51,color = "#5FCBFF"},
new {category = "P3",value = 16.247,color = "#49B4E7"},
new {category = "P4",value = 75.35,color = "#00689B"},
new {category = "Unknown",value = 4.26,color = "#002D42"},
})
.Name("2016")
.Labels(labels => labels
.Visible(true)
.Position(ChartPieLabelsPosition.OutsideEnd)
.Template("#= category #: \n #= value#%")
.Background("transparent")
);
})
.Tooltip(tooltip => tooltip
.Visible(true)
.Template("#= category # (#= series.name #): #= value #%")
)
)
</div>

Iliana Dyankova
Telerik team
 answered on 30 Mar 2016
1 answer
219 views

How can I convert the following MVC scheduler's code to kendo syntax? I am converting Telerik MVC scheduler to kendo scheduler.

 

.Group(group => group.Resources("Techs").Orientation(SchedulerGroupOrientation.Vertical))                                    .Resources(resource =>
{
   resource.Add(m => m.TechName)
   .Title("Techs")
   .Name("Techs")
   .DataTextField("TechName")
   .DataValueField("emm_code")
   .DataColorField("Color")
   .DataSource(d => d.Read("Techs", "JOBS"));
})

 

Thanks.

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 30 Mar 2016
1 answer
253 views

How I can cause the second combo box of cascading group of a combo boxes to automatically select the only item found after a user selects an item from the first combo box. While it may seem simply straight forward, it has proven quite difficult. JavaScript tricks such as select(0) or value(0) have not worked.

 

Thank you for your help,

Adam

Dimiter Topalov
Telerik team
 answered on 30 Mar 2016
1 answer
266 views
Is it possible to dynamically move a grid column from one position to another, and does doing so impact the underlying array sequence of dataItems? I need to basically swap the positon of two columns depending on user selection of options elsewhere on the form. OR as an alternative clear the columns and recreate them in the desired sequence. This only needs to be done once per page load.
Konstantin Dikov
Telerik team
 answered on 30 Mar 2016
5 answers
1.9K+ views

I am using the setOptions method of the Kendo UI Grid to persist user options for columns, sorting, etc.  I am storing the options in local storage of the browser. 

I need to call setOptions when the view is displayed and the Grid has been created.  It's a bit inconsistent, as sometimes when the grid.setOptions() is called, the grid object is undefined.  How can I make sure that I don't call grid.setOptions until the grid is ready to use?  Code snippet shown below.

$("#grid").kendoGrid({

});

var grid = $(_gridId).data("kendoGrid");
var options = localStorage['xxxx'];
if (options) {
grid.setOptions(JSON.parse(options));
}

Viktor Tachev
Telerik team
 answered on 30 Mar 2016
1 answer
114 views

I have a sequence of tasks that I display on a gantt chart for better overview.

I'd like the user to be able to edit start and end of each task and nothing else.

Which way would I achieve this the easist?

Dimitar Terziev
Telerik team
 answered on 30 Mar 2016
2 answers
1.0K+ views

Hello,

 

I would like to add a title to my Angular Kendo Grid above the toolbar. Something like an <h1> but a part of the grid itself.

I have seen some examples online and on the forums where users were adding title to non-Angular grids. But I would like to add it to my Angular grid right above the Toolbar. Also, why is the title not a default option?

 

Here is a dojo sample. Please modify this and show us how to do it.

http://dojo.telerik.com/OFAwu

 

Development details:

OS: Windows 8.1

Kendo UI: 2016.1.226

Browser: Chrome 49, Firefox 45, IE 11

 

Thanks for your time.

 

Thanks,

Rahul

Daniel
Telerik team
 answered on 30 Mar 2016
2 answers
208 views
Hello,

The Typescript definitions for GridOptions.toolbar declare it only as GridToolbarItem[]. However in Javascript that setting also supports a string or function passed in to allow custom html templates.

The Typescript toolbar definition should either be changed to 'any', or use a union type of all options (Typescript 1.4).

regards,
Rowan
Dawid
Top achievements
Rank 1
 answered on 30 Mar 2016
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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?