Announcement Announcement Module
Collapse
No announcement yet.
jqgrid json object array Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jqgrid json object array

    Hello... 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...
    Code:
    @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!!!

  • #2
    I am very sorry to post this thread here.... Apologies!!!

    Comment

    Working...
    X