Page History
Changed
Autocomplete'de yapılan seçim içeriği değiştiğinde tetiklenen olay
Code Block | ||||
---|---|---|---|---|
| ||||
private void LDPAutoComplete1_Changed(LDP.Controls.UIContracts.Base.ILDPControl sender) { var deger = LDPAutoComplete1.Value; //autocomplete seçili elemanın id değeri } |
Exit
Autocomplete editorden her çıkışta (focus out) tetiklenen olay
Code Block | ||
---|---|---|
| ||
private void LDPAutoComplete1_Exit(LDP.Controls.UIContracts.Base.ILDPControl sender) { } |
LookupDynamicCriteria
Autocomplete bileşeninde gösterilen rehbere dinamik kriter geçirilmesi için kullanılan olay
Code Block | ||
---|---|---|
| ||
using LDP.DAL.Criteria; using LDP.DAL.Criteria.Helpers; private void LDPAutoComplete1_LookupDynamicCriteria(LDP.Controls.Editors.LDPEditor editor, LDP.Controls.Editors.LDPEditorLookup.LookupArgs args) { args.Criteria = NCriteriaBuilder<Student>.Where(s => s.Name.Contains(LDPTextEdit1.Text)).ToNCriteria(); } |
ResolveLookupDisplay
Autocomplete bileşeninde seçilen kayıt için editöre odaklanıldığında(Focus In) ya da editörden çıkış yapıldığında(Focus Out) alacağı değerlerin koddan özelleştirilebilmesini sağlar.
Code Block | ||
---|---|---|
| ||
private bool LDPAutoComplete1_ResolveLookupDisplay(object sender, LDP.Controls.Editors.ResolveLookupDisplayEventArgs args) { args.FocusInDisplay = "FocusInFocusInText"; args.FocusOutDisplay = "FocusOutFocusOutText"; return true; //kodlamada yazılan FocusInDisplay ve FocusOutDisplay değerlerinin uygulanmasını sağlar. //False olduğu durumda; FocusInDisplay ve FocusOutDisplay için kodlamada yapılan değişiklikler uygulanmaz. } |