Description settings

Sometimes there is a problem additional setting properties of the controls generated to edit and display the property values of datalow in AGE. You can use the delegates defined statically for the class AjaxGroupEdit. The delegate is set for a specific view name and is of type TuneControlDelegate, more about which you can read here. To add a delegate, you can add using the method SetControlTuner:

/// <summary> 
/// Set method to configure the controls that appear in the AGE. 
/// </summary> 
/// <param name="viewName">view Name (detail displayed in AGE), which will be passed to invoked method.</param> 
/// <param name="method">Method that performs the setting of controls.</param> 
public static void SetControlTuner(string viewName, TuneControlDelegate method)

Ask delegates better in the Global.asax.cs, in the Application_Start method. Example usage:

        (control, data) =>
              if (control.GetType() == typeof(TextBox) && data.PropertyName == Information.ExtractPropertyName<Подзадача>(x => x.Описание)) 
                 ((TextBox)control).TextMode = TextBoxMode.MultiLine; 

Details about AjaxGroupEdit written in this article.

Other options for the controls

Переведено сервисом «Яндекс.Переводчик»