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

GridCreated Event not fired when grid is inside tab container

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erwin Floresca
Top achievements
Rank 1
Erwin Floresca asked on 13 Aug 2010, 06:36 PM
Hi,

I am using the asp.net ajax tab container. Inside each tab, I have a radgrid included. The radgrid has a "GridCreated" event attached in the clientsettings section. I am using this event to adjust the height and width dynamically. But somehow, the grid is not calling that event. Any suggestions?

Thanks,
sridhar.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 17 Aug 2010, 09:21 AM
Hi Erwin,

If RadGrid is in tab that is not initially visible and your non-visible tabs are not rendered at all (meaning you have to postback to load them), then RadGrid is also not initialized and databound. In this case, its client object does not exist. If all your tabs are rendered, RadGrid initializes even if it is not in a visible tab and its client-side GridCreated event is fired OK. Attaching a test page to demonstrate this.

All the best,
Veli
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
Erwin Floresca
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or