Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

C#: add a non-editable field telerik

Posted on 2015-01-19
3
Medium Priority
?
116 Views
Last Modified: 2015-01-28
i want to add a non-editable field box in a telerik form. I have the following.

 <telerik:GridBoundColumn DataField="code" EditFormColumnIndex="0" HeaderText="Code" />
 
 however, this displays an editable box. if i do readOnly. it disappears all together
 
  <telerik:GridBoundColumn DataField="code" EditFormColumnIndex="0" HeaderText="Code" ReadOnly="true" />
0
Comment
Question by:badtz7229
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Expert Comment

by:Easwaran Paramasivam
ID: 40559774
Remove  EditFormColumnIndex="0"
0
 

Accepted Solution

by:
badtz7229 earned 0 total points
ID: 40559874
@Easwaran Paramasivam : that didn't work. it still is editable.

i did find a solution:
in my _ItemDataBound function
            GridEditFormItem editFormItem = (GridEditFormItem)e.Item;
            TextBox TextBox1 = (TextBox)editFormItem["code"].Controls[0];
            TextBox1.Enabled = false;
0
 

Author Closing Comment

by:badtz7229
ID: 40574833
it resolved issue for me.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question