cancel
Showing results for 
Search instead for 
Did you mean: 

Do we have any event for check box click in multii select dialog box

0 Kudos

Can we have any event for check box press and Unpress in multi select dialog box.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

i have a requirement like i have to restrict number of check list items Checking. Example from other input filed item i am receiving number like "3" so i have make multi select dialog box maximum "3" should be selected in the list. User is not able to select more than 3 and should throw error message .

maheshpalavalli
Active Contributor
0 Kudos

oh..

table select dialog will not put any restrictions and also it doesn't have the the selection change event.

So what you can do is

1. you can use the table select dialog only and on confirm, you can check the selections and put an error message if no of selections exceed 3.

2. else you can use the normal m.table and put it inside a dialog box , now the m.table has selection change event where you can check if it is more than 3.

But it would be better and easier to use table select dialog and on confirm you can put the error logic.

BR,

Mahesh

maheshpalavalli
Active Contributor
0 Kudos

If you are using any of the below controls, it is not possible..

https://ui5.sap.com/#/api/sap.m.SelectDialog

https://ui5.sap.com/#/api/sap.m.TableSelectDialog

If yes and if you can share your requirement, we can check if any other solution is possible..

BR,

Mahesh

developerone
Contributor
0 Kudos

Are you asking about the multi-combo box ? Here are the events for multi-combo box. If you are looking on a specific item, you will have to get the reference of that item and use the events for sap.ui.core.Item