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

Bind in DropDownList

2 Answers 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrés Salinas
Top achievements
Rank 1
Andrés Salinas asked on 17 Mar 2010, 04:00 PM
Hi,

I'm trying to do something similar to this example: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx

But I can't find the property SelectedValue in the dropdownlist to bind it with the value, like this:

<asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='<%# Bind("TitleOfCourtesy") %> 
There is another way to do this?

Regards,


2 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 19 Mar 2010, 12:31 PM
Hi Andrés,

DropDownList's SelectedValue is marked as non browsable, thus it will not appear in intellisense, however it is a valid property and can be used with databinding expression.

Kind regards,
Rosen
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
Andrés Salinas
Top achievements
Rank 1
answered on 24 Mar 2010, 04:16 PM
Hi,

Thanks for the answer! It worked great. :)
Tags
Grid
Asked by
Andrés Salinas
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Andrés Salinas
Top achievements
Rank 1
Share this question
or