I need to take action when a checkbox is checked. I'm not using the native "edit mode" of the grid. I'll take action and update the underlying data myself the instant the checkbox is toggled.
Is there an event? "PropertyChanged" doesn't seem to be the ticket.
It sounds exactly what I need, Joe... but I can't find them! Below is the xaml showing my field layout:
<igDP:Field Name="MyCheckBox" Label="Ignore" > <igDP:Field.Settings> <igDP:FieldSettings EditAsType="{x:Type sys:Boolean}" AllowEdit="True" EditorType="{x:Type igEditors:XamCheckEditor}" /> </igDP:Field.Settings></igDP:Field>
I must be especially thick. I find no such event. At this point I assume I'm trying to sink this in the wrong place. I find PropertyChanged, which is fired when a property of the field settings changes. I suspect I'm supposed to somehow get to the inner editor to sink it?
What I'm doing is not a typical display, edit, save interface. I'm displaying data that needs to be transacted upon. For each row, I have three buttons at the front, each labeled with a valid action. In fact, they're dynamically labeled, because the actions change depending on previous actions. The final "action" I need is a checkbox that says "Ignore This Record". When the user checks it, the record will be transacted upon; it will be removed from the grid, the underlying object's property will be set and from that point-forward, whenever that record is displayed (in a processed grid) a checkbox will also show. Since the user never edits any other data, it makes no sense to have them edit this one checkbox and then be forced to navigate off the row to cause it to be committed. As usual, I'm looking for instant gratification. :)
I spent quite a bit time on this, and I'm still stuck. I thought maybe I could programmatically drill down to the editor, cast it as a checkbox and then hook into it's events, but I can't figure that out.
Infragistics.Windows.Editors.XamCheckEditor chk = (Infragistics.Windows.Editors.XamCheckEditor)MyXamGrid.FieldLayouts["MyLayout"].Fields["MyField"].Settings..... ?
Hi,
Is there a way to achieve the same results from codebehind, without relying on XAML?
In my case the xamDataGrid is created run-time.
(My goal would be very similar to what is described here: if the user checks a checkbox from the grid a new dialog should pop up and asks for further instructions.)
Thanks,
Attila
And can you believe this... I just stumbled across a method to string converters together that Josh Smith published and on his blog is a discussion about routed commands that he just did 10 days ago.
http://joshsmithonwpf.wordpress.com/
THANKS!!!!!!!!!!!
It works perfectly and I could not have been more off-base!
I'm so appreciative of your assistance that I am hesitant to even ask, but I'm compelled. Can you provide any insight/tidbits/links/suggestions/whatever so that I can read up on this solution, because it is unfamiliar to me. Clearly, I have a lot to learn.
Thank you again, joe!