[progress Communities] [progress Openedge Abl] Forum Post: Re: Adding A Lookup Button To A...

Status
Not open for further replies.
G

gdb390

Guest
Two possible causes : 1. Is your PropertyGridButtonEditor a class in the root directory ? If not -> are you using a using statement ? I personally don't like using statement and always use the fully referenced class name (package + class) 2. are the EditorType and the result of the GetType of the same type ? Maybe you need an extra cast In my project this works fine : Custom Editor : ---------------------- using Progress.Lang.*. using Telerik.WinControls.UI.BaseInputEditor. block-level on error undo, throw. class RadPropertyGrid.PropertyGridButtonEditor inherits BaseInputEditor: define override public property DataType as System.Type get. method override protected Telerik.WinControls.RadElement CreateEditorElement( ): undo, throw new Progress.Lang.AppError("METHOD NOT IMPLEMENTED"). end method. end class. In form where radpropertygrid is used : @VisualDesigner. method private void radPropertyGrid1_EditorRequired( input sender as System.Object, input e as Telerik.WinControls.UI.PropertyGridEditorRequiredEventArgs ): e:EditorType = Progress.Util.TypeHelper:GetType("RadPropertyGrid.PropertyGridButtonEditor"). return. end method.

Continue reading...
 
Status
Not open for further replies.
Top