I included the TreeList-Component in my view like this:
@(Html.Kendo().TreeList<TaxonomyTreeNodeViewModel>()
.Name(
"treelist"
)
.Toolbar(
toolbar =>
{
/*toolbar init*/
}
)
.Columns(columns =>
{
columns.Add().Field(e => e.GermanTranslation);
columns.Add().Field(e => e.Sequence);
columns.Add().Command(c =>
{
if
(!Model.IsPublished)
c.Edit();
if
(!Model.IsPublished)
c.Destroy();
if
(!Model.IsPublished)
c.CreateChild();
});
})
.Editable(editable => editable.Move(
true
))
.Reorderable(
true
)
.Filterable()
.Sortable()
.Editable()
.DataSource(dataSource => dataSource
.Read(read => read.Action(
"All"
,
"DashboardTaxonomy"
))
.Update(update => update.Action(
"Update"
,
"DashboardTaxonomy"
))
.Create(create => create.Action(
"Create"
,
"DashboardTaxonomy"
))
.Destroy(destroy => destroy.Action(
"Destroy"
,
"DashboardTaxonomy"
))
.ServerOperation(
false
)
.Model(m =>
{
m.Id(f => f.Id);
m.ParentId(f => f.ParentId);
m.Field(f => f.EnglishTranslation);
m.Field(f => f.Sequence);
})
)
.Events(
events =>
{
events.DataBound(
"TaxonomyTreeWidget.dataBound"
);
}
)
)
}
With the following Model:
public
class
TaxonomyTreeNodeViewModel
{
public
string
Id {
get
;
set
; }
public
string
ParentId {
get
;
set
; }
[Display(Name =
"Reihenfolge"
)]
public
int
Sequence {
get
;
set
; }
[Display(Name =
"Deutsche Bezeichnung"
)]
public
string
GermanTranslation {
get
;
set
; }
[Display(Name =
"Englische Bezeichnung"
)]
public
string
EnglishTranslation {
get
;
set
; }
[Display(Name =
"Versionsnummer"
)]
public
int
Version {
get
;
set
; }
[Display(Name =
"Veröffentlicht"
)]
public
bool
Published {
get
;
set
; }
/*[...]*/
}
The TreeListrenders the expected result. When I click on an edit-button I'm able to edit and save the data-row.
But when I cancel the Edit a Confirm Dialog appears (Test: "Are you sure you want to delete this record?") and the button with data-command="canceledit" is deleted from the DOM and a data-command="destroy"-Button appears.
I found these issues with almost the same behavior:
http://www.telerik.com/forums/grid-popup-edit-cancel-problem
http://www.telerik.com/forums/bug---cancel-button-in-event-edit-window-is-removing-event
Can you help me?
Hello,
I just encountered a problem with the redo function of the spreadsheet.
Depending on the demo: http://demos.telerik.com/aspnet-core/spreadsheet/index
Procedure:
Hello,
I have a large dataset and I was wondering if is possible to enable search on a grid using fields not included in the grid?
Thanks!
Hello,
I need to control my sortable list with the keyboard. As far as I know there is no such function implemented in the current sortable widget, right? I just tried the following to extend it by myself, but there is a problem:
Could you please help me with a working solution?
Hello,
the accessibility is in our projects an importnant point. I need to use each feature with keyboard control. For the spreadsheet I found the following documentation for keyboard access.
http://docs.telerik.com/kendo-ui/controls/data-management/spreadsheet/end-user/list-of-shortcuts
The main problem is, that when I am with the focus in the toolbar, I cant access the back/forward buttons or tabs above. And when I am tabbing into the first cell, I am caught in the table. When I reach the last cell and press tab again, it pushes me back to the first cell. How is it possible to lose the focus of the spreadsheet to continue to the other focusable items of the application. Is this a bug or am I missing a shortcut here?Hello,
I just used the TreeView widget and inserted items with the API method 'insertAfter' and 'insertBefore'. Unfortunately the typescript definition of these methods says, it returns void, but actually it returns the new inserted item (which I need at this point). I updated my kendo.all.d.ts file now, but if I will update kendo in the future, it would overwrite these lines. It would be great if you could fix this for the next release.
insertAfter(nodeData: any, referenceNode: JQuery): void;
insertBefore(nodeData: any, referenceNode: JQuery): void;
// to
insertAfter(nodeData: any, referenceNode: JQuery): JQuery;
insertBefore(nodeData: any, referenceNode: JQuery): JQuery;
When adding the Destroy command to a column, the .Destroy action does not hit the controller action method.
You can reproduce the bug with your DVDGo sample application by making it InCell editing, .Batch(true), .ServerOperation(false).
Hello,
to localize my spreadsheet, I included the "kendo.messages.de-DE.js" into my document. Because it is not translated completely, I extended my version with the keys from "kendo.messages.en-US.js".
I.e. when I hover over the "freeze panes" button, I get my translated title, but the submenu still shows me the english text. Its the same problem with the "Merge cells" button.
kendo.spreadsheet && kendo.spreadsheet.messages.toolbar && (kendo.spreadsheet.messages.toolbar = a.extend(!0, kendo.spreadsheet.messages.toolbar, {
...
freeze:
"Fenster fixieren"
,
freezeButtons: {
freezePanes:
"Fenster fixieren"
,
freezeRows:
"Zeile fixieren"
,
freezeColumns:
"Spalte fixieren"
,
unfreeze:
"Fixierung aufheben"
},
...
Hello,
in your example http://demos.telerik.com/aspnet-core/spreadsheet/index if you have a selection and start to drag (copy) the cells with the right bottom corner point, there appears a cut-off box at the top left corner of the table. This seems to be a style issue, right?