RECOMMENDATION: If you are using a version of The Portal Connector higher than 4.0, we strongly recommend utilizing the MVC based widgets and components to create your site. This documentation is for legacy purposes only and will soon be deprecated.

get_trueControl()

Returns the selected display type for the widgets' true choice as an object. 

Parameters

none

Returns

RadComboBoxRadButtonRadSlider depending on configuration. 

get_falseControl()

Returns the selected display type for the widgets' false choice as an object. 

Parameters

none

Returns

RadComboBoxRadButtonRadSlider depending on configuration.  

get_sliderParent()

Returns the parent div element if the widget is configured to be a slider. 

Parameters

none

Returns

HTML Element 

get_dataFieldName()

Returns the developer name for the control. 

Parameters

none

Returns

String

get_value()

Returns true or false based on the selection. 

Example-get value -return the value of the widget as a boolean.

findControl(".CrmBoolean_C007").get_value();
Parameters

none

Returns

Boolean

set_value()

Sets the selection of the widget. 

Example-set the value of the widget to the provided boolean value.

findControl(".CrmBoolean_C007").set_value(true);
Parameters

Boolean

Returns

none

enable()

Enables the widget. 

Parameters

none

Returns

none

disable()

Disables the widget. 

Parameters

none

Returns

none

get_boolText()

Returns the value of the widget as a string.

Example-Getting the bool text -return the value of the widget as a string.

findControl(".CrmBoolean_C007").get_boolText();
Parameters

none

Returns

String

set_boolText()

Sets the value of the boolean text. 

Example-Setting Bool Text example -Will attempt to set the value of the widget to the provided string.

findControl(".CrmBoolean_C007").set_boolText("false");
Parameters

String

Returns

none

get_type ()

Returns the selected display's object as a string.

Example-Getting the Display Type of the Yes/No Widget

//Will return the object that the yes/no widget is set to. This method will return "Telerik.Web.UI.RadButton" if //the widget is set to use a check box or radio buttons, "Telerik.Web.UI.RadComboBox" if the widget is set to // use a drop down list, or "Telerik.Web.UI.RadSlider" if the widget is set to use a slider. findControl(".CrmBoolean_C007").get_type();
Parameters

none

Returns

String