GlobalIndexer: Setup oncontrolchanged handler before default value
This commit is contained in:
parent
581b8d4f1f
commit
ec8c0c7cd9
@ -187,6 +187,10 @@ Public Class ControlCreator
|
||||
oControl.Properties.PreventDuplicates = pPreventDuplicateValues
|
||||
oControl.Properties.AppearanceFocused.BackColor = HightlightColor
|
||||
|
||||
' Add Handler before assigning Default Value so
|
||||
' OnControlChanged will fire for default values as well
|
||||
AddHandler oControl.Properties.SelectedValuesChanged, Sub() OnControlChanged.Invoke(oControl)
|
||||
|
||||
If Not String.IsNullOrEmpty(pDefaultValue) Then
|
||||
Dim oDefaultValues As New List(Of String)
|
||||
|
||||
@ -204,8 +208,6 @@ Public Class ControlCreator
|
||||
oControl.Properties.SelectedValues = oDefaultValues
|
||||
End If
|
||||
|
||||
AddHandler oControl.Properties.SelectedValuesChanged, Sub() OnControlChanged.Invoke(oControl)
|
||||
|
||||
If OnLookupData Is Nothing Then
|
||||
Logger.Warn("LookupGrid Datasource could not be set, OnLookupData Function is not defined!")
|
||||
End If
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user