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

HeaderContextMenu not shown

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mabs
Top achievements
Rank 1
mabs asked on 22 Sep 2010, 12:20 PM
I have created a userControl which holds the grid.  On page load a dropDownList is shown along with a button.  Upon selecting an item and clicking search the grid will then display the data.  The problem I am having is on page load the grid visible is set to false.  Upon the search button being clicked the visibility is then set to true.  The grid displays correctly, however the headerContextMenu does not display.  However if I do not hide the grid on page load, i.e. it is visible before a user clicks search, then the HeaderContextMenu will then work.

Any help with this would be much appreciated, I can create a work around by hiding the grid via css, however I would like to avoid this.

1 Answer, 1 is accepted

Sort by
0
mabs
Top achievements
Rank 1
answered on 22 Sep 2010, 12:27 PM
ok, fixed this, set the visible property in NeedDataSource for the userControl created.
Tags
Grid
Asked by
mabs
Top achievements
Rank 1
Answers by
mabs
Top achievements
Rank 1
Share this question
or