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

DropDownList in Radgrid Problem

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Omar Gerardo
Top achievements
Rank 1
Omar Gerardo asked on 22 Feb 2013, 05:05 PM
Hello,

I have 2 columns on my radgrid. These columns were created by design, the first column is a checkbox and the second column is a 
Dropdownlist. I have problem with the last column because when a insert (using insert command event ) the item, doesn't appears in the Grid.  The datasource is a DataTable with two columns, first column save the dropdownlist value and the second one save the checkbox value.

    
 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Feb 2013, 08:30 AM
Hi,

I am not sure about the problem you are facing. If you are using asp:DropDownList inside the EditItemTemplate in a GridTemplatecolumn, please make sure that the value need to be shown in the view mode is bound to a label. Please provide the ASPX to replicate the issue. Here is a sample code snippet I have tried with GridDropDownColumn which worked as expected.

ASPX:
<telerik:GridDropDownColumn DropDownControlType="DropDownList"  HeaderText="dropDown" DataField="BigField" DataSourceID="SqlDataSource1" ListTextField="BigField" ListValueField="BigField"></telerik:GridDropDownColumn>

Thanks,
Shinu.
Tags
Grid
Asked by
Omar Gerardo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or