Adding ControlTypes into Configuration Content in a widget

Adding ControlTypes into Configuration Content in a widget

This question is answered

I would like to add the controltype, Telligent.Evolution.Controls.UserOrRoleLookupTextBox to the configuration content section of my widget.  However, when I attempt to add it, it doesn't show up when I go to configure the widget under edit page.  I know I am configuring it wrong but I cannot find any documentation on how to add the control.  Here is what I did

<propertyGroup id="options" resourceName="Options">

    <property id="tbAddSME" resourceName="CF_TextBox" dataType="custom" defaultValue="" controlType="Telligent.Evolution.Controls.UserOrRoleLookupTextBox, Telligent.Evolution.Controls" width="100" />

</propertyGroup>

How do I properly add this control to my widget in the Configuration Content section?

Verified Answer
  • The design of the configuration for widgets is such that the controls that are rendered have to implement IPropertyControl.  So, you are unable to use the UserOrRoleLookupTextBox control in the configuration of a widget.  Unfortunately, there is also not a lookup control for users that is a property control from what I see.

  • You can create your own IProperty control.  The interface is located in the DynamicConfiguration dll.  Within that you can use the Public or REST Api to retrieve users
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: sthaynes [mailto:bounce-sthaynes@communities.telligent.com]
    Sent: Tuesday, June 05, 2012 7:47 AM
    To: bugsandissues@communities.telligent.com
    Subject: RE: [Bugs and Issues - Telligent Community] Adding ControlTypes into Configuration Content in a widget
     

    Ok, well do you have any suggestions on how I could accomplish something similar?

  • Here is a good example of how to create a IPropertyControl: telligentexamples.blogspot.com/.../creating-custom-configuration-control.html

All Replies
  • The design of the configuration for widgets is such that the controls that are rendered have to implement IPropertyControl.  So, you are unable to use the UserOrRoleLookupTextBox control in the configuration of a widget.  Unfortunately, there is also not a lookup control for users that is a property control from what I see.

  • Ok, well do you have any suggestions on how I could accomplish something similar?

  • You can create your own IProperty control.  The interface is located in the DynamicConfiguration dll.  Within that you can use the Public or REST Api to retrieve users
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: sthaynes [mailto:bounce-sthaynes@communities.telligent.com]
    Sent: Tuesday, June 05, 2012 7:47 AM
    To: bugsandissues@communities.telligent.com
    Subject: RE: [Bugs and Issues - Telligent Community] Adding ControlTypes into Configuration Content in a widget
     

    Ok, well do you have any suggestions on how I could accomplish something similar?

  • Here is a good example of how to create a IPropertyControl: telligentexamples.blogspot.com/.../creating-custom-configuration-control.html

  • Thanks guys!!!