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

Wrong GridItem selected, when filtering is used

4 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Veli-Pekka
Top achievements
Rank 1
Veli-Pekka asked on 29 Dec 2011, 01:16 PM
Hi,

I have a problem selecting a correct item, when filtering is used for the column. I have implemented similar project as described here:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultvb.aspx

My project uses the example code almost as is, except I have enabled filtering for the columns. When filtering is used and I try to move item from first grid to the other, a wrong item is moved. Also the filtering is lost in RowDrop event. It seems that NeedDataSource event takes place before the RowDrop event and automatically binds a non-filtered datasource to the grid. The RowDrop event then searches the item moved and wrong item is identified and moved.

I have two questions. How to avoid losing filtering in rowdrop event and how to fix the problem that causes wrong item to be selected from the source grid?

Thanks,
Veli-Pekka

4 Answers, 1 is accepted

Sort by
0
Veli-Pekka
Top achievements
Rank 1
answered on 30 Dec 2011, 07:41 AM
Hi,

I would appreciate if someone could point me to right direction? I've been working with this for some time now...
0
Veli-Pekka
Top achievements
Rank 1
answered on 30 Dec 2011, 02:17 PM
HI Telerik team,

I hope you could help me with this issue. The problem is propably related to the fact that filtering causes a postback in my case. I have set the AutoPostBackOnFilter property for the column to false, but I still get postback, whenever I write something to the filter textbox and select "Contains". So first thing to solve the problem would be to find a reason why my grid creates a postback when filtered?

BR,
Veli-Pekka
0
Andrey
Telerik team
answered on 30 Dec 2011, 05:02 PM
Hi,

I have made a sample project to test your scenario, could you try to reproduce the erroneous behavior with this project and to provide the exact steps need to do so.

Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Veli-Pekka
Top achievements
Rank 1
answered on 03 Jan 2012, 10:19 AM
We have found the problem and fixed it. A base page that injects logic for all pages caused the problem.
Tags
Grid
Asked by
Veli-Pekka
Top achievements
Rank 1
Answers by
Veli-Pekka
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or