locked
Boolean filter dropdown. in spanish RRS feed

  • Question

  • User1204604062 posted

    Hi, I have a page, that generates a filter automatically by a column of type boolean.

     

    It generates a dropdown list with the values true and false and I want them in spanish Activo e Inactivo

     

    Gracias

     

    Thanks!!

    Monday, December 22, 2008 12:00 PM

Answers

  • User-330204900 posted

    You will need to add the Filtering from DD Future to get this to work I have an article here on how:

    1. Part 1 - Getting Dynamic Data Futures filters working in a File Based Website.
    2. Part 2 - Create the AnyColumn filter from the Dynamic Data Futures Integer filter.
    3. Part 3 – Creating the AnyColumnAutocomplete filter.

    Part 1. is the how to get DD Future filtering working in you website.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 22, 2008 5:17 PM

All replies

  • User-330204900 posted

    Have a look at this sample here:

     

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="BooleanDDL.ascx.cs" Inherits="BooleanDDL_Filter" %>
    
    <asp:Label ID="lblName" runat="server">
    </asp:Label>
    -
    <asp:DropDownList ID="DropDownList1" AutoPostBack="true" runat="server">
        <asp:ListItem Text="All" Value="" Selected="True"></asp:ListItem>
        <asp:ListItem Text="Yes" Value="true"></asp:ListItem>
        <asp:ListItem Text="No" Value="false"></asp:ListItem>
    </asp:DropDownList>
    
    public partial class BooleanDDL_Filter : FilterUserControlBase, ISelectionChangedAware
    {
    	public event EventHandler SelectionChanged
    	{
    		add
    		{
    			DropDownList1.SelectedIndexChanged += value;
    		}
    		remove
    		{
                DropDownList1.SelectedIndexChanged -= value;
    		}
    	}
    
    	protected void Page_Init(object sender, EventArgs e)
    	{
            lblName.Text = Column.DisplayName;
    
    	}
    
    	public override string SelectedValue
    	{
    		get
    		{
                return DropDownList1.SelectedValue;
    		}
    	}
    }
      Please Note I'm using the Filtering from DD Futures to get this filter to replace the standard filter [:D]
    Monday, December 22, 2008 12:23 PM
  • User1204604062 posted

     I dont know but I still see the filter in english and not in spanish

     

    this is my code.

     

     [DisplayName("Activo")]
            [HideColumnIn(PageTemplate.List)]
            [UIHint("Boolean")]
            [Filter(FilterControl="BooleanDDL")]
            public object State { get; set; }
    

     
    The rest, I copied your code on the filtertemplate folder, exactly as you pasted it

     

    Thanks

    Monday, December 22, 2008 4:45 PM
  • User-330204900 posted

    You will need to add the Filtering from DD Future to get this to work I have an article here on how:

    1. Part 1 - Getting Dynamic Data Futures filters working in a File Based Website.
    2. Part 2 - Create the AnyColumn filter from the Dynamic Data Futures Integer filter.
    3. Part 3 – Creating the AnyColumnAutocomplete filter.

    Part 1. is the how to get DD Future filtering working in you website.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 22, 2008 5:17 PM