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

Radgrid filter menu doesn't pop up

1 Answer 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simone
Top achievements
Rank 1
Simone asked on 15 Nov 2011, 03:06 PM
Weird behavior that just started happening after I made some code changes.

I have a tabstrip with 2 tabs and a grid inside each tab, and when I click on the filter button, the dropdown menu doesn't pop up. If I click on the other tabstrip, it reloads the other grid, and then it starts working fine if I click back on the tab  to reload it again. I am trying to figure out what is causing this, and I will let everyone know if I find out. Just wanted to know if you have any ideas what's causing this.

1 Answer, 1 is accepted

Sort by
0
Simone
Top achievements
Rank 1
answered on 15 Nov 2011, 06:02 PM
Figured out.

I was adding the column dynamically, and it turns out that it doesn't like when I am use the same column reference for both grids. Still don't understand why it was working before since that part of the code didn't change. Weird.

                GridBoundColumn nameCol = new GridBoundColumn();
                nameCol.DataField = "Prospect";
                nameCol.UniqueName = "Prospect";
                nameCol.HeaderText = "Prospect";
                nameCol.FilterControlWidth = 200;
                nameCol.ReadOnly = true;
                grdProspects.MasterTableView.Columns.Add(nameCol);
                //grdMaint.MasterTableView.Columns.Add(nameCol);     ==>> commented out, menu showed up.

Tags
Grid
Asked by
Simone
Top achievements
Rank 1
Answers by
Simone
Top achievements
Rank 1
Share this question
or