Telerik Forums
Kendo UI for jQuery Forum
1 answer
66 views
Been using suggestion from: http://www.telerik.com/forums/grid-row-hover-effect, but the latest patch breaks.

function addExtraStylingToGrid() {
    $(".k-grid > table > tbody > tr").hover(
      function () {
          $(this).toggleClass("k-state-hover");
      }
    );
};

Dimo
Telerik team
 answered on 26 Mar 2014
1 answer
240 views
Hi there,

We are facing some issues with Time Zone settings on Kendo grid. If we change the time zone settings, KendoGrid is displaying the different date based on the server's datetime settings.  We found that the Kendo team already given the fix in this link:

http://www.telerik.com/support/code-library/using-utc-time-on-both-client-and-server-sides

However, the above fix should be applied to each grid, which is very tedious job on our project. Do you have some clean fix or a single place where we can apply it to recent kendo releases?

Many thanks
Kiril Nikolov
Telerik team
 answered on 26 Mar 2014
1 answer
86 views
Hi. This company has a lot of webapps that were validated against IE8 when they were purchased, but will not function correctly with 9 or 10. This means no HTML5 or CSS3 for us (Trust me, I know what I'm missing and it's very frustrating). We are licensed to use the current DevCraft complete, which comes with Kendo UI Complete, so before I waste my time looking at what this suite has to offer, is there any part of it that I CAN use in this IE 8, CSS2.1, NO HTML5 environment? Other browsers are not an option. Thank you.
Kiril Nikolov
Telerik team
 answered on 26 Mar 2014
7 answers
84 views
Please take a look at the video: https://www.youtube.com/watch?v=M_qL1djVWWs 

Any idea on how to fix this? 

I have no such problems with iPad iOS6. Maybe it's the version difference or screen size difference.
Petyo
Telerik team
 answered on 26 Mar 2014
3 answers
198 views
I have a Kendo Grid that uses ClientDetailTemplateId to pull in a Kendo Treeview.  When using the Telerik.Grid to do the same thing the Treeview makes a call to the Controller and all is good.

