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

Grid - Filtering a Set of Data and Edit Form

3 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim Leung
Top achievements
Rank 1
Tim Leung asked on 13 Sep 2010, 06:27 PM
Hi All,

I am using the Grid and everything works except when the combination of Filtering and Edit is invoked.
Scenario:

I have a grid view where I have filtered a column using the "Contains" field.
With the items in the grid filtered, I click on the edit button which is a "GridEditCommandColumn"

The Edit Popup seems to reference the index of the grid and not the item I have clicked on. Therefore, when clicking the third item of this filtered grid, it results in opening the popup for the third item in the original datasource. Also once clicked on, the grid refreshes and the filters doesn't seem to come into play.

Tim

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 14 Sep 2010, 03:55 PM
Hi Tim,

Could you please elaborate a bit on how is your grid bound?
I suggest that you handle the grid NeedDataSource event for that purpose.

Best wishes,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tim Leung
Top achievements
Rank 1
answered on 27 Sep 2010, 07:21 PM
        protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {  
            RadGrid1.DataSource = GetData();
        }

Same thing happens.

I have a grid with filters. For each item (row), I have an edit button. When the edit button is clicked and an edit window is opened, it is pulling the information based on the Index of the initial databound without taking to effect of the filter.

Tim

0
Iana Tsolova
Telerik team
answered on 28 Sep 2010, 11:22 AM
Hello Tim,

In such case we need to look for the issue elsewhere but the grid data-binding. Therefore I would ask you to share the full page code or open a formal support ticket and send us a runnable sample for further investigation.

Kind regards,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Tim Leung
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Tim Leung
Top achievements
Rank 1
Share this question
or