Telerik Forums
Kendo UI for jQuery Forum
7 answers
185 views
I have several bubbles which are all very close to each other. One of the bubble is the "User", and is colored differently. It's currently overlapped by other bubbles. Is there a way to get this bubble in front of others?

Aaron
Pat
Top achievements
Rank 1
 answered on 25 Jan 2017
1 answer
177 views

Hi all,

I am currently struggling with changing the editor template of the new/edit appointment. I am using the latest UI for asp.net mvc and i have managed to load a custom cshtml file when in order edit the appointment. The appointment additional fields from the model are displayed as should, and the data is binded correctly as well. However, when i add any additional property of my custom model to the form the validation fails (client side validation prevent the post, happens only on the additional fields) and display empty message (image attached). I tried adding a submit button to the form and when i used my own one everything is working and the data passed to the controller is correct, however with this way i will have to implement all scheduling events myself, which i am trying to avoid.

Any suggestion will be appreciated.

thanks in advanced,

udi

 

Peter Milchev
Telerik team
 answered on 24 Jan 2017
1 answer
82 views

Hi there,

Kendo Grid.

I am using Angular 1.5 for reference. I have the resizable and reorderable properties in place and working as expected, as well as a column that is locked on grid creation, with lockable set to false so it can't leave the docked area no matter what.

I need to ensure that this locked docked column is always the left-most column in the docked section.What would be the best way to implement this?

Thanks for your time!

Dakota
Top achievements
Rank 1
 answered on 24 Jan 2017
3 answers
415 views

I have combobox control on Angular 2 project. but after set value for it, the text does not show up, but the option in the dropdown gets selected. here is the code:

=====================

<kendo-combobox spellcheck="false" *ngIf="editable" [data]="filteredEarningTypes" [textField]="'DisplayName'" [valueField]="'Code'" [value]="selectedEarningType"
[valuePrimitive]="false" 
(selectionChange)="earningTypeChange($event)" >
<template itemTemplate let-dataItem>
{{ dataItem.Code }} - {{ dataItem.Name }}
</template>
</kendo-combobox>

=====================

screen shot attached. can someone help please?

Thanks

 

 

Alexander Popov
Telerik team
 answered on 24 Jan 2017
4 answers
592 views

Hi, 

I have a treeview which loads its nodes dynamically on expand, which works fine. I also have a button to 'Expand All' to open all nodes as far as the tree goes.

Unfortunately I have no way of knowing how big the tree is or how deep it goes until the data is loaded. So instead of recursively calling '.expand()' until there are no more closed nodes (which would make 10's of server requests for data), I would rather Retrieve the entire tree, and reset the dataSource to a local one that contains all the entire tree.

I'm having some trouble though, when I reset the DS to local and expand a node, the tree is still making a request call which retrieved the entire tree again as node contents. Note that I am also trying to set loadOnDemand to false, but its having no affect.

Any advice on this scenario would be great.

Thanks,
Grant

Veselin Tsvetanov
Telerik team
 answered on 24 Jan 2017
1 answer
1.9K+ views

Based on a previous forum post, I now have custom keypress bindings working via typescript for text-boxes and text-areas. I would very much like to extend numerictextbox and datepicker/datetimepicker to support this as well, but the same bindings do not seem to work for those controls. I believe this has to do with the way the actual input gets wrapped for those controls.

I'm currently doing this:

 

module kendo.data.binders.widget {
    export class keypress extends kendo.data.Binder {
        init(widget, bindings, options) {
            //call the base constructor
            kendo.data.Binder.fn.init.call(this, widget.element[0], bindings, options);
        }
 
        refresh() {
            var that = this,
                value = that.bindings["keypress"].get(); //get the value from the View-Model
            that.element.custom(value);
        }
    }
}

 

... and then in the cshtml file, I'm trying to bind the numerictextbox like so:

<div>
  <input type="text"
    name="SortOrder"
    data-role="numerictextbox"
    data-bind="value:assetType.SortOrder, events: {change: detailChange, keypress: detailChange}"
    data-format="n0"
    style="width: 100%;" />
</div>

 

... but the keypress event does not fire when I do this. Is there a mechanism I can use to get the keypress event to fire/respect MVVM bindings for non-textbox controls?

Thanks in advance!

Alexander Popov
Telerik team
 answered on 24 Jan 2017
3 answers
1.1K+ views

Hi.

I have a Kendo Grid with two detail levels.

  • Main row (top level)
  •    Details
  •       Details of details

Using this example I am able to export the "Main row" along with the "Details" row. But I am having a hard time exporting the "Details of details" row. I know it should be possible using the approach in the example, but cannot seem to shuffle the code "the right way". Has anyone done this before, and can provide an example?

 

Thanks.

Dimo
Telerik team
 answered on 24 Jan 2017
1 answer
536 views

I have a grid that displays some data.  The date column in this schema is never null but shows as :
Created :'/Date(1482849165710)/'

I tried this and it does not change anything:
<li><label>Created :</label>'#= kendo.toString(CreatedDateTime, "dd/MM/yyyy") #'</li>

How can I format this date?  And is there something else needed?

 

Thanks,

Reid

Alex Hajigeorgieva
Telerik team
 answered on 24 Jan 2017
1 answer
144 views

Hi, following on from http://www.telerik.com/forums/why-is-the-span-position-static#NeKbtFbNzUGLtgZqX1kKmg

I notice that if the name attribute is removed, for example, http://dojo.telerik.com/IyoVU/5 then the tooltip is again disappearing.  Does the validation require that elements have the name attribute? 

Alex Hajigeorgieva
Telerik team
 answered on 24 Jan 2017
7 answers
990 views
I'm trying to represent a data with 3 level in a TreeView. The documentation about schema shows just one example with one level only. The data goes like this:
  components: kendo.observableHierarchy({
  data: [
            {
                label1: "label A", description: "this is label A", subcomponents: [
                    {labelI: "label AA", value: 1.4 },
                    {labelI: "label AB", value: 1.68 }
                ]
            },
            {
                label1: "label B", description: "this is label B",  subcomponents: [
                    {labelI: "label BA", value: 1.7},
                    {
                        labelI: "label BB", value: 2.8 , parts:[
                            {name:"part1"},
                            {name:"part2"}
                        ]
                    }
                ]
            }
 
        ],
    schema:{
        model
        {
            [?????]
        }
    }
});
I want to know how to specify the schema in this case. In the case of 2 levels is like this : schema:{model:{children:"subcomponents"}}, but the documentation doesn't help me to determinate how is in a general case. I declare the TreeView like this:

<div id="treeview-div"
     data-role="treeview"
     data-bind="source: components" 
     data-checkboxes="{checkChildren: true}"
     data-text-field="['label1','labelI','name']">
</div>
How should I specify schema in this case?
Veselin Tsvetanov
Telerik team
 answered on 24 Jan 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?