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

Show DropDownList for the editing row only

3 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
d-cpt
Top achievements
Rank 2
d-cpt asked on 01 Dec 2008, 04:58 PM

I have a grid which has AllowAutomaticUpdates=true. The grid have a telerik:GridDropDownColumn for edit record and a GridBoundColumn to show data. When click Edit, the GridBoundColumn is hidden and the GridDropDownColumn is shown. I like to hide the dropdownlist on the rows that are not in edit. May you give me some hints.
Thanks in advance.

Regards,
d-cpt

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 02 Dec 2008, 04:53 AM
Hello d-cpt,

A GridDropDownColumn behaves just as a GridBoundColumn when the grid is in normal mode and the dropdowncolumn renders a dropdownlist for that particular row of the grid which is edit mode. So, you need not use GridBoundColumn and hide it while the grid is in editmode to dispaly the dropdownlist. Check out the following help link where more information on GridDropDownColumns, is available.
Column types

Thanks
Princy.
0
d-cpt
Top achievements
Rank 2
answered on 02 Dec 2008, 02:12 PM
Thanks, Princy.
I get it works as you mentioned. Is there anyway to hide the dropdownlist if a row has no data?

Regards,
d-cpt

0
d-cpt
Top achievements
Rank 2
answered on 02 Dec 2008, 02:24 PM

I get it by set values to these properties of the GridDropDownColumn 

 

 

 

EmptyListItemText="" EnableEmptyListItem=true
to display no value

Thank you.

d-cpt

 

 

Tags
Grid
Asked by
d-cpt
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
d-cpt
Top achievements
Rank 2
Share this question
or