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

HTML Tag   Still Appears in GridDropdownColumn

2 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 23 Jan 2012, 04:45 PM
Hi,
I am using a RadGrid that contains 5 columns. The first 3 columns in the grid are a GridBoundColumn, the fourth column is a GridDropDownColumn, and the fifth column is a GridEditCommandColumn. At runtime, when the grid is populated, the fourth column (the GridDropDownColumn) displays   instead of the expected data. If I change the fourth column from a GridDropDownColumn to a GridBoundColumn, the grid displays the proper data. This problem only occurs when I use the GridDropDownColumn. Is there something magical about the Grid*Bound*Column? IOWs, am I having this problem b/c the GridDropDownColumn is not a *bound* column?

I have found and reviewed the "forum log" GridDropdownColumn in RadGrid not working, which indicates that the solution to this problem is to install the latest version of the Telerick Ajax controls, but the version that I have installed (2011.2.712.40) is already higher than what is indicated in the "forum log".

I want to use the GridDropDownColumn so that when a user clicks the grid's edit button (GridEditCommandColumn), I can control which values they are allowed to enter via a dropdown list.

So the grid displays   in the GridDropDownColumn when it is populated. But when I click the edit button on the grid, the GridDropDownColumn then displays valid values, instead of  

Actually, to state what I just said more accurately, valid values only display in the GridDropDownColumn for that row on which I clicked the edit button and for every row that appears below the row that I am editing. But for the rows that appear above the one that I am editing, they still display   in the GridDropDownColumn.

How do I resolve this problem?

2 Answers, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 1
answered on 24 Jan 2012, 03:18 PM

Let me provide a little more detail so that hopefully someone will respond to this post.

If I assign a ListDataMember to my GridDropDownColumn, then I no longer have the issue of the HTML tag   appearing in my RadGrid. But by including ListDataMember, it limits (or filters) the values that appear in the GridDropDownColumn.

To illustrate what I mean, the GridDropDownColumn is based on a DataTable, and the table contains a row for #1, and a row for #2, and a row for #3, ... all the way up to a row for #16. My objective is to always have my GridDropDownColumn show every value in the lookup table (values 1 thru 16).

The RadGrid contains a list of students, where column 1 is the student's last name, and column 2 is a value between 1 and 16. If I apply a filter to the RadGrid so that it only displays students whose last name begins with D, only 3 students appear in the grid; Doe, Davis, and Dolittle. Doe has a value of 2, Davis has a value of 6, and Dolittle has a value of 10. If ListDataMember has been specified and I attempt to edit any one of the 3 students, the GridDropDownColumn only displays values 2, 6, and 10; it has been affected by the RadGrid filter.

Since I want the GridDropDownColumn to always display values 1 - 16, I remove ListDataMember, but that is when my RadGrid begins to display the HTML tag   as described in my initial post.

This is the problem that I am trying to resolve and I am sure that someone else has run into this issue before.

Thanks

0
Antonio Stoilkov
Telerik team
answered on 27 Jan 2012, 01:50 PM
Hello,

The issue is already fixed. You could resolve your issue by downloading later than 2011.2.712.40 version of the controls. In the 2011 Q2 SP1 release notes is stated that the issue is already fixed.
Fixed: RadGrid renders ' ' incorrectly in GridDropDownColumn cells bound to null values 

Regards,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Brian
Top achievements
Rank 1
Answers by
Brian
Top achievements
Rank 1
Antonio Stoilkov
Telerik team
Share this question
or