I am able to add a custom function no problem, however; doing so seems to remove all the default functions (see screenshot). Any ideas on how to add a custom function and leave the default functions as well?
Using the LoadFromXml function as described in the help has the same results.
Telerik.Data.Expressions.ExpressionContext.Context =
new
MyExpressionContext();
Telerik.WinControls.UI.RadExpressionEditorForm.ExpressionItemsList.Add(
new
Telerik.Data.Expressions.ExpressionItem
{
Name =
"MarketDate (Endur)"
,
Value =
"MarketDate()"
,
Syntax =
"MarketDate()"
,
Type = Telerik.Data.Expressions.ExpressionItemType.OtherFunc,
Description =
"Returns the market date as it appears in the market manager."
});
Using the LoadFromXml function as described in the help has the same results.