Telerik Forums
Kendo UI for jQuery Forum
1 answer
141 views

hello there

is there a way to convert a normal kendo DataSource to a HierarchicalDataSource

I´m trying to create a function that gets all the child elements from the datasource but it´s hard when there is grouping involved in the datasource

 

or do you have some kind of function that gets all the lowest child nodes that are in the normal datasource

 

best regards from Iceland

Nikolay Rusev
Telerik team
 answered on 26 May 2016
2 answers
1.2K+ views

Is there a way to use a contains filter on a grid column that is using the 'values' lookup attribute? I've noticed with filterable:true option that it does not include a contains option by default. I have a column defined in the columns section of grid options:

{ field: "sampleId", title: "Sample Item", width:165, values: sampleListLookup },

Later a filter as:

filter.push({
           logic: 'or',
           filters:[
{ field: 'sampleId', operator: 'contains', value: $scope.filters.searchString },

However, when I try this is give an error in the Int stored in the column instead of filtering on string values that match the Id key. The logic works very well for string columns, just not the string look-ups above.

Looking for ideas on a work around or is it going to end up being a server side query? Perhaps filtering the lookup lists and passing in the resulting list to the filter?

Tim
Top achievements
Rank 1
 answered on 25 May 2016
4 answers
348 views
How can i define a data-template with a source binding using the useWithBlock:false

I have something like the following
<ul data-template="itemtemplate" data-bind="source: Data">

and my template
<script id="itemtemplate" type="text/x-kendo-template">
  <li>
    <div>
      <label data-bind="text: Description">
      </label>
    </div>
  </li>
</script>

but I want that my template will be rendered with the useWithBlock property set to false

Dani
Top achievements
Rank 2
 answered on 25 May 2016
3 answers
626 views
I am confused why there is an AngularJS integration for Sortable Widget, when it doesn't support using ng-repeat.  In the demo here (http://demos.telerik.com/kendo-ui/sortable/index) - there is a hardcoded list of Li items that are being sorted.  However, no one using AngularJS is going to use a hard-coded list, they will use an ng-repeat from a data model.

The visual sort functionality of course works using an ng-repeat.  But once you move a list item, it does not update the data model source, rendering this widget pretty much useless for someone using Angular.  This widget needs a datasource integration.  

Please don't pretend to do these half-ass integrations any more.  They just waste people's time.

Do you have a solution to get it working with ng-repeat for me?  I would like to sort items, have my model updated with that new order, and then be able to use that new data model and send it back to the server, etc.

Thanks!
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 25 May 2016
2 answers
264 views

HI,

I have a slider:

 @(Html.Kendo().Slider<int>()
                                    .Name("yearSlider")
                                    .IncreaseButtonTitle("-")
                                    .DecreaseButtonTitle("+")
                                    .Min(2016)
                                    .Max(2019)
                                    .SmallStep(1)
                                    .LargeStep(1)
                                    .Value(2016)
                                    .HtmlAttributes(new { @class = "yearSlider" }))

The year is displayed as "2,016". How do I make it show "2016" (no comma)?

 

thanks

Matt
Top achievements
Rank 1
 answered on 25 May 2016
1 answer
185 views

I would like to use a Donut chart to display a boolean value. However, I'm not sure that it works this way right out of the box.

My DataSource is receiving multiple Json objects that look like this:

{"PolicyGroupId":2,"PolicyGroupName":"Communication","AtRisk":true},{"next object here"},{"and so on..."}

 

Now my question is, how do I display a donut chart that shows the correct percentage for the total number of "True" and "False" for the field "AtRisk"? Is this possible at all?

I'm thinking that I'm going to need to aggregate them somehow on the server first and then return Json but I'm not sure what exactly it needs to look like.

Austin
Top achievements
Rank 1
 answered on 25 May 2016
3 answers
179 views

I have a chart with 3 series.  I want series 1 to not be stacked but series 2 and 3 to be stacked.  How can I accomplish this?  I noticed that there is a stack attribute for the series

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-series.stack

However, the lower print says that Stack settings of the first series are applied to the rest of the series.  How can I accomplish what I need?

Regards

T. Tsonev
Telerik team
 answered on 25 May 2016
4 answers
178 views

Hi there,

I was wondering if it is possible to have labels for the inner ring of a two-series donut?  When I made the labels visible they appeared over the appropriate donut segment, but I would like to move them into the middle (see my attached mockup).

 

Thanks,

JSK

Alex Hajigeorgieva
Telerik team
 answered on 25 May 2016
1 answer
106 views

Hi,

is there anybody that successfully applied asKendoDatasource() with jaydata >1.5 and OData 4 in order to obtain a datasource that could be bound to a kendo ui widget?

datasource: entityContext.entitiy.asKendoDataSource()

I am not quite sure whether it is my implementation that is not working or just asKendoDatasource that doesn't work with odata4.

Thanks for any hints.

Oliver

Alex Hajigeorgieva
Telerik team
 answered on 25 May 2016
4 answers
802 views

I would like to use kendo in powerbi custom visuals using the powerbi dev tool at https://xxx.powerbi.com/devTools. When I try to include the contents of 1) kendo.all.js 2) kendo.all.d.ts, I receive the error message in power bi:

angular.min.js:116 TypeError: d.getModel(...).getMode(...).getEmitOutput is not a function at Object.s [as compile] (extensibility.min.js:3) at a.compile (extensibility.min.js:1) at extensibility.min.js:1 at m.$emit (angular.min.js:144) at m.t.compile (extensibility.min.js:1) at fn (eval at <anonymous> (angular.min.js:1), <anonymous>:4:212) at b (angular.min.js:124) at e (angular.min.js:268) at m.$eval (angular.min.js:142) at m.$apply (angular.min.js:143)

Alex Hajigeorgieva
Telerik team
 answered on 25 May 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
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?