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

[Solved] radcombo in gridcell, how to load grid?

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve Napurano
Top achievements
Rank 1
Steve Napurano asked on 21 Nov 2009, 06:17 AM
I have a radcombo in a grid cell. When the user clicks a gridbutton column, i evaluate the value in the drop down in the ItemCommand event. My initial problem was that the radcombo was losing its value before the ItenCommand event.fired causing the radcombo to lose the value selected by the user. i was told to remove the code that loads the grid from the page_load event.

My issue now is, how do I repopulate the grid without affecting the value in the drop down. I cant reload the grid in the page_load because that fires prior to the itemcommand. Paging is not working in the grid and I also have to radcombo boxes outside the grid that filer the grid content when a command button is pressed.

Please assist.

thanks

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 26 Nov 2009, 08:49 AM
Hello Steve,

Have you considered using NeedDataSource binding for your grid? Thus the grid will be automatically rebound on operations like sorting, paging, editing, etc. and you should be able to extract the data from the controls in it successfully.

You may also be interested in examining the sample projects from this KB article on our site:
http://www.telerik.com/support/kb/aspnet-ajax/grid/using-radcombobox-as-editor-in-template-column-of-radgrid.aspx

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Steve Napurano
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or