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

How can i disable editing of a column ?

8 Answers 3106 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tarun
Top achievements
Rank 1
Tarun asked on 30 Aug 2011, 08:03 PM
I have a GridViewComboBoxColumn. I dont want the users to be able to edit the data in the column. I am setting the IsEnabled to False but that does not work. Please advise

<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding Author}" ItemsSource="{Binding Authors}" SelectedValueMemberPath="Initials" DisplayMemberPath="LastName" Width="100" IsEnabled="False" />

8 Answers, 1 is accepted

Sort by
1
Maya
Telerik team
answered on 31 Aug 2011, 06:51 AM
Hi Tarun,

You need to set the IsReadOnly property of the column to "True".
 

Greetings,
Maya
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Siva Prakash
Top achievements
Rank 1
answered on 28 Dec 2011, 01:14 PM
Hi,

When I want to disable a column, I am making use of its IsReadOnly property and setting it to true. Its working fine. But I want to show the ReadOnly column as a grayed out one. How can I do this.

Regards
K Siva Prakash.
0
Vanya Pavlova
Telerik team
answered on 28 Dec 2011, 01:17 PM
Hello,

 
Please check this forum thread "Styling ReadOnly column". The same approach is applicable to WPF as well. 


Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
aries
Top achievements
Rank 1
answered on 11 Aug 2014, 07:22 PM
Hi
Can anyone help me with disabling a radgridcombobox from a cell in the radgridview
0
Dimitrina
Telerik team
answered on 13 Aug 2014, 08:05 AM
Hello,

Configuring GridViewComboBoxColumn with IsReadOnly="True" should disable editing in it. I am not sure I understand your question. Would you please clarify it?

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
aries
Top achievements
Rank 1
answered on 14 Aug 2014, 08:12 PM
I'm not able to reproduce the issue here....Is there anyway that I can do join.me with you inorder to show what im looking for ......................
0
aries
Top achievements
Rank 1
answered on 15 Aug 2014, 01:54 AM
please find the attached files for reference on fix needed. The xaml file is where changes are needed for the party column where a radgridcombobox column is assigned which has drop down values as groom and bride. All I need is to remove the combobox and replace it with groom in the first row column and bride in the second row column as shown In the screenshot .
0
Dimitrina
Telerik team
answered on 15 Aug 2014, 05:58 AM
Hi,

If you would like to change the ItemTemplate of the editor of GridViewComboBoxColumn, they you can apply a proper EditorStyle
It seems the file was not attached. You can open a new support ticket on the matter and attach it there.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Tarun
Top achievements
Rank 1
Answers by
Maya
Telerik team
Siva Prakash
Top achievements
Rank 1
Vanya Pavlova
Telerik team
aries
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or