ttamturk Posted October 14, 2014 Posted October 14, 2014 Hi, I try to create a new component by looking CustomControl samples but when i start my test project it says "id.on is not a function". I don't have any idea what it is talking about Best ToolbarTest.rar
Administrators Farshad Mohajeri Posted October 14, 2014 Administrators Posted October 14, 2014 unit WidDBComboBox; interface uses SysUtils, Classes, Controls, uniGUIBaseClasses, uniGUIClasses, uniMultiItem, uniComboBox, uniDBComboBox; type TwidDBComboBox = class(TUniDBComboBox) private protected procedure WebCreate; override; public published end; procedure Register; implementation procedure TwidDBComboBox.WebCreate; begin inherited; JSConfigPlugin('Ext.ux.form.field.ClearButton', ['serverSideClear', True]); end; procedure Register; begin RegisterComponents('WID Components', [TwidDBComboBox]); end; end.
Administrators Farshad Mohajeri Posted October 14, 2014 Administrators Posted October 14, 2014 For what you try to do here is the easiest way: TwidDBComboBox = class(TUniDBComboBox) published property ClearButton; end;
ttamturk Posted October 15, 2014 Author Posted October 15, 2014 Thanks, but ClearButton doesn't come up with this.
Administrators Farshad Mohajeri Posted October 15, 2014 Administrators Posted October 15, 2014 It shows only when there is a text in combo.
ttamturk Posted October 15, 2014 Author Posted October 15, 2014 It shows only when there is a text in combo. Thanks, I solve that issue there are some of my client-side codes around. Can I add RemoteQuery property simple as like that?
Administrators Farshad Mohajeri Posted October 15, 2014 Administrators Posted October 15, 2014 Probably yes. Try publishing below properties. property RemoteQuery; property RemoteQueryDelay;
ttamturk Posted October 15, 2014 Author Posted October 15, 2014 Yes, and obviously we need to add; property OnChange; property OnRemoteQuery; to use this properties
ttamturk Posted October 15, 2014 Author Posted October 15, 2014 Hi, I added these properties to my custom control; property CheckChangeDelay; property ClearButton; property RemoteQuery; property RemoteQueryDelay; property Style; property OnChange; property OnRemoteQuery; Everything is fine except style, i want to use lookupcombobox's text area like normal combobox with text editing support to do RemoteQuery, but how should i do that or how should i know how to do that? Is there any documentation about uniGUI controls properties or events etc. ? This is like blind diving Best
Recommended Posts