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

GridDropDownColumn - how to enable and show the drop down all the time

5 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 08 Sep 2008, 04:01 PM

Hi..
I'm using a  GridDropDownColumn  but it only appears when the grid is in edit mode using the built in EDIT.

How do I display and enable it all the time?
thanks!

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Sep 2008, 05:00 AM
Hi Jon,

You can use GridtemplateColumn instead where you can place desired control in ItemTemplate.

All the best,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Shinu
Top achievements
Rank 2
answered on 09 Sep 2008, 05:11 AM
Hi Jon,

You can use GridTemplateColumn for achieving the desired scenario.

ASPX:
<telerik:GridTemplateColumn UniqueName="TempCol" HeaderText="TempCol"
                       <ItemTemplate> 
                           <asp:DropDownList ID="DropDownList1" runat="server"
                           </asp:DropDownList> 
                       </ItemTemplate> 
                       <EditItemTemplate> 
                           <asp:DropDownList ID="DropDownList2" runat="server"
                           </asp:DropDownList> 
                       </EditItemTemplate> 
                     </telerik:GridTemplateColumn> 


Go through the following help article to get more details about the column types in RadGrid.
Column types

Thanks
Shinu.
0
Jon
Top achievements
Rank 1
answered on 09 Sep 2008, 01:55 PM
How do I use the GridDropDownColumn as Templete col?

<telerik:GridDropDownColumn

DropDownControlType="RadComboBox"

UniqueName = "colAction"

ListTextField="Action"

ListValueField ="Action"

ListDataMember = ""

DataSourceID = "SqlDataSourceAction"

HeaderText="Action to Take" DataField="Action" >

<HeaderStyle Width="120px" HorizontalAlign="Center" />

<ItemStyle Width="120px" />

</telerik:GridDropDownColumn>

0
Sebastian
Telerik team
answered on 09 Sep 2008, 02:00 PM
Hello Jon,

This is not possible, however you can replace that column with template column with MS DropDownList inside its ItemTemplate. Review the example from the KB article linked below for more details:

http://www.telerik.com/support/kb/article/b454K-gmk-b454T-cbb-b454c-cbb.aspx

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon
Top achievements
Rank 1
answered on 09 Sep 2008, 02:08 PM
Hi
So how do you use the RadCombox in a Rad Grid...
You have to be in EDIT mode for it to show up?????

thanks
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Shinu
Top achievements
Rank 2
Jon
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or