Telerik Forums
Kendo UI for jQuery Forum
5 answers
377 views
Hi trying to get help with this. As you can see from the screenshot the legend shows the Group name and also the Series name. The Series is based on the Video Ports value. However, the datasource is being grouped by a different property called FriendlyName. How can I remove the part ":Video Ports"
@(Html.Kendo().Chart<MCUSamples24HoursModel>()
      .Name("RMXHourlyVideo")
      .Title("Video Utilization")
      .Legend(legend => legend.Position(ChartLegendPosition.Right))
      .Series(series => { series.Line(model => model.VideoPorts).Style(ChartLineStyle.Smooth).Markers(false); })
      .CategoryAxis(axis => axis.Categories(model => model.Hour))
      .ValueAxis(axis => axis
            .Numeric().Labels(labels => labels.Format("{0}"))
            .Line(line => line.Visible(false))
       )
      .DataSource(dataSource => dataSource
            .Group(group => group.Add(model => model.FriendlyName))
            .Sort(sort => sort.Add(model => model.HourTime))
            .Read(read => read.Url(Url.HttpRouteUrl("Default", new { controller = "McuSamples24Hour", action = "Post" })))
                .ServerOperation(true)
            )
      .ValueAxis(axis => axis.Numeric())
      .Tooltip(tooltip => tooltip
        .Visible(true)
        .Format("{0}")
      )
    )
Thien
Top achievements
Rank 1
 answered on 24 Sep 2014
2 answers
174 views
I'm using the new GANTT form, and while i have read/create/update working fine, the delete doesn't work at all.  I'm using MVC, and it's not even reaching my controller, i get a 'Uncaught TypeError: undefined is not a function'.  Clicking on the source of that error in google chrome, i just get the following script:
(function(d, __f, __o
/**/) {
return ((d.successorId || '').toLowerCase() == '60ae635d-4d7e-490b-9433-0a691adc0a03')
})

I am using GUIDs as my Model ID instead of integers.  If it helps, here is my GANTT cshtml:
@(Html.Kendo().Gantt<CoBRAMVC4Portal.Areas.Admin.Models.OpPeriodTaskViewModel, CoBRAMVC4Portal.Areas.Admin.Models.OpPeriodDependencyViewModel>()
    .Name("Gantt")
        .Columns(columns =>
            {
                columns.Bound("title").Editable(true).Sortable(true);
                columns.Bound("start").Title("Start Time").Format("{0:G}").Editable(true).Sortable(true);
                columns.Bound("end").Title("End Time").Format("{0:G}").Editable(true).Sortable(true);
            })
            .Views(views =>
            {
                views.DayView();
                views.WeekView(weekView => weekView.Selected(true));
                views.MonthView();
            })
                .ShowWorkHours(false)
            .ShowWorkDays(false)
            .Snap(false).Selectable(true).Navigatable(false)
    .DataSource(ds => ds
        .Read(read => read
                .Action("_GetOpPeriods", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() })
        )
        .Model(m =>
        {
            m.Id(f => f.TaskID);
            m.ParentId(f => f.ParentID);
            m.OrderId(f => f.OrderId);
            m.Field(f => f.Expanded).DefaultValue(true);
        })
        .Destroy(destroy => destroy.Action("_DeleteOpPeriod", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() }).Type(HttpVerbs.Post))
                    .Update(update => update.Action("_UpdateOpPeriod", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() }).Type(HttpVerbs.Post))
                .Create(create => create.Action("_AddOpPeriod", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() }).Type(HttpVerbs.Post))
    )
    .DependenciesDataSource(ds => ds
        .Read(read => read
                        .Action("_GetDependencies", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() })
        )
        .Model(m =>
        {
            m.Id(f => f.DependencyID);
            m.PredecessorId(f => f.PredecessorID);
            m.SuccessorId(f => f.SuccessorID);
            m.Type(f => f.Type);
        })
    )
)

and here is my controller code:
[AcceptVerbs(HttpVerbs.Post)]
        [CoBRAMVC4Portal.CustomProviders.CustomAuthorize(Roles = "OrgAdmin,SysAdmin,NormalUser")]
        public ActionResult _DeleteOpPeriod([DataSourceRequest] DataSourceRequest request, OpPeriodTaskViewModel item, Guid id)
        {
            if ((item != null) && (item.TaskID != Guid.Empty))
            {
                WebEngine.RemoveOperationalPeriod(CoBRAMVC4Portal.App_Start.StructuremapMvc.StructureMapDependencyScope.Container.GetInstance<DGI.CoBRAPlugInSDK.IDatabaseMethods>("Log"), item.TaskID);
            }
            return Json(ModelState.ToDataSourceResult(request,ModelState ), JsonRequestBehavior.DenyGet);
        }


any help would be appreciated!
BRAD
Top achievements
Rank 1
 answered on 24 Sep 2014
2 answers
188 views
Kendo version: kendoui.professional.2014.2.903.commercial
Android device: Nexus 7 with Android 4.4.2

