Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Add custom category
posted

Hi,

 

I have the code:

foreach(Field field in obj.Fields)

{

Infragistics.Calculations.NamedReference reference = new Infragistics.Calculations.NamedReference() { ReferenceId = field.Name, Category = "Data Fields" };

ControlCalculationSettings calcSettings = new ControlCalculationSettings();

calcSettings.ReferenceId = field.Name;

calcSettings.TreatAsType =typeof(double);

_calculationManager.NamedReferences.Add(reference);

}

The code adds new ReferenceId under the Name Reference Category.

I was wondering if I can create my own category called "Custom" instead of Named References or Controls and add everything under that category?

 

Thanks,

 

Parents
No Data
Reply
  • 44743
    Verified Answer
    posted

    That is currently not supported. You can change the name of the "Named References" category by registering a new value for the "Operand_Category_NamedReferences" resource string, but you cannot add new nodes which are siblings to the "Named References" or "Controls" nodes. I have forwarded this post to the Developer Support Manager to create a feature request on your behalf.

Children