Solved

C#: add a non-editable field telerik

Posted on 2015-01-19
3
83 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
  • 2
3 Comments
 
LVL 16

Expert Comment

by:Easwaran Paramasivam
Comment Utility
Remove  EditFormColumnIndex="0"
0
 

Accepted Solution

by:
badtz7229 earned 0 total points
Comment Utility
@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
Comment Utility
it resolved issue for me.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now