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

  • SEARCH
  • Home
  • 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 6558951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:15:46+00:00 2026-05-25T13:15:46+00:00

I am trying to read strings off a table in the database and use

  • 0

I am trying to read strings off a table in the database and use them as titles in panels inside an accordion panel.
In short the number of panels inside the accordion can change dynamically.

Here is a gist of what i tried – https://gist.github.com/1199695. I get the names from the table with an endpoint in my Ruby class. The returned data contains a string for the client JS function (named addPanel) which is called to add the Panel inside the accordion.

The code executes as i expected but the panels inside the accordion do not show up.

My suspicion is that the rendering is happening before the items get into the accordion.

If i hard code the addition – via class_name.items.add(new Ext.panel.Panel({:title “My panel”}) ) inside the initComponent then i can see the panel titled “My panel” inside the accordion.

Let me know if this is the correct way to approach the problem?

Thanks

  • 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-05-25T13:15:46+00:00Added an answer on May 25, 2026 at 1:15 pm

    Do you need the accordion panes to be Netzke components? If not, then you could try out something like:

     def configuration #:nodoc:
        super.merge({
           # ...
    
           :items => some_model.all.map{|item| {:item => item.title}}
        })
      end
    

    Briefly, you just provide your Ext.tab.Panel-based class with the dynamic items configuration (taken from the model).

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

Sidebar

Related Questions

I am trying to read strings from a file that has each string on
Apologies if my terminology is off, I'm new to C#. I'm trying to use
I am trying to form a text representation of a table based off of
I am trying to write a basic app that will read data off a
I am trying to read in a string from a C# Response.Write(string example) into
I'm trying to read in a multi line string then split it then print
I am trying to read contents of a file using string tokenizer and store
I am trying to read certain values from a json string in php, I
I'm trying to read a file line by line to a string type variable
I am trying to convert a string I read in from a file to

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.