We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

only one column with different checkbox look ?

Thread ID:

Created:

Updated:

Platform:

Replies:

116177 Apr 20,2014 02:22 PM Apr 28,2014 10:43 AM WPF 3
loading
Tags: GridDataControl
fff
Asked On April 20, 2014 02:22 PM

Hi SF,

I have a GDC with various columns and several of them are of bool type, showing as checkboxes.
All that fine, but I would like only one column of  these bool type to look like a checked / unckecked

star, like this:

The other columns should remain with unchanged standard checkbox look.

How can I do that ? code example possible ?

Thanks,

Fabrice


Saravanan C [Syncfusion]
Replied On April 23, 2014 09:07 AM

Hi Fabrice,

 

We have analyzed your query and you can achieve your requirement by using DataTemplate cell type for particular column that you want to show checked/unchecked stars based on bool property type. Please find the code snippet and sample in the following location,

 

Code Snippet[XAML]:

<syncfusion:GridDataVisibleColumn MappingName="Check">                                         

    <syncfusion:GridDataVisibleColumn.CellItemTemplate>

        <DataTemplate>

            <Grid>

                <Image Name="image11" Source="Images\rating.png"/>

                <Image Name="image22" Source="Images\rating1.jpg"/>

            </Grid>

            <DataTemplate.Triggers>

                <DataTrigger Binding="{Binding Path=Record.Data.Check}" Value="False">

                    <Setter TargetName="image11"  Property="Visibility" Value="Hidden"/>

                    <Setter TargetName="image22"  Property="Visibility" Value="Visible"/>

                </DataTrigger>

                <DataTrigger Binding="{Binding Path=Record.Data.Check}" Value="True">

                    <Setter TargetName="image11" Property="Visibility" Value="Visible"/>

                    <Setter TargetName="image22"  Property="Visibility" Value="Hidden"/>

                </DataTrigger>

            </DataTemplate.Triggers>

        </DataTemplate>

    </syncfusion:GridDataVisibleColumn.CellItemTemplate>

</syncfusion:GridDataVisibleColumn>

 

Sample: http://www.syncfusion.com/downloads/support/directtrac/123982/DataTriggerBinding-223488503.zip

 

Please let us know if you have any queries.

 

Regards,

Saravanan C


fff
Replied On April 25, 2014 02:00 AM

Thanks Saravanan
It works perfectly !
Fabrice

Saravanan C [Syncfusion]
Replied On April 28, 2014 10:43 AM

Hi Fabrice,

Thanks for your replay.

Please let us know if you need further assistance.

Regards,

Saravanan C


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;