Login Register

row

insert a new row instead of append

The newItem function only permits to append a new row to the grid.
Is there a way to insert a new row at a specific position?

Thanks in advance

Get index of current Row object?

Hello everyone,

I'm hoping someone can help with what I think is a simple problem. I just can't find the documentation to answer this. I'm using Dojo 1.1.1 and using a Grid object. I have the following code:

var selections = library.grid.selection.getSelected();
var row;
               
row = library.grid.model.getRow(selections[0]);
alert(row.rowIndex);

How to make some rows read-only (non-editable) depending upon some value

But, depending upon some value in a row, I want to make the row non-editable.
How to do this?

Regards,
Ankit

Incorrect values of checkboxes when dnd-ing rows with IE

Hello, i am new to Dojo and i've got a problem with Drag&Drop in Internet Explorer.

My problem doesn't appear in Firefox, just with IE.

I want to reorder rows in a table, and these rows contain checkboxes.
The problem is that when I drag&drop the rows, values of the dragged checkbox is reset to False,whatever is the real value of the checkbox. (as i can see in the console)
If i just check or uncheck the box without dragging it, there is no problem.

I'm not sure it's clear, i join a part of my code :


script language="javascript" type="text/javascript"

How to get Selected row form the grid?

Hi Everyone
Dear friends a'm newbee to dojo and i have two questions

1. How can i get data from selected row in the grid. i need to pass it (data) to custom editor
2. I have a column "Expired Date" in the row. I new to check it and if date is expired i need to make whole row in bold.

maybe someone can help me?

in anyway thank you for you time.

Syndicate content