View Full Version : load grid according to particular Id

26 Nov 2013, 1:27 AM

I want to get the column value from taskstore and pass it to the assignmentStore as parameter.So how can i get the particular column that i can pass to proxy as parameter.

As here in App.js

var g = Ext.create("App.view.GanttPanel", {
height: 400,
width: 1000,
margin: '66px 0 0 278px',
renderTo: Ext.getBody(),
startDate: start,
endDate: end,
taskStore: taskStore, (Here want to get the value of particular column for eg: taskstore.FunctionId it is custom column in TaskModel want to pass its value to Assignment Controller get method)

assignmentStore: Ext.create("App.store.Assignment", {
resourceStore: resourceStore,
autoLoad: true,
proxy: {
extraParams : { foo: "bar" },
method: 'GET',
type: 'ajax',
api: {
read: 'Assignments/Get',
create: 'Assignments/Create',
destroy: 'Assignments/Delete'
reader: {
type: 'json',
root: 'assignmentdata'
writer: {
root: 'assignmentdata',
type: 'json',
encode: true,
allowSingle: false
// assignmentStore: Ext.create("App.store.Assignment", { resourceStore: resourceStore }),Id
//assignmentStore: Ext.create("App.store.Assignment", {
// username : "john",
// password : "123"
// dependencyStore: dependencyStore,
resourceStore: resourceStore

Thanks in advance

26 Nov 2013, 8:11 AM
Is your view.GanttPanel based on a grid? Perhaps this will help: