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

LINQtoSQL GridDropDownColumn showing ;nbsp in GridViewMode

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
justin
Top achievements
Rank 1
justin asked on 27 Jun 2012, 06:27 PM
In editmode it works fine. In regular view mode it shows nbsp;
I think this is something to do with me using LinqtoSQL to populate? Can someone show me how to do this differentl so it works?

Thanks.

Justin Rumpf

<telerik:GridDropDownColumn DataSourceID="ReportNameddlist" ListTextField="ReportName"
    ListValueField="ReportName" UniqueName="ddReportName" SortExpression="ReportName"
    HeaderText="Report Name" DropDownControlType="DropDownList"
        DataField="ReportName">
</telerik:GridDropDownColumn>

editor =
CType(editMan.GetColumnEditor("ddReportName"), GridDropDownListColumnEditor)
Dim ReportNameddList As DropDownList = editor.DropDownListControl
ReportNameddList.DataSource = (From r In DbContext.SubscriptionReportNames Select r.ReportName).ToList()
ReportNameddList.DataBind()

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 02 Jul 2012, 01:55 PM
Hello,

Most probably the problem comes from the fact that you are using declarative and simple databinding for one and the same control.

You should choose either to use the DataSourceID property in the mark-up or to use DataSource property in the code-behind.

Try using only one datasource and check whether the issue still replicates.

Greetings,
Andrey
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
justin
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or