Hi,
I have created one dynamic IGCombo with checkboxes.I have binded it with JSON.
Now on some conditions I want to disable checkboxes for one of the items from that IGCombo.
Can you tell me how to achieve this.
Thanks in advance.
Hello Gloria,I have created a case with an id CAS-141488-H7X6K6 in our system and I will update you through it.You can find your active cases under Account - Support Activity on our website.
Let me know if I may be of further assistance.
Hello Gloria,Can you clarify when and how the conditions should be applied? Should the both condition be applied on one combo or each condition corresponds for different combo?
Thank you in advance!
Hi Denis,
Thanks for your answer but it did not helped.
I will explain you what we have to do using IGcombo.
Condition 1: I have one combo box with json
1) A
2) B
3) C disable
4) D disable
5) E
When combo box is open at that time I want C and D values are disable
Condition 2: I have two combo box with same database json
1) Combo first
1) A selected
3) C selected
4) D
2) Combo second
1) A Disable
3) C Enable
When I select any record from 1st combo box we have to disable same record from 2nd combo box.
Hope for your reply.
Thanks
Hello Gloria,
Have you been able to resolve the issue?If you have any concerns or questions, please feel free to contact me, I will be glad to help you.Thank you for choosing Infragistics components!
Hello,Thank you for contacting Infragistics Developer Support.If I understand correctly you want if some item is selected others to not be, please let me know if I am wrong. To do so you can use the selectionChanging event. If you return false the selection will be cancelled. In the ui variable you can select all candidate selection items with ui.items. Then check if there are any selected items and they are not from the restricted list.
$combo.igCombo({ dataSource: colors, textKey: "Name", multiSelection: "onWithCheckboxes", valueKey: "Name", width: "200px", autoComplete: true, selectionChanging: function (evt, ui) { if (ui.items && selectedItemsContain(ui.items, ['Red', 'Brown'])) { return false; } } });
I have attached a with the implementation of the selectedItemsContain. If you have any additional questions please let me know.