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

how to bind telerik grid dynamically on click of button

2 Answers 25 Views
GridView
This is a migrated thread and some comments may be shown as answers.
varsha Motwani
Top achievements
Rank 1
varsha Motwani asked on 17 May 2010, 01:41 PM
Hi,
I have to bind a gird on click of a button.I have set the datamemberbinding for columns at design time.
So on click of button i am getting data from db and setting itemsource property to the list...
Still I cant see any records in Grid.

2 Answers, 1 is accepted

Sort by
0
varsha Motwani
Top achievements
Rank 1
answered on 17 May 2010, 02:00 PM
I got this resolved..Height of the row was so records were not getting displayed
0
Yavor Georgiev
Telerik team
answered on 17 May 2010, 02:06 PM
Hi varsha Motwani,

 When you set the ItemsSource property in your button click event handler, call RadGridView.Rebind(), too.

Sincerely yours,
Yavor Georgiev
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
GridView
Asked by
varsha Motwani
Top achievements
Rank 1
Answers by
varsha Motwani
Top achievements
Rank 1
Yavor Georgiev
Telerik team
Share this question
or