When I finished work Tuesday, these checkboxes displayed. When I next started work on the grid Thursday, they did not.
I cannot figure out why they do not display.
Points On This:
1. When I display the page containing the grid in FireFox, the checkboxes display..
2. When I use View Source to save the HTML of the page that is not displaying the checkboxes and then I open that page in IE8, the checkboxes display.
3. In the debugger in the code behind, the visible property of the asp:checkbox is true.
4. I put an asp:textbox in the same EditItemTemplate as the asp:checkbox and the asp:textbox displays.
5. In the debugger on the client, I can see that the width of the asp:checkbox is set to 0. I tried manually changing the width in the debugger - it seemed to work but when I rechecked the width, it was still 0.
The HTML sent to the browser for the two columns is the following:
<
td
style
=
"width:80px;"
>
<
input
id
=
"RadGrid1_ctl00_ctl04_ctl00"
type
=
"checkbox"
name
=
"RadGrid1$ctl00$ctl04$ctl00"
onclick
=
"SelectDeselectRow(0, this);"
/>
</
td
>
<
td
style
=
"width:80px;"
>
<
span
style
=
"display:inline-block;width:50px;"
>
<
input
id
=
"RadGrid1_ctl00_ctl04_chkSelected_2"
type
=
"checkbox"
name
=
"RadGrid1$ctl00$ctl04$chkSelected_2"
/>
</
span
>
<
input
name
=
"RadGrid1$ctl00$ctl04$txtSelected_2"
type
=
"text"
value
=
"1"
id
=
"RadGrid1_ctl00_ctl04_txtSelected_2"
onclick
=
"SelectDeselectRow_2(0);"
style
=
"width:30px;"
/>
</
td
>
The best idea I have on what is happening is that there a script (generated by the RadGrid or by ASP.Net) that runs after the page is loaded that sets the width to 0, causing the checkbox to not be visible. And that this script only runs in IE8. I have looked at the script at the end of the page (which I believe is where the registered scripts go) and do not see anything that looks suspicious.
Anyone have any ideas on why the checkboxes do not display?
Thanks,
John