By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,919 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,919 IT Pros & Developers. It's quick & easy.

Gridview (DetailView, et al) template field disable

P: n/a
I would like to put radio buttons (check boxes, drop down lists) in an
ItemTemplate field and have them disabled so the user is not
confused. However, I do not like simply disabling the controls since
this uses the standard Windows disable and "grays" everything out,
rendering them fairly unreadable. Has anyone found a workaround that
mimicks the old VB 6.0 "Locked" behavior that disallows any use of the
controls but leaves them in "enabled" look (colors,etc)? I think this
is something MS should consider for these .net controls in the
future...
Jan 18 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Howdy,

First of all it does not depend on Microsoft as all ASP.NET controls render
HTML and are parsed by the browser. Unfortunatelly, web srever control is
build from span so ypu cvan't use Readonly expando, but you could use HTML
server control:

<input runat="server" id="whatever" readOnly="readOnly" type="radio"
checked="true" />

hope it helps
--
Milosz
"Plissskin" wrote:
I would like to put radio buttons (check boxes, drop down lists) in an
ItemTemplate field and have them disabled so the user is not
confused. However, I do not like simply disabling the controls since
this uses the standard Windows disable and "grays" everything out,
rendering them fairly unreadable. Has anyone found a workaround that
mimicks the old VB 6.0 "Locked" behavior that disallows any use of the
controls but leaves them in "enabled" look (colors,etc)? I think this
is something MS should consider for these .net controls in the
future...
Jan 19 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.