However I'm not sure I understand enough to make this work.  Basically I have the Kendo Treeview template displaying with the plus sign on the node.  However when I click the Node nothing happens.  I would expect that my Action and Controller to be called.  I know the Telerik tree view made an .Ajax().Select call and I do not see that option in the Datasource.    I used the demo http://demos.kendoui.com/web/treeview/remote-data.html as a model to just try to get this too work and I have set breakpoint on the controller.  Please let me know if you have any suggestions.

 @(Html.Kendo().TreeView()         
            .Name("treeview")                                      
            .DataSource(dataSource => dataSource                         
                         .Read(read => read.Action("ActionTest", "Test"))
         .ToClientTemplate() 

---------Controller
public JsonResult ActionTest()
        {
            var x = new List<KendoTreeViewItemModel>
                {
                    new KendoTreeViewItemModel { id = "1", text = "Surname1", hasChildren=true },
                    new KendoTreeViewItemModel { id = "2", text = "Surname2", hasChildren=true },
                };

            return Json(x, JsonRequestBehavior.AllowGet);
        }

Kiril Nikolov
Telerik team
 answered on 26 Mar 2014
5 answers
260 views
Hi,
i have an error 

'StackedSports.Models.TaskViewModel' does not implement interface member 'Kendo.Mvc.UI.ISchedulerEvent.EndTimezone'

how can i solve it...

please give a solution

my code is

  public class TaskViewModel : ISchedulerEvent   //error line
    {
        public int TaskID { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }


        private DateTime start;
        public DateTime Start
        {
            get
            {
                return start;
            }
            set
            {
                start = value.ToUniversalTime();
            }
        }


        private DateTime end;
        public DateTime End
        {
            get
            {
                return end;
            }
            set
            {
                end = value.ToUniversalTime();
            }
        }
        public string RecurrenceRule { get; set; }
        public int? RecurrenceID { get; set; }
        public string RecurrenceException { get; set; }
        public bool IsAllDay { get; set; }
        public int? OwnerID { get; set; }
}






















Season
Top achievements
Rank 1
 answered on 26 Mar 2014
2 answers
64 views
Hi, I have a really weird situation...
This is the object that I apply on the "#chart" div:
var jsonObj= '{"theme":"flat","title":{"text":"Chart Example"},"legend":{"position":"bottom"},"seriesDefaults":{"type":"area","stack":false},"valueAxis":{"labels":{"format":"{0}"},"line":{"visible":false}},"categoryAxis":{"majorGridLines":{"visible":false},"categories":["January","February","March"]},"tooltip":{"visible":true,"format":"{0","template":"#= series.name #: #= value #"},"series":[{"name":"Laptops","data":["580128.76","605738.43","623952.02"]},{"type":"line","color":"black","name":"Desktops","data":["341256.83","349459.64","372171.72"]},{"name":"Monitors","data":["216312.2","198456.88","190986.52"]},{"name":"screen","type":"line","data":["1070735.75","1378216.47","1451521.87"]},{"name":"Printers, Scanners &amp; Fax","data":["413073.94","389794.43","386159.53"]},{"name":"Computers Accessories","data":["125405.48","116073.28","115902.61"]}]}';

var obj = JSON.parse(jsonObj);

http://trykendoui.telerik.com/aXIl

As you see the series data is different in one series to another.
BUT!, when I put it in my workarea it's look like this:
http://trykendoui.telerik.com/aXIl/2

what can I do?










Ofir
Top achievements
Rank 1
 answered on 25 Mar 2014
4 answers
340 views
Hello,

I have a grid which is using a popup editor form, so I have a shared view serving as the popup form. Inside that shared view I am editing a string field by using:

@Html.EditorFor( zone=> zone.ZoneContents, "ContentEditor", new { contents = Model.ZoneContents})

So this is using my "ContentEditor" shared view which is under the Views/Shared/EditorTemplates folder. All is well and good. The editor appears, I'm able to insert content and then when I try to update I get an error because zone.zonecontents is null.

Why would it not be updating the model with the value?

I would have posted some more code in here but the formatter isn't currently working and it would be pretty ugly. I can post more later, just let me know what you want to see.

Thanks!

Cool Breeze
Top achievements
Rank 1
 answered on 25 Mar 2014
3 answers
183 views
I have a grid that when it tries to update, the ID field of my model is an empty guid when it gets back to the controller. I am displaying the column in the guid and the value is definitely there. What would cause the ID to be stripped out like that?

Here is my view with the grid:

@model List<Common.Models.Brand>
 
@{
    ViewBag.Title = "Maintain Brands";
}
 
<h2>Maintain Brands</h2>
 
@(Html.Kendo().Grid(Model)
    .Name("MaintainBrandsGrid")
    .Columns(columns =>
    {
        columns.Bound(brand => brand.BrandId).Title("Id");
        columns.Bound(brand => brand.BrandName).Title("Brand Name");
        columns.Command(command => { command.Edit(); command.Destroy(); }).Width(185);
    })
    .ToolBar(toolbar => toolbar.Create())
    .Editable(editable => editable.Mode(GridEditMode.InLine))
    .Pageable()
    .Sortable()
    .Scrollable(scr=>scr.Height(430))
    .Filterable()   
    .DataSource(dataSource => dataSource       
        .Ajax()
        .PageSize(20)
        .ServerOperation(false)
        .Model( model => model.Id( brand => brand.BrandId))
        .Create( create => create.Action("AddBrand", "BrandMaintenance"))
        .Update( update => update.Action("UpdateBrand", "BrandMaintenance"))
        .Destroy( delete => delete.Action("RemoveBrand", "BrandMaintenance"))
        )       
     )

And here is the UpdateBrand method from the BrandMaintenance controller:

//
        // POST: /BrandMaintenance/UpdateBrand
        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult UpdateBrand([DataSourceRequest]
                                        DataSourceRequest request, Brand brand)
        {
            if (brand != null && ModelState.IsValid)
            {
                var bll = new CatalogMaintenanceBll();
                bll.UpdateBrand(brand);
            }
 
            return Json(new[] { brand }.ToDataSourceResult(request, ModelState));
        }

I have several other grids that were created the exact same way and they are all working, so I am wondering what I could possibly be missing that could cause this.

Thanks for any help!








Cool Breeze
Top achievements
Rank 1
 answered on 25 Mar 2014
2 answers
158 views
Hello everybody,

i'm trying to make one grid with Hierarchy, but the hierarchy grid return all rows everytime.

To populate the grids, i have two json files:
-OS.json to principal;
-ITEM.json to hierarchy grid;

OS.json:
[{"cdOS":474103,"cdSelb":"X112","solicitante":"CLEBSON "},
{"cdOS":474104,"cdSelb":"A335","solicitante":"FERNANDO "}]

ITEM.json:
[{"cdOS":474103,"status":"ABERTO","usuario":"nivaldo.oliveira"},
{"cdOS":474103,"status":"FECHADO","usuario":"carlos.alberto"},
{"cdOS":474104,"status":"ABERTO","usuario":"nivaldo.oliveira"},
{"cdOS":474104,"status":"FECHADO","usuario":"carlos.alberto"}]



<div id="grid"> </div>

                $(document).ready(function() {
                    var element = $("#grid").kendoGrid({
                        dataSource: {
                            type: "json",
                            pageSize: 10,
                            serverPaging: true,
                            serverFiltering: true,
                            serverSorting: true,
                            transport: {
                                read: {
                                    url: "js/OS.json",
                                    dataType: "json"
                                },
                                schema: {
                                    model: {
                                        fields: {
                                            cdOS: { type: "number" },
                                            cdSelb: { type: "string" },
                                            solicitante: { type: "string" }
                                        }
                                    }
                                }
                            }
                        },
                        height: 550,
                        filterable: true,
                        sortable: true,
                        pageable: true,
                        detailInit: detailInit,
                        dataBound: function() {
                            this.expandRow(this.tbody.find("tr.k-master-row").first());
                        },
                        columns: [{
                            field: "cdOS",
                            title: "OS"
                        },
                        {
                            field: "cdSelb",
                            title: "SELB"
                        },
                        {
                            field: "solicitante",
                            title: "Solicitante"
                        }]
                        });
                    });

                function detailInit(e) {
                    $("<div/>").kendoGrid({
                        dataSource: {
                            type: "json",
                            transport: {
                            read: {
                                url: "js/ITEM.json",
                                dataType: "json"
                                },
                                schema: {
                                    model: {
                                        fields: {
                                            cdOS: { type: "number" },
                                            status: { type: "string" },
                                            usuario: { type: "string" }
                                        }
                                    }
                                }                                
                            },
                            serverPaging: true,
                            serverSorting: true,
                            serverFiltering: true,
                            pageSize: 6,
                            filter: { field: "cdOS", operator: "eq", value: e.data.cdOS }
                        },
                        scrollable: true,
                        sortable: true,
                        pageable: true,
                        columns: ["cdOS", "status","usuario"]
                    }).appendTo(e.detailCell);
                }


Anybody can help-me to resolve this issue?
I wanna to return only two rows in hierarchy grid, for one row in principal grid, the link is "CdOS".

Thanks!
Umesh
Top achievements
Rank 1
 answered on 25 Mar 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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?