WebControlProvider is a provider that allows you to configure controls to display object properties for list controls (e.g., WebObjectListView, AjaxGroupEdit). All its settings are stored in the file /xml/WebControlProvider.xml

Settings

There are 2 way settings:

1.Specify the type of control for any type (XML element propertytype), for example

  <propertytype name="Boolean">
    <control typename="System.Web.UI.WebControls.CheckBox, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" property="Checked" codefile="" />
    <editcontrol ... />
    <filtercontrol ... />
  </propertytype>

2.Specify the type of the control property to a specific type (XML element customproperty), for example

  <customproperty class="Address" property="Pervichnykh">
    <control typename="IIS.ISOGD.Controls.The Partials.ArcMapViewControl" property="PrimaryKey" codefile="~/Controls/Partials/ArcMapViewControl.ascx" /> 
    <editcontrol ... />
    <filtercontrol .. />
  </customproperty>

In the tag <control /> (<editcontrol />,<filtercontrol />) shall include:

  • typename - type контрола;
  • property - property control, which bendida the value in the list (in the particular cell where you want the control);
  • codefile - the path to the. ASCX file of the control (only for ASCX controls);

Embedding controls

You can specify the control for viewing and for editing (for example, in AjaxGroupEdit).

If you have developed a custom control that is used on edit forms and want to embed it in WebObjectListView. It may be a problem with the fact that in WebObjectListView it looks like the control for data entry, and planned to use it for display only.In such cases, you can implement a property Enabled have control, and when control will be embedded in WOLV, he automatically put down Enabled = false.

Example

<?xml version="1.0" encoding="utf-8" ?>
<root>
  <propertytype name="Boolean">
    <control typename="System.Web.UI.WebControls.CheckBox, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" property="Checked" codefile=""/>
  </propertytype>
  <propertytype name="NullableDateTime">
    <control typename="ICSSoft.STORMNET.Web.Controls.DateTimeFormattedControl" property="Text" codefile="DateTimeFormattedControl.ascx"/>
    <editcontrol typename="ICSSoft.STORMNET.Web.Controls.DatePicker" property="Text" codefile="The DatePicker.ascx"/>
  </propertytype>
  <propertytype name="DateTime">
    <control typename="ICSSoft.STORMNET.Web.Controls.DateTimeFormattedControl" property="Text" codefile="DateTimeFormattedControl.ascx"/>
    <editcontrol typename="ICSSoft.STORMNET.Web.Controls.DatePicker" property="Text" codefile="The DatePicker.ascx"/>
  </propertytype>
  <customproperty class="Address" property="Pervichnykh">
    <control typename="IIS.ISOGD.Controls.The Partials.ArcMapViewControl" property="PrimaryKey" codefile="~/Controls/Partials/ArcMapViewControl.ascx" /> 
  </customproperty>
</root>