Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8103789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:39:10+00:00 2026-06-05T23:39:10+00:00

I did a search on the elements of the list, but the problem is

  • 0

I did a search on the elements of the list, but the problem is that the search field is displayed on a detailed card of the list item.I need to hide search field in detailed card.
I tried to hide it in controller:

showDetail: function(list, record) {
    this.getMain().push({
        xtype: 'recipedetail',
        title: record.fullName(),
        data: record.data
    }),
     this.getMain().getNavigationBar.hide({   
    xtype: 'searchfield',
    itemId:'contact_search'     

      })
        }

And tried to hide it in detail card:

config: {
   ...,
   items: [{
    xtype: 'searchfield',
    itemId:'contact_search',
    hidden: true
    }] 
}

But searchfield still displayed. Errors in code or in the direction of my thoughts?
http://www.senchafiddle.com/#4hKD8#uZlr7#JywGI#3D6PK#DOaF9#oVfK0#jdzF3

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:39:12+00:00Added an answer on June 5, 2026 at 11:39 pm

    There is quite a lot of error in your code to hide the searchbar.

    • You for the () at the getNavigationbar function
    • The hide function takes an animation or a boolean as a parameter, not the component your want to hide
    • You forgot the semi-colon

    Now, to hide the searchfield, first add a reference to this searchfield in the config of your controller :

    config: {
        refs: {
            main: 'mainpanel',
            searchfield: 'mainpanel searchfield'
        },
        ...
    

    Now you can access your searchfield component with this.getSearchfield(), so you just need to do :

    this.getSearchfield().hide();
    

    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please note that this is not homework and i did search before starting this
I did a search before asking so please don't tell me to do that.
I did a lot search already but couldn't find a straight anwser. I have
How can I search list(s) where all the elements exactly match what I'm looking
I did search for this topic, but I didn't find any relevant clue for
I tried to hide elements in my html form by defining a javascript function
I did search the internet to find an answer to my questions but there
I did search the forum and did not find a similar question. I'm looking
I did search, and got a cloeset answer form How can I automatically close
just to put it out there -I really did search and try to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.