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 8756327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:03:19+00:00 2026-06-13T14:03:19+00:00

I have an example working here – http://jsfiddle.net/BM3kX/5 It has a piece of JSON

  • 0

I have an example working here – http://jsfiddle.net/BM3kX/5

It has a piece of JSON consumed by a YUI DataTable. I have a few queries regarding the same.

  1. The JSON has a ‘imageURI’ attribute from which I need to render an image [16×16] along with the ‘showName’ attribute in the same cell. Also, the table can have multiple rows so as the images that should be rendered on each row efficiently.

  2. When I click on a row, the table should alert me of the selected record. But there is a twist here – I need the data exactly as the JSON which is used to render it. (I should get even the ‘type’ attribute even if I’m not using it anywhere in my table.)

How can I meet the above requirements? Any solutions or possibilities?

  • 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-13T14:03:20+00:00Added an answer on June 13, 2026 at 2:03 pm

    1) There is not much you can do there. I assume the images are different for each of the records so there is not a lot to optimize except sending the images in the proper size instead of having the client resize them. If the images were some sort of icons representing status, I would recommend you sent the status coded somehow and let the browser decide on how to represent it, but if they are pictures of the people, you’ll just have to let the browser deal with them the best it can.

    2) It is easy to reconstitute the original data out of the model for the clicked row. You don’t need to keep a copy of the JSON for that row, you can turn it into JSON whenever you want (after all, model has a toJSON method to make that easy). The model for each record in a table can hold more information than that shown in the table. The column property tells the datatable what to show, the datasource what it stores. Use getRecord to reach the underlying model and JSON-encode that. If the type was there originally, it will still be there even if you don’t show it.

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

Sidebar

Related Questions

http://jsfiddle.net/danesoul/tSCus/2/ - Here is working example of simple JQuery UI Tabs interface. Commented string
I'm working through the NerdDinner ASP.NET MVC 1.0 example. I have it all working
is it possible to disable onclick= while sorting? I Have a working example here
I have a working example of a form here . I need to use
Here is an example: http://ci.elfster.com/core/login.aspx Look at the net tab in Firebug and you
Working example is here (this script deals with the triangle animation) http://movable.pagodabox.com/ full code
i have this example found here: http://threedubmedia.com/code/event/drag/demo/resize2 and i tried to reproduce it in
i am using google map.i have a simple example which is working fine.here is
Does anybody have an example of working with database using Visual C++ and OLEDB?
Does anyone have a working example of a video player built using Qt phonon?

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.