Skip to content

KB article on how to get the parent item for the TreeList when inserting a child. #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 20, 2020

Conversation

svdimitr
Copy link
Contributor

No description provided.

@svdimitr svdimitr self-assigned this Oct 20, 2020
@using Telerik.DataSource;

<TelerikTreeList Data="@Data"
EditMode="@TreeListEditMode.Popup"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check how things are in InLine mode and whether the ParentItem is needed here too. If so - add it to the snippet.

@* One way to get metadata in the current item about its parent upon insertion *@

<TelerikTreeList Data="@Data"
EditMode="@TreeListEditMode.Popup"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this, make sure things are OK with it and the editor template, also test with InLine mode.

@svdimitr svdimitr merged commit 39e6e4e into master Oct 20, 2020
@svdimitr svdimitr deleted the kb-treelist-parent-on-insert branch October 20, 2020 16:11
svdimitr added a commit that referenced this pull request Oct 21, 2020
…ing a child. (#155)

* feat(kb): get parent item on insert for the treelist

* chore(kb): treelist get parent on insert improvements

Co-authored-by: Marin Bratanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants