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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:10:49+00:00 2026-05-16T05:10:49+00:00

I have a jqgrid where in I am returning a list of objects from

  • 0

I have a jqgrid where in I am returning a list of objects from the controller… I have used the List collection interface of java.util package…. and returning that…

@RequestMapping("task-management.html")
public @ResponseBody List<TaskBean> getStatus()
{
    System.out.println("\nin task mgmt controller");
    taskList.add(new TaskBean("Task1", "K-CY-329", "144", "G-3", "1", "Pending", "XYZ"));
    taskList.add(new TaskBean("Task2", "K-CY-356", "165", "A-10", "4", "Closed", "ABC"));
    taskList.add(new TaskBean("Task3", "K-CY-343", "768", "B-12", "3", "Pending", "IJK"));
    taskList.add(new TaskBean("Task4", "K-CY-786", "918", "F-9", "2", "Open", "PQR"));
    return taskList; 
}

and i have given the corresponding in jqgrid’s url with datatype set to json…. I am using spring mvc3.0 controller…. this controller function gets called successfully…. But i cant see the TaskBean objects getting rendered to the jqgrid…. Please help!!!

  • 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-16T05:10:50+00:00Added an answer on May 16, 2026 at 5:10 am
    $("#task-list-table").jqGrid({
        autowidth: true,
        datatype : "json",
        url: "task-management.html",
        mtype: 'POST',
        colNames : ["Title","Order ID","Realty","Building",
                    "Priority","Action","Assignee"],
        colModel : [
            {label: "Title",   name: "title",   index: "Title"},
            {label: "OrderID", name: "orderId", index: "OrderID", jsonmap: "orderId"},
            {label: "Realty",  name: "realty",  index: "Realty",  jsonmap: "realty" },
            {label: "Building",name: "building",index: "Building",jsonmap: "building"},
            {label: "Priority",name: "priority",index: "Priority",jsonmap: "priority"},
            {label: "Action",  name: "action",  index: "Action",  jsonmap: "action"  },
            {label: "Assignee",name: "assignee",index: "Assignee",jsonmap: "assignee"}
        ],
        sortname : "Title",
        sortorder : "desc",
        shrinkToFit: true,
        viewrecords: true,
        jsonReader : {
            repeatitems : false
        },
        onSelectRow: function(){
            alert(jQuery("#task-list-table").getGridParam('selrow'));
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jqGrid calling a controller action (returning JSON to jqGrid). When my
I have a jqGrid where I get data at once from server (java) in
I have a jqGrid in grouping mode that works fine on initial load. However,
I have a jqgrid with data loading from an xml stream (handled by django
I have a jqGrid that has add/edit dialogs with a form that's longer than
I have jqgrid and in that I have one custom navigation button to export
I have a jqgrid that's functionning very well. I was wondering is it possible
I have used jqGrid Treeview Adjacency model to display the hierarchy. Treeview works perfectly
I have a jqGrid script like that: jQuery(document).ready(function() { var startDate = $(#startDate).Val(); jQuery(#sandgrid).jqGrid({
I have a JqGrid that a i want to populate with Json data that

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.