Setting selected items in a FlatSelector
Hi,
I've got a FlatSelector in my widget's designer .ascx. This has AllowMultipleSelection set to 'true'. So when i click on the select button, in the flatselector, i can choose multiple items. I am then saving these multiple items as a string of guids (See here). If i then go back to edit what i've already selected the flatselector will always open in it's default state with no items selected.
So is there a way to pass in values to a flatselector so they will be 'selected' when i go back and view them? I can see in the designer .js there is the jquery().dialog() being set up but i cant see where i can pass in data or even if i can.
Thanks,
Jack
Hi Jack,
It is important that you pass correct data to the flat selector so it can bind it and show the already selected and saved items, unless it will show empty (no items). If you refer to the SelectedItems tab in the opened dialog of the flat selector, you will see there only the currently selected items and when the dialog is closed, they are cleaned. This is the dialog tab default behavior.
I hope this info is useful.
Regards,
Nikola Zagorchev
Telerik