We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Grid Column Read only

Thread ID:

Created:

Updated:

Platform:

Replies:

123809 Apr 22,2016 04:33 PM Apr 27,2016 05:19 AM ASP.NET Web Forms 6
loading
Tags: Grid
Pratheep
Asked On April 22, 2016 04:33 PM



Hi

It's possible make it grid column read only true?


                        <ej:Column Field="price" HeaderText="Unit Price"  TextAlign="Right" Width="80" Format="{0:C}" EditType="Numeric"> 
                                   <NumericEditOptions DecimalPlaces="2" ></NumericEditOptions>                                
                        </ej:Column> 

Thanks
Pratheep

Ragavee U S [Syncfusion]
Replied On April 25, 2016 03:24 AM

Hi Pratheep, 

Thanks for your interest in Syncfusion products. 

Yes. We can set a column as read-only by disabling the AllowEditing property of the grid columns. Please refer to the below online documentation for more information. 



For your convenience, we have created a sample in v14.1.0.41, which can be downloaded from the below location. 


Regards, 
Ragavee U S. 


Pratheep
Replied On April 25, 2016 02:57 PM

Hi ragavee

It's possible permanently that column read only true or disable because i'm going to fill data  from code behind ( only showing the price  - not allow to enter any amount by user )

<EditSettings  AllowEditing="True"></EditSettings>

<ej:Column Field="price" AllowEditing="False" />

this code allowing 1st time enter the price (i need user not allow enter the price any time ) 2nd working fine (read only) 

Thanks 

Pratheep

Ragavee U S [Syncfusion]
Replied On April 26, 2016 08:47 AM

Hi Pratheep, 

We are sorry that we are quite unclear on your reported query. Could you please explain if by “this code allowing 1st time enter the price”, you mean adding a new value or editing an existing value? 

From our records, we found that you have downloaded our v13.4.0.53 Volume. So we have ensured the reported issue in v13.4.0.53 and with our latest version v14.1.0.41. Also, in a sample shared by you in another forum, we found that you have used v13.1.0.21. We ensured in that version too and the issue is not reproducible at our end. 

So could you please share the below details? 

1.       Product version that you are currently working on. 
2.       Screenshot or video demo of the issue 
3.       If possible, please reproduce the issue in the sample provided in our earlier update. 
4.       Else, share the hosted link of your sample. 

Regards, 
Ragavee U S. 


Pratheep
Replied On April 26, 2016 11:29 PM

Hi 

Thanks for guide me 


Version - 14.1.0.41
attached sample Screenshot and attached test project ( check Freight column - add or edit that column i need read only )  

Thanks
Pratheep
 

Attachment: grid_read_only_9134e1d1.rar

Pratheep
Replied On April 26, 2016 11:31 PM

Hi

Version - 14.1.0.41

attached sample Screenshot 

Pratheep

Attachment: Readonly_d5236596.rar

Ragavee U S [Syncfusion]
Replied On April 27, 2016 05:19 AM

Hi Pratheep,  

We understand your requirement to disable “Freight” column even when adding. From your sample we found that you have referred v13.1.021 scripts and css files which is the cause of the issue. 
 
We have implemented “Disable columns on adding when column AllowEditing property is false” from v13.3.0.7. So we suggest you to use v13.3.0.7 or later versions for achieving your requirement. 
 
We have modified your sample with updated scripts and css files from v14.1.0.41, which can be downloaded from the below location. 
 
 
Regards,  
Ragavee U S.  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;