[CLOSED] TriggerField with search criteria

  1. #1

    [CLOSED] TriggerField with search criteria

    Let's say I have a trigger field:
    <ext:TriggerField ID="headerSearchField" runat="server" Height="15" EnableKeyEvents="true"
                HideLabel="true" Selectable="true" Cls="smallTrigger" ClientIDMode="inherit"
                MinWidth="200" Width="200" EmptyText="" HideMode="Visibility">
                <Triggers>
                    <ext:FieldTrigger Icon="Clear" />
                </Triggers>
                <Listeners>
                    <KeyUp Fn="onSearch" Delay="1000" />
                    <Focus Handler="onnode=false;" />
                    <TriggerClick Handler="clearSearch(true);" />
                </Listeners>
            </ext:TriggerField>
    I want to add a searching criteria as well.

    Now I am searching based on the name, want to add search by id or some other searching types.

    Any suggestion how to modify the trigger above in order to add that?


    Thanks.
    Last edited by Daniil; Mar 19, 2012 at 7:29 PM. Reason: [CLOSED]
  2. #2
    Unfortunately I don't really understand what you're asking for. The TriggerField is basically just an input Field. You can use the value for anything as per your requirements.
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    Unfortunately I don't really understand what you're asking for. The TriggerField is basically just an input Field. You can use the value for anything as per your requirements.

    I was wondering if there is an example, or a suggestion, or a functionality, that can be utilized in a TriggerField to choose and submit another parameter (searching criteria) beside the searching text.

    So for example user can choose what searching criteria will be.


    User put the number in and chooses id as a criteria - then on the server search will be performed based on id.
    User put the alphanumeric characters - then on the server search will be performed based on name.
    ....



    To use a triggerfield as a multicriteria searchiing field.
  4. #4
    Why not just check if user has entered a 'numeric' or 'alphanumeric' value and modify your search logic based on that boolean?
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Extending TriggerField
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 13, 2010, 9:55 PM
  2. [CLOSED] [1.0] TriggerField read-only
    By danielg in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 04, 2009, 10:15 AM
  3. [CLOSED] Toolbar and TriggerField
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 12, 2009, 11:11 AM
  4. [CLOSED] TriggerField in IE8 broken
    By pank in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 28, 2009, 10:00 AM
  5. [CLOSED] TriggerField disable
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 22, 2009, 10:34 AM

Tags for this Thread

Posting Permissions