Posted 16 years ago
by Paresh Gheewala
Hi,
One of my requirement is to use Infragistics with SyntaxEditor of Actipro's intellisense.
SyntaxEditor provides the user-friendly operations like intellisense to select the object type and so on.
1) I need to integrate it with Ultragrid. Can it be done ?
2) Can SyntaxEditor used as textbox within Ultragrid of Ingragistics (windows control)?
following is the code. .
[DefaultProperty("DataType")]
public class DataTypeEditTextBox : ActiproSoftware.SyntaxEditor.SyntaxEditor, IProvidesEmbeddableEditor
{
private EmbeddableImageRenderer imageRendererExternal = null;
#region IProvidesEmbeddableEditor Members
EmbeddableEditorBase IProvidesEmbeddableEditor.Editor
{
get { return this.ImageRendererExternal; }
}
#endregion
internal protected EmbeddableImageRenderer ImageRendererExternal
{
get
{
if (this.imageRendererExternal == null)
{
this.imageRendererExternal = new EmbeddableImageRenderer(); }
return this.imageRendererExternal;
}
}
}
currently I am just trying to use EmbeddableImageRenderer to support EmbeddableEditorBase IProvidesEmbeddableEditor.Editor property.
ultragrid1_InitializeLayout has following code.
{
...
e.Layout.Bands[0].Columns["DataType"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
...
e.Layout.Bands[0].Columns["DataType"].EditorControl = _syntaxEditor;
}
here
DataTypeEditTextBox _syntaxEditor = new DataTypeEditTextBox();
please respond if someone has tried this.
thanks
Paresh
}
One of my requirement is to use Infragistics with SyntaxEditor of Actipro's intellisense.
SyntaxEditor provides the user-friendly operations like intellisense to select the object type and so on.
1) I need to integrate it with Ultragrid. Can it be done ?
2) Can SyntaxEditor used as textbox within Ultragrid of Ingragistics (windows control)?
following is the code. .
[DefaultProperty("DataType")]
public class DataTypeEditTextBox : ActiproSoftware.SyntaxEditor.SyntaxEditor, IProvidesEmbeddableEditor
{
private EmbeddableImageRenderer imageRendererExternal = null;
#region IProvidesEmbeddableEditor Members
EmbeddableEditorBase IProvidesEmbeddableEditor.Editor
{
get { return this.ImageRendererExternal; }
}
#endregion
internal protected EmbeddableImageRenderer ImageRendererExternal
{
get
{
if (this.imageRendererExternal == null)
{
this.imageRendererExternal = new EmbeddableImageRenderer(); }
return this.imageRendererExternal;
}
}
}
currently I am just trying to use EmbeddableImageRenderer to support EmbeddableEditorBase IProvidesEmbeddableEditor.Editor property.
ultragrid1_InitializeLayout has following code.
{
...
e.Layout.Bands[0].Columns["DataType"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
...
e.Layout.Bands[0].Columns["DataType"].EditorControl = _syntaxEditor;
}
here
DataTypeEditTextBox _syntaxEditor = new DataTypeEditTextBox();
please respond if someone has tried this.
thanks
Paresh
}