Welcome Guest Search | Active Topics | Sign In | Register

Grid and visible Options
UweD
Posted: Tuesday, May 12, 2009 7:57:23 AM
Rank: Advanced Member
Groups: Member

Joined: 8/11/2008
Posts: 37
I have a grid with visible=false. On button click I set it to 'true'. The grid is shown but only the border and the footer. What can I do to show the content?
If I set visible=true on start the grid is shown normally.

Uwe
eo_support
Posted: Tuesday, May 12, 2009 10:30:40 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Try to populate the Grid when you set its Visible to true, not when the page is loaded. I believe the Grid discards everything when it is set to invisible.

Another workaround is to enclose the Grid inside a DIV, then set that DIV' style to "display:none" when you wish to hide the Grid.

Thanks!
UweD
Posted: Tuesday, May 12, 2009 11:28:44 AM
Rank: Advanced Member
Groups: Member

Joined: 8/11/2008
Posts: 37
How should I populate the Grid?
On Button_Click I set the Grid.Visible=true; set the DataSource and DataBind().
Something else to do?
eo_support
Posted: Tuesday, May 12, 2009 11:31:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. That's it.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.