Grid Editor Value Converters
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
bool IsConverter(string alias);
public bool IsConverter(string alias)
{
return alias.InvariantEquals("rte");
}
IEnterspeedProperty Convert(GridControl editor, string culture)
public IEnterspeedProperty Convert(GridControl editor, string culture)
{
return new StringEnterspeedProperty(editor.Value.ToString());
}
public class MyCustomerGridEditorValueConverterComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.EnterspeedGridEditorValueConverters()
.Append<MyCustomGridEditorValueConverter>();
}
}
[RuntimeLevel(MinLevel = RuntimeLevel.Run)]
public class MyCustomerGridEditorValueConverterComposer : IUserComposer
{
composition.EnterspeedGridEditorValueConverters()
.Append<MyCustomGridEditorValueConverter>();
}
public class MyCustomerPropertyValueConverterComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.EnterspeedGridEditorValueConverters()
.InsertBefore<DefaultRichTextEditorGridEditorValueConverter, MyCustomGridEditorValueConverter>();
}
}
[RuntimeLevel(MinLevel = RuntimeLevel.Run)]
public class MyCustomerPropertyValueConverterComposer : IUserComposer
{
composition.EnterspeedGridEditorValueConverters()
.InsertBefore<DefaultRichTextEditorGridEditorValueConverter, MyCustomGridEditorValueConverter>();
}
Was this page helpful?