Hello,
I have been binding the GridDropDownColumn like this:
on the aspx page
<telerik:GridDropDownColumn DataField="FieldId" HeaderText="Field"
UniqueName="Fieldld1" ListTextField="FieldName"
ListValueField="FieldId" >
</telerik:GridDropDownColumn>
in the vb.net code behind
Protected Sub rg_CreateColumnEditor(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCreateColumnEditorEventArgs) Handles rg.CreateColumnEditor
If TypeOf e.ColumnEditor Is GridDropDownColumnEditor Then
Dim dt As DataTable
Select Case e.Column.UniqueName.Trim.ToLower
Case "fieldid1"
dt = SqlHelper.ExecuteDataTable('GET FieldId,FieldName from data" )
End Select
CType(e.ColumnEditor, GridDropDownColumnEditor).DataSource = dt
End If
End Sub
With Q2 the dropdown columns of the grid are blank when viewed (not in edit mode), but the correct item is selected in the dropdown if the row is edited.
It worked (displayed text item from the dropdown) up until I upgraded the to 2010 Q2 and if I paste the 2010 Q1 sp2 dll back into the bin directory it works again. The simple answer is to stay with 2010 Q1 SP2 but I don't like to fall too far behind with versions.
Any help would be greatly appreciated.
Thanks in advance,
Jeff
I have been binding the GridDropDownColumn like this:
on the aspx page
<telerik:GridDropDownColumn DataField="FieldId" HeaderText="Field"
UniqueName="Fieldld1" ListTextField="FieldName"
ListValueField="FieldId" >
</telerik:GridDropDownColumn>
in the vb.net code behind
Protected Sub rg_CreateColumnEditor(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCreateColumnEditorEventArgs) Handles rg.CreateColumnEditor
If TypeOf e.ColumnEditor Is GridDropDownColumnEditor Then
Dim dt As DataTable
Select Case e.Column.UniqueName.Trim.ToLower
Case "fieldid1"
dt = SqlHelper.ExecuteDataTable('GET FieldId,FieldName from data" )
End Select
CType(e.ColumnEditor, GridDropDownColumnEditor).DataSource = dt
End If
End Sub
With Q2 the dropdown columns of the grid are blank when viewed (not in edit mode), but the correct item is selected in the dropdown if the row is edited.
It worked (displayed text item from the dropdown) up until I upgraded the to 2010 Q2 and if I paste the 2010 Q1 sp2 dll back into the bin directory it works again. The simple answer is to stay with 2010 Q1 SP2 but I don't like to fall too far behind with versions.
Any help would be greatly appreciated.
Thanks in advance,
Jeff