Telerik Forums
Kendo UI for jQuery Forum
3 answers
188 views
Hi,

I've an unordered list of items which is convert to a Treeview. I want my tree to be have drag and drop functionality as well as check-boxes to unable multiple selection. Drag and drop is working perfectly but when i try to use check-boxes, check-boxes just dont show up. Due to project complexity i can't use data source to bind to treeview, it has to be unordered list. The List is not static, items are added at runtime. Kendo version used: 2013.2.716

Below is the sample code:
<div id="example" class="k-content">
            <div class="demo-section">
                <ul id="treeview">
                    <li data-expanded="true">
                        <span class="k-sprite folder"></span>
                        My Web Site
                        <ul>
                            <li data-expanded="true">
                                <span class="k-sprite folder"></span>images
                                <ul>
                                    <li><span class="k-sprite image"></span>logo.png</li>
                                    <li><span class="k-sprite image"></span>body-back.png</li>
                                    <li><span class="k-sprite image"></span>my-photo.jpg</li>
                                </ul>
                            </li>
                            <li data-expanded="true">
                                <span class="k-sprite folder"></span>resources
                                <ul>
                                    <li data-expanded="true">
                                        <span class="k-sprite folder"></span>pdf
                                        <ul>
                                            <li><span class="k-sprite pdf"></span>brochure.pdf</li>
                                            <li><span class="k-sprite pdf"></span>prices.pdf</li>
                                        </ul>
                                    </li>
                                    <li><span class="k-sprite folder"></span>zip</li>
                                </ul>
                            </li>
                            <li><span class="k-sprite html"></span>about.html</li>
                            <li><span class="k-sprite html"></span>contacts.html</li>
                            <li><span class="k-sprite html"></span>index.html</li>
                            <li><span class="k-sprite html"></span>portfolio.html</li>
                        </ul>
                    </li>
                </ul>
            </div>
            <script>
                $(document).ready(function () {
                    $("#treeview").kendoTreeView({
                        dragAndDrop: true,
                        checkboxes: {
                            checkChildren: true
                        }
                    });
                });
            </script>
        </div>
Alexander Popov
Telerik team
 answered on 26 Mar 2014
1 answer
85 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
255 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
97 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
96 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
226 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
285 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
71 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
360 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
204 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
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
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?