This is a migrated thread and some comments may be shown as answers.

Help with Checkbox

1 Answer 61 Views
This is a migrated thread and some comments may be shown as answers.
Rudi Antonio
Top achievements
Rank 1
Rudi Antonio asked on 29 Aug 2016, 03:13 PM

I have the following checkbox:


               <CheckBox  x:Name="chck_tipoR" IsChecked="{Binding Liquidar, Mode=TwoWay}"   Click="chck_tipoR_Click"/>


the "Liquidar" variable is my base data type bool that makes the checkbox to appear selected or not, I want to make the checkbox that will click and not checked activate depending on a condition, the condition is that by giving click the checkbox a login screen where the user and password introduce me appears and when it has been satisfying my checkbox is activated.

I'm ultizando the click event for this action but in the method click the checbox in code behind not like having only the checkbox that I clicked activated, not as referrers the checkbox that I clicked and this is activated .

Please can support me with this

here is my metod:

private void chck_tipoR_Click(object sender, RoutedEventArgs e)
            DialogoConfirmacionCobrar midialog = new DialogoConfirmacionCobrar();


1 Answer, 1 is accepted

Sort by
Dilyan Traykov
Telerik team
answered on 01 Sep 2016, 10:22 AM

I'm attaching a sample project to demonstrate how such behavior can be achieved. I've used a simple confirm dialog window, but you're free to implement any logic you desire in the custom command.

Please have a look and let me know whether such an approach would be suitable for you.

Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Asked by
Rudi Antonio
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question