Enable button when checkbox-templated rows of a grid's column are checked

pizzaboy

1) I have a WPF grid (I'm using telerik's but this is not the point)

            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding }" Header="Choice">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <CheckBox IsChecked="{Binding USER_CHECKBOX}"  ></CheckBox>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>

                <telerik:GridViewDataColumn DataMemberBinding="{Binding TYPE}" Header="TYPE"  />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding VENUE}" Header="VENUE"  />

2)The elements of first column of the grid are templated as a checkbox because i want the user to check up to checkboxes(equivalent to selecting new rows)

3)I want the user to choose up to two columns, and i also need to make sure that a field(TYPE) between the two columns is different.

4) When the right columns are checked, i wish to enable a button that allows user to continue

Using Calirburn Micro what is the best approach to achieve that? Should i use a behaviour?

Thx in advance

EDIT

Before giving me -1 please you should be aware that the question page in stackoverflow states that "We prefer questions that can be answered, not just discussed." but it's not forbidden to ask for best approaches as i did. I thank who's answering.

PlTaylor

All the logic should be in your viewmodel. For instance you should bind the 'Enabled' property to your viewmodel and then set that depending on whether your logic has been met.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Enable button in the same row when checkbox checked

Want to enable button when checkbox is checked and also it is enabled

Enable submit button when the input fields are not empty and the checkbox checked

How to enable checkbox when checked?

enabling a button when checkbox is checked?

display button when checkbox is checked

Enabling a button when a checkbox is checked

ag-grid checkbox column checked by renderer

Enable select field when checkbox is checked

How to enable two texFields when a checkbox is checked

Enable/disable dropdowns when checkbox checked/unchecked

Enable a corresponding field when checkbox is checked

How to enable when checkbox is checked correctly?

how to disable and enable textbox when a checkbox is checked

Javascript enable html when input checkbox checked

how to dynamically enable and disable button when checkbox is checked and unchecked in semantic UI

Adding list to data grid when checkbox is checked

enable button if only 1 checkbox is checked..else disable the button

Show/hide rest of the rows when checkbox is checked

Show button when select option and checkbox is checked

How to show a button when a checkbox is checked?

How to enable and disable the button in a checked event of checkbox in jQuery?

How to enable / disable a button based on a checkbox being checked in Angular

If checkbox is checked then enable EditorFor

Enable checkbox if other checkbox is checked

Update a Listview column when checkbox is checked

Display specific Column when checkbox is checked

How to make the radio button of the first row and last column checked when the Kendo UI grid loads

Enable submit button when select checkbox