about cursor movement in listgrid

Hi,

  1. In the listgrid, I need to change cursor position (from one cell to another cell) using Keyboard navigation keys.

  2. When a cursor moves from one cell to another I need to get the cell Value of which the cursor is focused. and I need to change perticular cell background color(not an entire row color).

how to achive these two ? please send sample code.

Hello Eswar,

Have you tried looking at the documentation for ListGrid?

how to put restriction on a particular cell in the listgrid.

Hi,
I need to put restriction on a particular cell in the listgrid.At present it is able to edit all the cells in the column. we do not want to edit certain cells in the column. (we are using canEdit:true to a particular column to edit. This will gives us to edit all the cells in the column. But i need to put restrictions for editing to some cells in the same column). Please guide me with the proper solution.

To control cell by cell editability, override canEditCell.

how to add values to the listgrid?

I’ll make an edit on a Cell. After changing the data in the cell(I am using canEditCell to control editability now it is working),I hit the up or down arrow to move out of the Cell. It is giving an error .I do not want to save my data when the cell is edited. At present I need to change data only in the listgrid cells. After hitting the save button it should save all the existing(changed and unchanged )data which is present in the listgrid.But it is not happening in my code.It is trying to save data every time when the Cell is being edited. Can you give suggession regarding this?.
I am using the getFetchDS to fetch the data.

It is giving error like this

this.getOperation(_1) has no properties

Set autoSaveEdits to false to disable all automatic saving.

As you say, you used getFetchDS to get the DataSource - as the documentation says, it is not capable of saving. To enable saving via a web server, you need to use the Round-Trip binding technique described under the WSDL Binding topic.

Problem with list grid

Requiremet:
We need to store or display the editted data in the listgrid.

Approatch:

for (i=0; i<data1.length; i++)
    {
    xwidth=xwidth+50;
            var x="C"+data1[i].AssignmentID+i;
        
            monname= getmonthname(data1[i].DateDue);
             termcol.push({name:x,align:"center",  width:50,title:data1[i].Title+"<Br>" +monname+"<Br>" +data1[i].MaxPoints});
          


}

getCategoryds=GradeService.getFetchDS("getsummary", null, { recordXPath:"//table" });
                               

 isc.ListGrid.create({ ID: "lgMnGb_main",
                            top:"18%",
                            left:"11%", 
                            headerHeight:40,
                            //width:xwidth,
                            width:950,
                            border:"0",
                            bodyBackgroundColor:"#808080",
                            backgroundColor:"#FFFFFF",  
                            //  backgroundColor:"brown",
                            leaveScrollbarGap:false,
                            //                            height:yhight,
                            height:515, 
                            canSort:false,
                            showSortArrow:"none", 
                            showFilterEditor:false, 
                            sortDirection:false,
                            autoDraw:true,
                            showAllRecords:true,
                            align:"center",
                            dataSource:getCategoryds,
                            fields:termcol,
                            baseStyle: "myBoxedGridCell",
                            showHeader:true,
                            editEvent: "click",
                            editByCell: true,
                            canEdit:true, //
                            autoSaveEdits:false,
)},

Error we r getting:
after editing a perticular cell, if the mouse is clicked to any other next cell it is not accepting the changes what we have made changes to the previous cell. It is givng following error and hangs up.

Error is :

this.getOperation(_1) has no properties.

I am facing this from one week. plesae get me the proper solution to ths.

The solution is described in the WSDL binding topic previously referenced. Are you having trouble seeing links in the forums?