PDA

View Full Version : Edit Some Columns of Grid



joefox
30 Jan 2010, 7:26 PM
Edit Some Columns of Grid

Quick question, is there a way to limit what column in a grid can be edited by looking at if a column is blank?

The reason I ask this is becuase, i want to create an editable grid, however there will be certin rows that they can edit all parts of the data in the row, however there are other rows where i only want them to be able to edit 2 or 3 of the columns of that row...

30 Jan 2010, 7:56 PM
You can return false in a "beforeedit" event handler. look at the API for details.

joefox
30 Jan 2010, 8:07 PM
You can return false in a "beforeedit" event handler. look at the API for details.

Thanks for the reply, just one more thing.

So on these rows that can only have certin columns edited, its there a way to also change the values shown in the edit box's?

For example, if i have a row that can be edited, i can how a select box with 1,2,3,4,5, etc. and the row that can be edited, just show 2 and thats it?