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
818
xamGrid behavior changes between 11.1 and 12.1?
posted

We have recently upgraded from v11.1 to v12.1 and SL4 to SL5. After performing this upgrade, we encountered some severe breaking issues with TemplateColumns that are likely to force us to rollback, but wanted to check to see if these are known issues or if there are workaround before we rollback.

The first issue that we have is that in 11.1, we did not have to specify an EditorTemplate; it appears that the grid picked up the EditorTemplate from the ItemTemplate.

The second issue is that we have implemented a checkbox column in order to address the issue where the user has to click twice in order to check the checkbox, but some change between 11 and 12 seems to have broken this functionality. This is a huge productivity issue for our users and is critical to the adoption and use of our application.

There are other issues, but I think once these are addressed, the others will fall into line.

Here is the definition of the template column that we are trying to use:

<ig:TemplateColumn Key="IsSelected" HeaderText=" " HorizontalContentAlignment="Center" HeaderTextHorizontalAlignment="Center" IsFilterable="False" Width="24" IsSortable="False">
    <!-- This is needed to prevent the checkbox from showing in the filter row -->
    <ig:TemplateColumn.FilterItemTemplate>
        <DataTemplate>
            <TextBlock />
        </DataTemplate>
    </ig:TemplateColumn.FilterItemTemplate>
    <!-- Remove the padding from the cell contents so that the checkbox is fully displayed -->
    <ig:TemplateColumn.CellStyle>
        <Style TargetType="ig:CellControl">
            <Setter Property="Padding" Value="0"/>
        </Style>
    </ig:TemplateColumn.CellStyle>
    <ig:TemplateColumn.ItemTemplate>
        <DataTemplate>
            <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
        </DataTemplate>
    </ig:TemplateColumn.ItemTemplate>
    <!-- Add a handler to check and uncheck all rows when the checkbox in the header is changed -->
    <ig:TemplateColumn.HeaderTemplate>
        <DataTemplate>
            <CheckBox Checked="HeaderCheckBox_Checked" Unchecked="HeaderCheckBox_Unchecked" />
        </DataTemplate>
    </ig:TemplateColumn.HeaderTemplate>
</ig:TemplateColumn>

Parents
No Data
Reply
  • 5
    posted

    What if it is Hyper Link Instead of  Check Box...I need to Add filter for that Hyperlink...


     <ig:TemplateColumn Key="ItemNumber" Width="100">
                            <ig:TemplateColumn.HeaderTemplate>
                                <DataTemplate>
                                    <TextBlock Text="Project No" FontWeight="Bold"/>
                                </DataTemplate>
                            </ig:TemplateColumn.HeaderTemplate>
                            <ig:TemplateColumn.FilterItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding ItemNumber}" />
                                </DataTemplate>
                            </ig:TemplateColumn.FilterItemTemplate>
                            <ig:TemplateColumn.EditorTemplate>
                                <DataTemplate>
                                    <TextBox x:Name="xMyname" Background="#FFFFE17F"
                             Foreground="OrangeRed"
                             Text="{Binding Value, Mode=TwoWay}"/>
                                </DataTemplate>
                            </ig:TemplateColumn.EditorTemplate>
                            <ig:TemplateColumn.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding ItemNumber}" Cursor="Hand" TextDecorations="Underline" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown" >
                                    </TextBlock>
                                </DataTemplate>
                            </ig:TemplateColumn.ItemTemplate>
                        </ig:TemplateColumn >

    Filter is not working instantly....After Enter Text in Text Box and Pressing Enter Instantiate   search.

Children
No Data