Telerik Forums
Kendo UI for jQuery Forum
1 answer
105 views
Hi there I have a line chart with grouped data and narrowRange: true set.

When one of my datapoints has a null value it seems that narrow range is ignored.  Folks are choosing series from a dropdown and when one series has a null the scale changes suddenly which isn't ideal.

Here is a fiddle with all datapoints for each line  and narrowRange working well-  http://jsfiddle.net/jriley17/vDdmt/
and here is one with a null value for one of the points -  http://jsfiddle.net/jriley17/j83Sk/

thanks!
Iliana Dyankova
Telerik team
 answered on 26 Jun 2013
1 answer
141 views
I have following code and I am getting e.dataItem as undefined. Is there a way to get access to dataItem and its properties at client using JavaScript?

Html.Kendo().Grid<AdminReport>()   
.Name("AdminReportList")
.Columns(c =>        
{
c.Bound(r => r.Name).Title("Report Name").Width(50);                    
c.Bound(r => r.Id).Title(action).Width(230).Sortable(false).Filterable(false)
})
.Pageable(p => p.PreviousNext(true))
.Sortable()
.Filterable()   
.Events(e => e.DataBound("onRowBound"))   
.DataSource(d => d       
.Ajax()       
.Model(m => m.Id(r => r.Id))       
.Read(read => read.Action("_ListAllReports", "AdminReports"))       
.Events(e => e.Error("OnError")))
.Render();
function onRowBound(e) {
    
  if ((e.dataItem.SomeProperty === true)) {
       //Some code...
    }
 
}
Dimiter Madjarov
Telerik team
 answered on 26 Jun 2013
1 answer
118 views
Is there way to show spinner for chart while used datasource fetches data from server (ajax call)?

Thanks!

Kiril Nikolov
Telerik team
 answered on 26 Jun 2013
2 answers
149 views
I want the Stacked bars have no border, how can I config?
wei
Top achievements
Rank 1
 answered on 26 Jun 2013
7 answers
377 views
Reading http://docs.kendoui.com/getting-started/framework/spa/view I understand that the "render" method renders a view inside a container by replacing the current content with the new content.

However, when testing, I did not see that behaviour. Actually on "render" the view is appended to the current content, inside the wrapping "div" element.

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 26 Jun 2013
1 answer
155 views
Our page contains complex "Widgets" and each widget might have multiple views, and we're using MVVM for the data.

I'm wondering (and I've seen posts eluding to this) if I can scrap the url routing portion and just be able to define views for each widget?...I'm concerned with the routes in the url and multiple widgets all getting confused and\or creating a terrible url.  Really nobody would be going "back", bookmarking, or linking anyway.

If this is possible, is there a demo\sample anywhere?

Steve
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 25 Jun 2013
1 answer
146 views
I am trying to edit the grid height with a bit of jquery and binding.
It does not appear to work.
I can do the colours and the font, but the height does not want to budge.
Below is my test on fiddle.
http://fiddle.jshell.net/zawisza/2k4hX/3/

Anyone know how to fix that?
Iliana Dyankova
Telerik team
 answered on 25 Jun 2013
1 answer
739 views
In my grids I have partials views as my editor templates. In the these editor templates I try to check the values on create and edit using razor if statements. These statements do not seem to work for grid editor templates. Here is an example
@if(Model.UserName!=null)
{
@Html.LabelFor(m=>m.Username)
}
else
{
@Html.TextBoxFor(m=>m.UserName)
}

The if always seems to fail is this because after the template is rendered these statements are no longer there and cannot be reached?

Is the only way to accomplish my task is by altering these elements via jquery in the grid edit event?
Alexander Valchev
Telerik team
 answered on 25 Jun 2013
1 answer
328 views
I am trying to change the "save" icon on my edit form when an item is flagged dirty as a visual reminder to the user to save her/his work. However it does not appear as though the "dirty" attribute of the Model object is observable. Its value never changes in the UI when I bind to it nor does it ever notify when I bind to the "change" event.

I know that I can do what I want by binding to "change" but it seems silly to have to observe the entire object and have an event that fires with every change and for any change when a property already exists that purports to contain the desired information that I am after.

Or am I just missing something?

http://jsfiddle.net/RobertKaucher/Fyrs6/
Daniel
Telerik team
 answered on 25 Jun 2013
1 answer
279 views
a long time ago we modified the kendostore front sample for our internal needs.

specifically store-browse.js

(function ($, kendo, store) {
    var viewModel = kendo.observable({
        Products: {
            data: [],
            total: 0
        },

noticed data is array not DataSource or ObservableArray
 - changing to DataSource throws a recursion error in kendo js file
 - ObservableArray works but suffers from duplicate rendering issue


About: kendo duplicate rendering issue

<section>
    <div class="clearfix" data-role="listView" data-bind="source: Products.data" data-template="product-template"></div>
</section>

attached is image where left side is code causes duplicate rendering randomly.

my hack so i wouldn't have to do major refactoring is on the right . (working - no more doubles)


Can someone explain why doubles happen when pushing into array (left side of code)?
Alexander Valchev
Telerik team
 answered on 25 Jun 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
Drag and Drop
Application
Map
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?