Completed
Last Updated: 26 Apr 2017 11:59 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 30 Jan 2017 06:24
Category: GridView
Type: Bug Report
1
FIX. RadGridView - incorrect format for the filter cell when ViewCellFormatting is used
Please refer to the attached sample project and gif file illustrating the problem.

Workaround:
Sub New() 
    InitializeComponent()
    AddHandler Me.RadGridView1.CreateCell, AddressOf RadGridView_CreateCell
End Sub

Public Class CustomGridFilterCellElement
Inherits GridFilterCellElement
    
    Protected Overrides ReadOnly Property ThemeEffectiveType() As Type
        Get
            Return GetType(GridFilterCellElement)
        End Get
    End Property
    Public Sub New(column As GridViewDataColumn, row As GridRowElement)
        MyBase.New(column, row)
    End Sub

    Protected Overrides Function ApplyFormatString(value As Object) As String
        Return CDate(value).ToString("dd.MM.yyyy")
    End Function
End Class
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments