Page 12 of 104 FirstFirst ... 210111213142262 ... LastLast
Results 111 to 120 of 1037

Thread: Grid Search Plugin for Ext 4.x [updated]

  1. #111
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    406
      0  

    Default

    I haven't added these options on purpose as it is much easier to type ^js as to click over menus and even most stupid users can remember this one character. Of course, for more advanced users, I use rlike() function on server so they can type even things like:

    ^s[a-z]+ $

    as search strings.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  2. #112
    Ext User
    Join Date
    May 2007
    Posts
    71
    Vote Rating
    0
      0  

    Default

    Ok I understood. So your clients are more intelligent than mine ...

  3. #113
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    213
    Vote Rating
    0
      0  

    Default

    apologies, I did not try that, this is enough for most users.

    Thanks!

  4. #114
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    406
      0  

    Default

    No problem, you can still use your additions but, please, extend the extension, don't change the original code. That will protect you from the pain of upgrading.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  5. #115
    Sencha User
    Join Date
    Feb 2008
    Posts
    29
    Vote Rating
    -1
      0  

    Default additional parameter

    hey,

    is it possible to add additional parameter to the remote request? params as config option is not intended.
    I need ie the additional post parameter "task".

    Any idea?

    thx

  6. #116
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    406
      0  

    Default

    Plugin (re)loads the store. You can add your task to baseParams of store.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  7. #117
    Sencha User
    Join Date
    Feb 2008
    Posts
    29
    Vote Rating
    -1
      0  

    Default

    sure, but i have an backend script which handles any listings.

    Code:
    switch (task){
     case 'listing':
    
     case 'search':
    }
    so the parameter for query differs from base parameter. or did i missunderstood your hint?

  8. #118
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    406
      0  

    Default

    baseParams is object with name/value pairs that are posted to server.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  9. #119
    Sencha User
    Join Date
    Feb 2008
    Posts
    29
    Vote Rating
    -1
      0  

    Default

    i know, but how can i change the value for the key "task" for example?

  10. #120
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    406
      0  

    Default

    PHP Code:
    var store grid.getStore();
    store.baseParams store.baseParems || {};
    store.baseParams.task "Your task value"
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


Page 12 of 104 FirstFirst ... 210111213142262 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •