Telerik Forums
Kendo UI for jQuery Forum
2 answers
74 views
I'm currently using the dataBound tag to modify events to set the opacity if a condition is not met. This is working great for single events; However if I add a new series of events only the first one sets as expected. The other events in the series do not change. I see the other events have different id's. Is there a way for me to access these other events that are created?

Here is an example, Just modify the task to be a series.
http://dojo.telerik.com/@bbmicha/ayEtO/5


Thanks!
Brett
Top achievements
Rank 1
 answered on 22 Jun 2016
6 answers
386 views

I am getting an "Invalid Template" error using the latest Telerik MVC libraries 2016.2.607.  The child grid appears to work fine without the editable functions but throws the error when you try to add them back in.  As you can see from the code, I've attempted to isolate the issue by commenting out the editable functions in the child grid.  Any help would be greatly appreciated.

Index.cshtml:

<hr />
<div class="container-fluid">
    @(Html.Kendo().Grid<Applications.TagSubscription.Models.TagGroupModel>()
    .Name("taggroupgrid")
    .Columns(cols =>
    {
        cols.Bound(t => t.Source);
        cols.Bound(t => t.TagName).Title("Subscription Group");
        cols.Bound(t => t.TagGroupTypeName).Title("Subscription Group Type");
        cols.Command(command => { command.Edit(); command.Destroy(); }).Width(250);
    })
    .HtmlAttributes(new { style = "height: 700px;" })
        .ToolBar(toolbar => toolbar.Create())
        .Editable(editable => editable.Mode(GridEditMode.InLine))
        .Filterable()
        .Scrollable()
        .Sortable()
        .Pageable(pageable => pageable
            .Refresh(true)
            .PageSizes(true)
            .ButtonCount(5)
        )
        .ClientDetailTemplateId("grp_mbr_template")
        .DataSource(dataSource => dataSource
            .Ajax()
            .PageSize(20)
            .Events(events => events.Error("error_handler"))
            .Model(model => model.Id(t => t.TagGroupId))
            .Create(update => update.Action("TagGroupCreate", "Home"))
            .Read(read => read.Action("TagGroupRead", "Home"))
            .Update(update => update.Action("TagGroupUpdate", "Home"))
            .Destroy(update => update.Action("TagGroupDestroy", "Home"))
        )
        .Events(events => events.DataBound("dataBound"))
    )
</div>
 
<script id="grp_mbr_template" type="text/kendo-tmpl">
    @(Html.Kendo().Grid<Applications.TagSubscription.Models.TagSubscriptionModel>()
        .Name("taggroupgrid_#=TagName#")
        .Columns(cols =>
        {
            cols.Bound(t => t.Source);
            cols.Bound(t => t.TagName);
            cols.Bound(t => t.Attribute);
            cols.Bound(t => t.TagGroupMemberRoleName).Title("Role");
            cols.Bound(t => t.Description);
            cols.Bound(t => t.Unit);
            cols.Bound(t => t.Frequency);
            cols.Bound(t => t.Resolution);
            cols.Bound(t => t.RetrievalMode);
            cols.Bound(t => t.Facility);
            cols.Bound(t => t.FacilityType);
            cols.Bound(t => t.Equipment);
            cols.Bound(t => t.EquipmentSerial);
            cols.Command(command => {
                    //command.Edit();
                    //command.Destroy();
                }).Width(250);
        })
        .HtmlAttributes(new { style = "height: 550px;" })
        .ToolBar(toolbar => toolbar.Create())
        //.Editable(editable => editable.Mode(GridEditMode.InLine))
        .DataSource(dataSource => dataSource
            .Ajax()
            .Events(events => events.Error("error_handler"))
            .Model(model =>
            {
                model.Id(t => t.Id);
                //model.Field(t => t.Description).Editable(false);
                //model.Field(t => t.Unit).Editable(false);
                //model.Field(t => t.FacilityType).Editable(false);
                //model.Field(t => t.EquipmentSerial).Editable(false);
            })
            .Create(update => update.Action("SubscriptionCreate", "Home"))
            .Read(read => read.Action("SubscriptionRead", "Home", new { TagName = "#=TagName#" }))
            //.Update(update => update.Action("SubscriptionUpdate", "Home"))
            //.Destroy(update => update.Action("SubscriptionDestroy", "Home"))
        )
        .ToClientTemplate()
    )
</script>
 
<script>
    function dataBound() {
        this.expandRow(this.tbody.find("tr.k-master-row").first());
    }
</script>
 
<script type="text/javascript">
    function error_handler(e) {
        if (e.errors) {
            var message = "Errors:\n";
            $.each(e.errors, function (key, value) {
                if ('errors' in value) {
                    $.each(value.errors, function () {
                        message += this + "\n";
                    });
                }
            });
            alert(message);
        }
    }
