Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
MultiColumnCombo enabling/disabling the whole row
posted

I have below code and I want to disable the rows that has IsActive = false.

They shall not be able to click on the disabled records and the combo should not collapsed and select those records.

They only should be able to select the records that are active.

<widgets:MultiColumnDropdownList Name="comboCd"

                                                          Margin="0,0,20,5"

                                                         ComboWidth="250"                                                             

                                                          DisplayMemberPath="Code"

                                                          DropDownPopupWidth="450"

                                                          FieldItemsSource="{Binding CodeList}"

                                                          FieldLabel="Codes "

                                                          FieldSelectedItem="{BindingSelectedCodeRecord,

                                                                                         Mode=OneWayToSource,

                                                                                         UpdateSourceTrigger=LostFocus}"                                                       

                                                          LabelAlignment="Left"

                                                         LabelPosition="Horizontal"                                                     

                                                          LabelWidth="95"> 

                    <widgets:MultiColumnDropdownList.Columns>                       

                        <ig:TextComboColumnKey="Code"  HeaderText=" Code " />                          

                        <ig:TextComboColumn Key="Description"  HeaderText=" Description " />                                    

                        <ig:TextComboColumn Key="IsActive" Width="0" Visibility="Hidden"/>

                    </widgets:MultiColumnDropdownList.Columns>

                </widgets:MultiColumnDropdownList>