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.

enable()

Enable the widget on the page.

Parameters

Returns

None

get_type()

Returns the widget type

Parameters

None

Returns

get_kendoInput()

Returns the kendo object associated with the widget.

Parameters

None

required()

Allows to Enable or Disable client side validation  

Parameters

Boolean

Returns

get_displayInput()

Returns the picklist display associated with the widget.

Parameters

None

Returns

JQuery Object

get_element()

Returns the element of the widget.

Parameters

None

Returns

JQuery Object

clear()

Clear the value of the widget

Parameters

Returns

None

disable()

Disable the widget on the page.

Parameters

Returns

None

get_model()

Returns the model object of the widget, which contains a number of useful properties related to the widget.

Parameters

None

Returns

Object

get_input()

Returns the input element associated with the widget.     

Example-Picklist Fetch Input Element

tpc.forms[0].TpcPicklist.get_input();
Parameters

None

Returns

JQuery Object

get_container()

Returns the container element associated with the widget.

Example-Picklist Fetch Container Element

tpc.forms[0].TpcPicklist.get_container();
Parameters

None     

Returns

​JQuery Object

hide()

Hides the widget from the form.

Example-Hide Picklist

tpc.forms[0].TpcPicklist.hide();
Parameters

None

Returns

None

show()

Shows the widget on the form.

Example-Show Picklist

tpc.forms[0].TpcPicklist.show();
Parameters

None

Returns

None

set_value()

Sets the value of the widget.

Example-Picklist Set Value

tpc.forms[0].TpcPicklist.set_value(2); tpc.forms[0].TpcPicklist.set_value("4");
Parameters

String

Returns

None

get_value()

Returns the currently selected value of the widget.

Example-Picklist Fetch Value

tpc.forms[0].TpcPicklist.get_value();
Parameters

None

Returns

String

get_textValue()

Returns the text label of the currently selected item on the widget.

Example-Picklist Fetch Text Value

tpc.forms[0].tpcPicklist.get_textValue();
Parameters

None

Returns

String

set_textValue()

Sets the value of the widget according to a text label.

Example-Picklist Set Text Value

tpc.forms[0].TpcPicklist.set_textValue("UPS");
Parameters

String

Returns

None

add_valueChanged()

Fired when the value of the widget is changed by the user.

The event handler function context (Available via the this keyword) will be set to the widget instance.

Example-Binding a function to the add_valueChanged() event.

//For example, using: var a = tpc.forms[0].TpcPicklist.add_valueChanged(function() { console.log( this.get_value()); }); //will output the selected value of the widget to the console as soon as the value changes. All delegates must be set with a variable.
Parameters

Function

Returns

None     

remove_valueChanged()

Removes any delegate hooked up to the add_valueChanged() event.

Example-Picklist Remove Value Changed Binding

//For example, using: var a = tpc.forms[0].TpcPicklist.add_valueChanged(function() { console.log( this.get_value()); }); //will output the selected value of the widget to the console as soon as the value changes. All delegates must be set with a variable. This way you can easily remove this delegate from any widget by using: tpc.forms[0].TpcPicklist.remove_valueChanged(a);
Parameters

Function

Returns

None

toggle()

toggles the visibility of the widget. ​

Example-EXAMPLE-Picklist TOGGLE

tpc.forms[0].TpcPicklist.toggle()
Parameters

None

Returns

None

readonly()

 set the widget state to read only

Example-PICKLIST- READONLY

//set to true
tpc.forms[0].TpcPicklist.readonly(true);

//set to false
tpc.forms[0].TpcPicklist.readonly(false);

//show the read only status
tpc.forms[0].TpcPicklist.readonly();
Parameters

true, false

Returns

None