Exemplo n.º 1
0
 protected void grid_FilterControlCustomValueDisplayText(object sender, FilterControlCustomValueDisplayTextEventArgs e)
 {
     if (e.PropertyInfo.PropertyName == "OrderDate")
     {
         if (e.Value == null)
         {
             e.DisplayText = "<enter the order date>";
         }
     }
 }
 protected void grid_FilterControlCustomValueDisplayText(object sender, FilterControlCustomValueDisplayTextEventArgs e)
 {
     if (e.PropertyInfo.PropertyName == "NeedAlert")
     {
         if (e.Value == null)
         {
             return;
         }
         e.DisplayText = (bool)e.Value ? "Need alert" : "Is's ok";
     }
 }
 private void criteriaEdit_CustomValueDisplayText(object sender, FilterControlCustomValueDisplayTextEventArgs e)
 {
     foreach (ICustomValueParser parser in this.valueParsers)
     {
         string displayText = parser.GetDisplayText(e.Value, e.PropertyInfo);
         if (!string.IsNullOrEmpty(displayText))
         {
             e.DisplayText = displayText;
             break;
         }
     }
 }