This is a migrated thread and some comments may be shown as answers.

Checkboxes Do Not Display In IE8

2 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 19 May 2011, 10:57 PM
I have a simple RadGrid with a GridCheckBoxColumn and a GridTemplateColumn with an asp:CheckBox in the EditItemTemplate.  So every row has two checkboxes on it.

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

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 24 May 2011, 02:00 PM
Hello John,

The issue you have described seems quite odd to me. Would you mind opening a formal support ticket and sending me a sample runnable page that demonstrates the problem? This way I will be able to debug it locally and provide you with more to the point resolution.

Greetings,
Martin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
John
Top achievements
Rank 1
answered on 24 May 2011, 09:47 PM
This issue went away on its own when I turned on the PC Friday.  The checkboxes showed up again.

It wasn't just a reboot issue, as I had tried that.

I do not know what I could have changed to cause this to occur and then go away.

At this point, if it does not come back, I am going to let it go.

Thanks.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Martin
Telerik team
John
Top achievements
Rank 1
Share this question
or