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

RadGrid - Dropdownlist of Commands

4 Answers 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 08 Jul 2010, 09:54 PM
Hello,

I was looking at using a dropdownlist inside of one of the columns in a radgrid to launch commands from, such as  edit row - View details - Delete - Options...etc

I've successfully added the dropdownlist to my columns and I've been able to find the dropdownlist in my radgrid's ItemCreated event (and while attempting to make it work, the ItemDataBound event) , i've even  been able to attach my dropdownlists .selectedindexchanged event to a method that i have created.  

But no matter what i do it just won't fire the event.  Is there something blocking my event?  Or should this method work and I am just implementing it wrong? 

Thanks,
Steve

4 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 13 Jul 2010, 01:54 PM
Hello Steve,

Please try setting the AutoPostBack property of the DropDownList to true and let me know whether this helps.

All the best,
Mira
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
0
Steve
Top achievements
Rank 1
answered on 13 Jul 2010, 02:16 PM
Hi Mira,

I just checked the DropDownList and it indeed does have AutoPostBack set to true.

Thanks,

Steve
0
Steve
Top achievements
Rank 1
answered on 15 Jul 2010, 04:00 PM
Hi Mira,

Just thought i'd post and let you know that I figured it out.  The code I was  using for the creation of the DropDownList event handler was correct.  My issue was that the RadGrid that contained it was being rebuilt  and it was reseting my DropDownList.  After moving some code around, creating specific functions for populating my grid (as it was being populated in different ways) , as well as making sure my grid wasn't being repopulated on Postback, all is finally well.

Thanks for your assistance,

Steve
0
Mira
Telerik team
answered on 16 Jul 2010, 12:11 PM
Hello Steve,

I am glad to hear that your issue is resolved.

Do not hesitate to write back anytime you need further assistance.

Sincerely yours,
Mira
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
Steve
Top achievements
Rank 1
Answers by
Mira
Telerik team
Steve
Top achievements
Rank 1
Share this question
or