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

RadGridView - disappear rows when i click in a column to sort

0 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hugo cesar
Top achievements
Rank 1
hugo cesar asked on 04 Oct 2012, 03:45 PM

Hi Telerik Team.

I have a problem with the rows using the RadGridView and implicit styles, I'll explain:

I have a RadGridView and when it is loaded and I click over a columns name to sort the rows everything is ok, the problem
arise when I added a rowstyle to highlight rows which contain specific data.

 

<

 

 

telerik:RadGridView.RowStyle>

 

 

 

 

    <Style TargetType="telerik:GridViewRow" BasedOn="{StaticResource GridViewRowStyle}">

 

 

 

 

        <Style.Triggers>

 

 

 

 

            <DataTrigger Binding="{Binding Status}" Value="2">

 

 

 

 

                <Setter Property="Background" Value="Red"/>

 

 

 

 

            </DataTrigger>

 

 

 

 

        </Style.Triggers>

 

 

 

 

    </Style>

 

 

 

 

</telerik:RadGridView.RowStyle>

After add those lines when I click over the column name to sort, the rows disappear.

Please any help is really helpful. Thanks.

 

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
hugo cesar
Top achievements
Rank 1
Share this question
or