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
215
RecordSelector
posted

 

 

 

 

 

 

 

 

 

 

 

 

 

 

So.. i have the following record selector on my grid.

it looks great.. but how do i determine the records that are actually selected??

i tried "IsSelected", it wasnt that.

so how can i access the checkbox on the record selector?

 

thanks.

 

 

<

 

 

igDataPresenter:XamDataGrid.Resources

>

 

 

 

<!-- This Style puts a CheckBox into the record selectors. -->

 

 

 

<Style TargetType="{x:Type igDataPresenter:RecordSelector}" BasedOn="{x:Null

}">

 

 

 

<Setter Property

="Template">

 

 

 

<Setter.Value

>

 

 

 

<ControlTemplate TargetType="{x:Type igDataPresenter:RecordSelector

}">

 

 

 

<CheckBox

 

 

HorizontalAlignment

="Center"

 

 

VerticalAlignment

="Center"

 

 

IsChecked="{Binding Path=DataItem.IsChecked, Mode

=TwoWay}"

 

 

/>

 

 

 

</ControlTemplate

>

 

 

 

</Setter.Value

>

 

 

 

</Setter

>

 

 

 

</Style

>

  • 69686
    posted

    Hello,

    Make sure that you allow multiple selection of records in the FieldLayoutSettings. You can also see an example with checkbox selectors in the blog post of Josh Smith here

    Alex.