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
440
Strange behaviour
posted

Hi,

I have boolean column in grid. I show image in cells with value = true. And I show empty cells if cells have values = false.

protected void Grid_InitializeLayout(object sender, InitializeLayoutEventArgs e)
{

[skip]

CheckEditor checkEditor = (CheckEditor) gridColumn.Editor;
checkEditor.CheckedAppearance.Image = _image;
checkEditor.Style = EditCheckStyle.Custom;

}

I use filter-row in grid.

Scenario:

1. Click on filter-row in this cell. Grid will be filtered. - It is ok.

2. Click  on other row on cell in this column. Cell in filter-row will be changed and grid will be refiltered. - It is strange and incorrect.

3. Click  on other row on cell in this column. Cell in filter-row will be changed again and grid will be refiltered again. - It is strange and incorrect.

 

If I use EditCheckStyle.Button or EditCheckStyle.Check grid works correct.

It reproduced in Infra 10.1 and 10.3. (I didn't test 10.2).

How I can fix it?

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I'm not sure I am following you.

    Changing the checkbox images in the grid will never have any effect on the behavior of the filtering. Are you saying that the problem you are experiencing does not occur if you remove the images?

    Also, changing the value of a grid cell will never automatically re-filter that row. If that's happening, then something in your code must be refreshing the filtering explicitly.

    The same thing applies to changing a value in a cell affecting the Filter Row. The cell values do not affect the filtering. If that's happening, it must be something in your code doing that.

Children