Hi, How to retain the values selected in kendo multiselect in the first page of the two form pages upon going to second page

1 Answer 22 Views
General Discussions MultiSelect
Rakesh
Top achievements
Rank 1
Rakesh asked on 03 Apr 2024, 09:35 AM
I had two page form in which in first page using kendo multiselect and after selecting the options in the first page and going to second page and then returning back to previous page i.e first page where I have selected options is getting blank how to retain the values??

1 Answer, 1 is accepted

Sort by
0
Hetali
Telerik team
answered on 03 Apr 2024, 08:35 PM

Hello Rakesh,

To retain the selection of the Kendo UI MultiSelect component, use the value property as seen below:

<kendo-formfield>
  <kendo-label [for]="multiselect" text="Multiselect"></kendo-label>
  <kendo-multiselect 
    formControlName="multiselect"
    [data]="listItems" 
    [(value)]="value"
  >
  </kendo-multiselect>
</kendo-formfield>

This StackBlitz example demonstrates the snippet mentioned above.

Please give it a try and let me know if it helps or if I can further assist you.

Regards,
Hetali
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
General Discussions MultiSelect
Asked by
Rakesh
Top achievements
Rank 1
Answers by
Hetali
Telerik team
Share this question
or