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

[Solved] radcombobox doesn't appear

3 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 11 Jan 2010, 10:52 PM
I am a little new at working with the Telerik controls but I am trying to work with a radcombobox inside a radgrid however I can't get it to  display when I run the application.  Below is what I have thus far.  I would appreciate any help on what the problem might be.  I am using ASP.NET 3.5, Windows XP Pro SP3, IE7 (although most will probably be on IE8 by the end of the year), RadControls for ASP.NET AJAX 2008.2723, preferred programming language is VB.NET. 

<telerik:GridDropDownColumn HeaderText="Copy Position To Grant" UniqueName="ComboboxGrantList" Display="true" DropDownControlType="RadComboBox" HeaderStyle-Width="125" AllowSorting="true" Visible="true"  
                        DataSourceID="SqlDatasourceComboboxGrantTrackingNumber" ListTextField="GrantTrackingNumber" ListValueField="GrantID" ListDataMember="GrantID"></telerik:GridDropDownColumn> 

Thanks,
Alex


3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Jan 2010, 05:56 AM
Hi,

The ListDataMember property points to the AccessLevel table (part of the dataset used for grid data-source) which is the source for the GridDropDownColumn generation. Remove the ListDataMember property and try the following markup and see whether it is populated correctly from data source control.

ASPX:
 
<telerik:GridDropDownColumn HeaderText="Copy Position To Grant" UniqueName="ComboboxGrantList" 
        Display="true" DropDownControlType="RadComboBox" HeaderStyle-Width="125" AllowSorting="true" 
        Visible="true" DataField="GrantID" ListTextField="GrantTrackingNumber" DataSourceID="SqlDatasourceComboboxGrantTrackingNumber" 
        ListValueField="GrantID"
</telerik:GridDropDownColumn> 

Also checkout the following documentation:
Customize/Configure GridDropDownColumn

-Shinu.
0
Alex
Top achievements
Rank 1
answered on 12 Jan 2010, 04:25 PM
Thanks for the response.  Unfortunately that did not resolve the issue.  I still have nothing but blank space where there should be a combobox.  The HeaderText displays but no combobox on the row.  I had previously looked at the documentation reference you sent me but looked over it again.  I still didn't see anything that would explain the radcombobox not being visible.  I may have to go a different direction to reach my end goal.  Thanks for your help anyway.

Alex
0
Radoslav
Telerik team
answered on 15 Jan 2010, 08:39 AM
Hello Alex,

If you bind GridDropDownColumn to empty data, then it will have the described behavior. It will show only column header and empty data in all columns cells. I suppose that the GridDropDownColumn is not bound properly and the datasource does not return any data.
I am sending you a simple example that demonstrate how to add GridDropDownColumn in RadGrid. Please check it out and let me know what differs in your case.
Additionally it will be helpful if you could send us a simple project that could be used for reproducing the problem. You could open a formal support ticket from your Telerik account and attach a ZIP file there. We will check it and do our best to help. 

Best wishes,
Radoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Alex
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or