</script>

HomeController.cs

using Kendo.Mvc.Extensions;
using Kendo.Mvc.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Applications.TagSubscription.Models;

namespace Applications.TagSubscription.Controllers
{
    public class TagBaseController : Controller
    {

        public ActionResult Index()
        {
            LoadViewData();

            return View();
        }

        private void LoadViewData()
        {
            ViewData["sources"] = MockData.ReadMockSource();
            ViewData["tags"] = MockData.ReadMockTag();
            ViewData["tagattribute"] = MockData.ReadMockTagAttrib();
            ViewData["taggrouptype"] = MockData.ReadMockTagGroupType();
            ViewData["taggroupmemberrole"] = MockData.ReadMockTagRole();
            ViewData["frequency"] = MockData.ReadMockFrequency();
            ViewData["resolution"] = MockData.ReadMockResolution();
            ViewData["retrievalmode"] = MockData.ReadMockRetrievalMode();
        }

        public ActionResult TagGroupRead([DataSourceRequest] DataSourceRequest request)
        {
            var results = MockData.ReadMockTagGroup();

            return Json(results.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
        }
        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult TagGroupCreate([DataSourceRequest] DataSourceRequest request, TagSubscriptionModel model)
        {
            if (model != null && ModelState.IsValid)
            {
                //TODO: Implement...
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult TagGroupUpdate([DataSourceRequest] DataSourceRequest request, TagSubscriptionModel model)
        {
            if (model != null && ModelState.IsValid)
            {
                //TODO: Implement...
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult TagGroupDestroy([DataSourceRequest] DataSourceRequest request, TagSubscriptionModel model)
        {
            if (model != null)
            {
                //TODO: Implement...
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);
        }

        public ActionResult SubscriptionRead([DataSourceRequest] DataSourceRequest request)
        {
            return SubscriptionRead(string.Empty, request);
        }

        public ActionResult SubscriptionRead(string TagName, [DataSourceRequest] DataSourceRequest request)
        {
            var results = MockData.ReadMockSubscription();

            return Json(results.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult SubscriptionCreate([DataSourceRequest] DataSourceRequest request, TagSubscriptionModel model)
        {
            if (model != null && ModelState.IsValid)
            {
                //TODO: Implement...
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult SubscriptionUpdate([DataSourceRequest] DataSourceRequest request, TagSubscriptionModel model)
        {
            if (model != null && ModelState.IsValid)
            {
                //TODO: Implement...
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult SubscriptionDestroy([DataSourceRequest] DataSourceRequest request, TagSubscriptionModel model)
        {
            if (model != null)
            {
                //TODO: Implement...
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);
        }


    }
}

 

Maria Ilieva
Telerik team
 answered on 22 Jun 2016
5 answers
849 views
Is there a way to get the Panelbar slide Horizontal instead of vertical? That would be nice.
Dimo
Telerik team
 answered on 22 Jun 2016
3 answers
854 views

I'm getting an error when trying to navigate to a route:

TypeError: r is undefined

kendo.all.min.js (line 26, col 20881)

 

All I've done is set up a basic router, with one route and receive this error when trying to navigate to that route.

HTML:

<div class="col-sm-3 col-lg-2 zero-padding sidebar sidebar-fixed">
    <div class="col-sm-3 col-lg-2 sidebar-fixedsub zero-padding">
        <ul id="accordion" class="accordion side-menu">
            <li class="hidden-xs">
                <div class="sidebar-actions">
                    <button id="menu_resize" data-role="button" class="k-button resize-menu-level-1" role="button" aria-disabled="false" data-level="1">
                        <i class="fa-icon-bars"></i>
                    </button>
                </div>
            </li>
            <li id="subscribed">
                <a class="link k-link"><i class="fa-icon-comments"></i><span class="nav-item-text nav-item-text-main">Subscribed</span></a>
                    <ul class="submenu">
                        <li><a onclick="navigateContainer($(this));"><span class="nav-item-text">Subscription 1</span><span class="badge">5</span></a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>

Router JS:

var router = new kendo.Router({
    routeMissing: function(e) {
        e.preventDefault();
    }
});
 
router.route("/", function() {
    generateDiscussionView();
});
 
router.route("/thread/:containerid", function(containerid) {           
    triggerContainer(container);
});
 
$(function() { 
    router.start();
});

Main JS:

function navigateContainer(container) {
    router.navigate("/thread/" + container);
}
 
function triggerContainer(container) {     
    generateDiscussionView();          
}

Dimo
Telerik team
 answered on 22 Jun 2016
1 answer
122 views

See https://demos.telerik.com/kendo-ui/treeview/api

 

i expect filter by '2'  to show 2.1,2.2,2.3,1.2 
it fails

i expect filter by '1.'  to show 1.1,1.2,1.3
it fails

 

thanks

Boyan Dimitrov
Telerik team
 answered on 22 Jun 2016
2 answers
177 views

Hello we are using kwindow service as described here: http://docs.telerik.com/kendo-ui/AngularJS/how-to/window-service

We experience the followoing issues, regarding keyboard accessibility:

1.We have grid inside window, and one of the columns of that grid is a dropdown. to access this dropdown, we press Enter and Alt + arrow up. This behavior is different (and even incorrect), from outside modal, where enter and arrow down is enough. We want a way to achieve same behavior inside modal.

2. we want to prevent access to underlying screen when the modal is open.

3. I noticed that sometimes when editing cells, and the user presses shift + Tab, there focusing cell jumps elsewhere, I even could see this in a demo (try to check /uncheck  a checkbox with keyboard only)

Here: http://jsbin.com/kuzezelada/edit?html,js,output

Is there a way to ensure the focus goes to previous cell? (the user moves between cells with tabs/shit+tabs.

 

Thank you in advanve

Dimo
Telerik team
 answered on 22 Jun 2016
2 answers
365 views
0
down vote
favorite
We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

Tab between cells
Automatically advance to the next row when tabbing off the last cell in a row.
Automatically add a new row when tabbing off the last cell of the last row.
However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:bhuybhub
0
down vote
favorite
We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

Tab between cells
Automatically advance to the next row when tabbing off the last cell in a row.
Automatically add a new row when tabbing off the last cell of the last row.
However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code: vghv gh gh
0
down vote
favorite
We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

Tab between cells
Automatically advance to the next row when tabbing off the last cell in a row.
Automatically add a new row when tabbing off the last cell of the last row.
However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

Boyan Dimitrov
Telerik team
 answered on 22 Jun 2016
5 answers
248 views

Hi!

Environment

2016.2.607 version

Latest Chrome (Windows)

 

kendo pie & angular -  tooltip & labels templates issue

I configured pie chart with code below 

tooltip: {
                visible: true,
                template: "#= year # - test"
            },
            labels: {
                template: "#= year # - test",
                position: "outsideEnd",
                visible: true,
                background: "transparent"
            }

part 1 - labels template commented, kendo fails to create tooltips template (Line 48)

http://codepen.io/lev-savranskiy/pen/dXMErZ?editors=1000

part 2- when labels template uncommented , kendo fails completely

http://codepen.io/lev-savranskiy/pen/xOVowL?editors=1000

 

Any ideas?

 

THanks

 

 

 

 

Iliana Dyankova
Telerik team
 answered on 22 Jun 2016
1 answer
449 views

HI, I'm on test refer to http://demos.telerik.com/kendo-ui/grid/pdf-export

It works well with export to PDF file but there is a problem I found.

Korean,  something like Asian words cracks on PDF file.

I'm wondering I can encode in UTF-8 when I export to PDF my grid.

And with broken Asian words, column's height cracks too on first page even though put scale on it. 

What is the problem with that?

Alexander Popov
Telerik team
 answered on 22 Jun 2016
7 answers
539 views

So I am trying to use the template with the pdf export of a grid and I can't seem to find the correct syntax.

The grid exports to pdf, at the size outlined in the grid template, in landscape, but there is nothing from the page-template

included (the footer, header, etc).

<script type="x/kendo-template" id="page-template">
        <div class="page-template">
            <div class="header">
                Acme Inc.
            </div>
            <div class="watermark">I C L A</div>
            <div class="footer">
                The Important Message Goes Here, all else is fluff
                <div style="float: right">Page #: pageNum # of #: totalPages #</div>
            </div>
        </div>
</script>

 

 

So then I have the grid template

...

data-pdf= "{
                    'fileName': 'Greeeid.pdf',
                    'filterable': true,
                    'paperSize': [4000, 1500],
                    'margin': '{ top: 3cm, right: 1cm, bottom: 1cm, left: 1cm }',
                    'multipage': true,
                    'landscape': true,
                    'scale': '0.75',
                    'allPages': true,
                    'template': kendo.template($('#page-template').html())
                    }"

...

I think the problem is in the template line just above, but it may also be to do with the margin attribute.

I have yet to see good documentation on these properties in the KendoUI MVVM context, and the syntax seems to be

very unforgiving regarding single/double quotes, what needs to be a string etc..

Can anyone see the problem here?

Thanks -

Stefan
Telerik team
 answered on 22 Jun 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?