Our application uses an actionsheet item. While it works well on iOS we found that on Android, once an element of the actionsheet is clicked, its "active" state (the "hover" style) remains also in next instances where the actionsheet is opened.

In iOS whenever we open the actionsheet, there is no marked item. But on Android the actiosheet remembers the previous items clicks and they remain marked. In the attached screen you can see two items are marked, while there should be only one - see the actionsheet at the bottom of the page - we expect all 4 items there to be gray, but as can be seen 2 items are light green, because they were clicked before (in iOS all items are gray as it should be). 
Alexander Valchev
Telerik team
 answered on 24 Sep 2014
1 answer
101 views
Is it possible to bind to remote data based on map boundaries? 
e.q. in the filter set the map boundaries so it can be used at server side to get only markers in view.
T. Tsonev
Telerik team
 answered on 24 Sep 2014
3 answers
358 views
I would like to do almost the same than the filter menu customization example (http://demos.telerik.com/kendo-ui/grid/filter-menu-customization) but with AngularJS. Could you point me to some docs or examples?

Thank you very much.
Sergio
Alexander Popov
Telerik team
 answered on 24 Sep 2014
4 answers
226 views
If you look at this example on an Android or iPhone (not on desktop)

http://demos.telerik.com/kendo-ui/m/index#grid/adaptive

You'll see that if you press near 'Maria Anders' and pull down, the contents of the grid scroll down. I have the same behavior on my grids. Can this be stopped?

Locally I've tried setting data-stretch="true" on the view but it seems to help in some cases but not others.
Unfortunately it's difficult providing an example as it's on a grid pretty wired into my code

thanks
Anthony
Top achievements
Rank 1
 answered on 24 Sep 2014
1 answer
130 views
I get an error in kendo.all.min.js when I try to get locations from my server.
Using this code with version 2014.2.716:

@(Html.Kendo().Map()
    .Name("map")
    .Center(52.0364073866421, 5.08653521339329)
    .Zoom(17)
    .Layers(layers =>
    {
        layers.Add()
            .Type(MapLayerType.Tile)
            .UrlTemplateId("http://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png")
            .Subdomains("a", "b", "c")
            .Attribution("© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>");
 
        layers.Add()
            .Type(MapLayerType.Marker)
            .DataSource(dataSource => dataSource
                  .Read(read =>
                      read.Action("GetMapLocations", "Map")
 
                      )
            )
            .LocationField("LatLng")
            .TitleField("Name");
    })
)

I don't get any markers on the map, but just the error 'Uncaught TypeError: undefined is not a function ' in the kendo file.

The Data I get back from the GetMapLocations is:
{
    "Data": [
        {
            "Id": "193bfa30-ab5a-4752-9e9c-1d5187d49047",
            "Name": "1",
            "Position": {
                "Id": "4f0e020c-2e94-4761-93c7-eef076b348ce",
                "Latitude": 52.014538374454474,
                "Longitude": 5.114317642759112,
                "LatLng": [
                    52.014538374454474,
                    5.114317642759112
                ]
            },
            "LatLng": [
                52.014538374454474,
                5.114317642759112
            ]
        },
        {
            "Id": "8c85a22f-3c8e-4ccc-9470-f4b8af99db5c",
            "Name": "100",
            "Position": {
                "Id": "050d1479-74b3-45dc-8828-7dbecdd5c71b",
                "Latitude": 52.03355319309421,
                "Longitude": 5.084548511286869,
                "LatLng": [
                    52.03355319309421,
                    5.084548511286869
                ]
            },
            "LatLng": [
                52.03355319309421,
                5.084548511286869
            ]
        }
    ],
    "Total": 9360
}

Any idea what's wrong?





T. Tsonev
Telerik team
 answered on 24 Sep 2014
1 answer
115 views
Hi,

I would like to create dynamically( from a table with data) such diagramms/organigramms and I don't know, whether it is possible with the kendo ui:diagram element.
 
Please note that in this diagramm the shapes, have additional features like
  • the red and green dots in the lower right corner(similar with Visio DataShapes) --> see attached pic1, pic2 and pic3
  • the yellow diamond shape in the lower left corner -->  see attached  pic1, pic3
  • mouse over popup window which visualizes additional information -->  see attached  pic2, pic3
Pozdravi
Tihomir
T. Tsonev
Telerik team
 answered on 24 Sep 2014
2 answers
101 views
TLDR - see the issue at: http://dojo.telerik.com/ULemu

Explanation:
I am attempting to use the mobile listview within angularjs. This works fine for the basic case, but I am now attempting to add a detailbutton, as per demo (http://demos.telerik.com/kendo-ui/mobile-listview/detailbuttons) which I have attempted to translate to use angularjs directives.

However, this does not work. It seems that the listview does not like having more than one A element within an LI tag.

Any ideas what is going wrong here?

Many Thanks
Lewis
Lewis
Top achievements
Rank 1
 answered on 24 Sep 2014
1 answer
117 views
Is the toolbar widget only usable in conjunction with a grid? I would like to implement an iframe that has a toolbar above it, instead of just having floating buttons.
Alexander Valchev
Telerik team
 answered on 24 Sep 2014
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?