How do I make the selected item change in a list picker when a new item is tapped?

1 Answer 353 Views
ListPicker Popup
Nate
Top achievements
Rank 1
Nate asked on 29 Jun 2023, 08:40 PM

Hello!

I am using a list picker and had to style it without the "Ok" button in the footer in order to match the other popups I used. However, I cant seem to figure out how to get the picker to update the selected item without calling the accept command with the ok button. I wanted to use an event to command behavior in order to call the accept command when the selection changes, but it looks like the selection changed event only fires when the accept command is called. Currently, if I tap a new item in the list, it will change the highlighted item but not the value in the display. I've attached a screen shot of my picker so you can see what it looks like without the ok button. Are there any work arounds to change the selected item and close the popup when a new item is clicked? Or is my time better served looking for a new tool to use?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 30 Jun 2023, 06:11 AM

Hi Nate,

The ListPicker is designed in such way, so when OK button is pressed/clicked the selected item changes. This is by design and control implementation. I cannot suggest an alternative approach. You have to execute the AcceptCommand in order to confirm the selection for the picker. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ListPicker Popup
Asked by
Nate
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or