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

GridDropDownColumn Binding Issue with 2010 Q2

2 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 2
Jeff asked on 02 Aug 2010, 07:01 PM
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

2 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 03 Aug 2010, 02:33 PM
Hello Jeff,

Indeed, this problem exists with the Q2 release. However our developers already addressed it and you can try the latest internal build and let us know if you find any problems with it.

Regards,
Pavel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jeff
Top achievements
Rank 2
answered on 03 Aug 2010, 02:44 PM
Absolutely perfect.
Thank you very much!
Jeff
Tags
Grid
Asked by
Jeff
Top achievements
Rank 2
Answers by
Pavel
Telerik team
Jeff
Top achievements
Rank 2
Share this question
or