This is a migrated thread and some comments may be shown as answers.

Allow only some columns as editable

2 Answers 837 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Howard
Top achievements
Rank 1
Howard asked on 21 May 2010, 06:50 PM
1. GridView with mixture of text, decimal and combobox columns. I want to allow only combobox as editable, the rest are for display only. I don't see a property to override the default for the entire grid. Do I really have to handle an edit event and cancel if it's not a column where I wish to allow changes? If so, what's the event? If not, how can I set a specific column to allow edit or set other columns to disallow edit?

2. Is there an IsDirty for the entire grid so I can prompt the user to save? Is there an IsDirty for a column and/or a row so I can iterate through and write only the delta's unbound via an SQL stored proc? I would prefer to not have to track changes in my own code.

3. It doesn't seem like GridView likes to update the display properly from a background thread. Sometimes there's data, sometimes not, and sometimes not all the data. I don't want to suspend the UI while I'm loading data. I am running unbound.

Thanks

2 Answers, 1 is accepted

Sort by
0
Cherian George
Top achievements
Rank 1
answered on 24 May 2010, 05:51 PM

GridView with mixture of text, decimal and combobox columns. I want to allow only combobox as editable, the rest are for display only. I don't see a property to override the default for the entire grid. Do I really have to handle an edit event and cancel if it's not a column where I wish to allow changes? If so, what's the event? If not, how can I set a specific column to allow edit or set other columns to disallow edit?

Did you try making the Column Read Only - That worked for me
0
Alexander
Telerik team
answered on 27 May 2010, 07:07 AM
Hello Cherian George,

You can find the answer to your question in the ticket that you have opened from the other account that you have. Still, for the reference of the other Telerik users that might be interested in the same topic, I am pasting the answers below:

1. You can set the ReadOnly property of the column to true or you can handle CellBeginEdit event and cancel it.

2. Currently, we do not support dirty states in RadGridView. We plan to add this functionality in one of our upcoming releases. Nevertheless, when using a DataTable as data source you can check the RowState property of the DataRow directly.

3. RadGridView is not optimized to handle the cases where the data is added in a background thread. However, you can still prepare the data in the background thread and set the DataSource property when it is ready.

Best wishes,
Alexander
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Howard
Top achievements
Rank 1
Answers by
Cherian George
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or