Get item id list for selected items

4 posts, 0 answers
  1. LittleDragon
    LittleDragon avatar
    20 posts
    Member since:
    Apr 2013

    Posted 19 Sep Link to this post

    right now we can see node index values we can get as sleeted values instead of this i need to get below

    lets say we have unique ID value for each node items then we select the items on tree I need to get that  unique ID value as selected values

    how can I achieve this ?

  2. Martin
    Admin
    Martin avatar
    252 posts

    Posted 22 Sep Link to this post

    Hello,

    Thanks for the screenshot.

    In order to capture the selected dataItem in TreeView, use selectionChange event:

    https://www.telerik.com/kendo-angular-ui/components/treeview/selection/#toc-modifying-the-selection

    https://stackblitz.com/edit/angular-1qph6q?file=app/app.component.ts

    I hope this helps.

    Regards,
    Martin
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

  3. LittleDragon
    LittleDragon avatar
    20 posts
    Member since:
    Apr 2013

    Posted 23 Sep in reply to Martin Link to this post

    Hi Martin

     

    by using  (checkedChange)="handleChecking($event)"  I was able to access the data item but how can I identify whether user check on checkbox or unchecked ?

  4. Martin
    Admin
    Martin avatar
    252 posts

    Posted 24 Sep Link to this post

    Hello,

    For that purpose, the developer can utilize the checkedChange event. It fires each time when the user selects a TreeView node checkbox.

    In case of further questions do not hesitate to write back.

    Regards,
    Martin
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top