GridDropDownColumn Binding Issue with 2010 Q2

3 posts, 0 answers
  1. Jeff Sager
    Jeff Sager avatar
    26 posts
    Member since:
    Aug 2006

    Posted 02 Aug 2010 Link to this post

    I have been binding the GridDropDownColumn like this:
    on the aspx page
        <telerik:GridDropDownColumn DataField="FieldId" HeaderText="Field"
                                            UniqueName="Fieldld1"  ListTextField="FieldName"
                                            ListValueField="FieldId" >

    in the 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,

  2. Pavel
    Pavel avatar
    904 posts

    Posted 03 Aug 2010 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
  4. Jeff Sager
    Jeff Sager avatar
    26 posts
    Member since:
    Aug 2006

    Posted 03 Aug 2010 Link to this post

    Absolutely perfect.
    Thank you very much!
Back to Top