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

[Solved] Grid with databound dropdown column

1 Answer 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 21 May 2008, 01:53 PM
Hi all,

Hopefully the last problem I run into for a bit.  I have a grid with several databound columns, one of which is a drop down.  I'm also using paging using the 'NeedDataSource' method to retrieve only the necessary number of rows.  I also have am making everything editable by default which requires looping through the items and rebinding apparently (at least that's how I got it to work on all pages by doing this in the DataBound event).

Anyways on to the problem.  On the initial page load everything loads properly.  Everything is editable, the pager displayers properly and the drop list is properly bound and linked to the main grid data (the proper item is selected).

When I change page however the drop down lists become unpopulated except for the default value.  The code to bind them is executed just like on the main page so I'm not quite sure what's happening here.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 26 May 2008, 12:40 PM
Hello Mark,

Are you binding your drop downs in Grid ItemDataBound event? This is when the data is loaded from the data source. For each custom control that binds to data, you can fetch the data and bind the control in this event handler.

If the problem persists, please consider opening a regular support ticket and send us a simplified project so that we can reproduce the issues you are facing.

Kind regards,
Veli
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or