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

when grid defined visible="false" the JS not Works

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dvori
Top achievements
Rank 1
dvori asked on 21 Aug 2011, 08:30 AM
I have a dynamic grid, in aspx page it's Defined visible="false", when I Defined him to visible=true in code, do not know the JavaScript functions defined page. The solution?

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 23 Aug 2011, 04:24 PM
Hi Dvori,

In order to access the grid using JavaScript in the browser the Grid should be rendered. However setting the Visible property to false will cause the grid not to be rendered on the page. This will break your JavaScript if you try to access the grid.

Make sure that you do not access the grid in your JavaScript functions and you will not get errors when it is not visible.

All the best,
Vasil
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
dvori
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or