Hi
There seems to be an Internet Explorer related bug in combination with some of the RadGrid Skins. If there is a border around the selected row (ie Gray, Telerik), any cell which is empty won't get any border. The Css is fine, everything is ok, only IE doesn't render it...
I encountered this in combination with a edit / delete column where the delete button / text gets invisible in editmode.
It's working in every other browser i tested. My workaround at the moment is to set the delete column to visible = false if the row is in edit mode but maybe there is some better solution to this. I tried to set the GridDeleteColumn.Text to but whitout success.
Thanks!
12 Answers, 1 is accepted
0
Hi Studach Joerg,
The observed glitch is a well-known limitation of Internet Explorer. RadGrid inserts strings to all its data cells by default, except for GridTemplateColumn cells. When using template columns, you can add a string at the end of the item template.
There are cases in which the datasource will flush the strings, e.g. if a certain field contains a space. In such cases you should check for empty cells in ItemDataBound and insert strings manually:
http://www.telerik.com/community/forums/aspnet/grid/empty-cells-gridlines-are-not-appearing.aspx
As for the delete function column - you should set the HeaderText to be , not Text.
Greetings,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
The observed glitch is a well-known limitation of Internet Explorer. RadGrid inserts strings to all its data cells by default, except for GridTemplateColumn cells. When using template columns, you can add a string at the end of the item template.
There are cases in which the datasource will flush the strings, e.g. if a certain field contains a space. In such cases you should check for empty cells in ItemDataBound and insert strings manually:
http://www.telerik.com/community/forums/aspnet/grid/empty-cells-gridlines-are-not-appearing.aspx
As for the delete function column - you should set the HeaderText to be , not Text.
Greetings,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kevin Schlegelmilch
Top achievements
Rank 1
answered on 12 Dec 2008, 12:41 AM
Here's a "hack" that I use.
<telerik:GridTemplateColumn HeaderText="Margin">
<ItemTemplate>
<asp:Label ID="lblMargin" runat="server" Text='<%# ((Eval("Margin") == null || Eval("Margin") == "") ? " " : Eval("Margin")) %>' />
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox skin="Office2007" ID="txtMargin" runat="server" Width="100px"
Text='<%# Eval("Margin") %>' >
</telerik:RadTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Margin">
<ItemTemplate>
<asp:Label ID="lblMargin" runat="server" Text='<%# ((Eval("Margin") == null || Eval("Margin") == "") ? " " : Eval("Margin")) %>' />
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox skin="Office2007" ID="txtMargin" runat="server" Width="100px"
Text='<%# Eval("Margin") %>' >
</telerik:RadTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
0
Hi Kevin,
Yup, this is a good one, because the string is not rendered unconditionally.
Greetings,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Yup, this is a good one, because the string is not rendered unconditionally.
Greetings,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
towpse
Top achievements
Rank 2
answered on 11 May 2009, 07:01 PM
I'm currently seeing this issue in firefox and not IE.
I am hiding two of three columns dynamically on the client. When the two are hidden the visible one does not span the width of the grid and the border is only applying to the visible cell since the other two of course are hidden.
IE seems to jive though.
edit: im using this method to show and hide grid columns:
grid.hideColumn(Col.get_element().cellIndex);
grid.showColumn(Col.get_element().cellIndex);
Additionally I am also grouping the rows by one of the column values.
any thoughts?
cheers
I am hiding two of three columns dynamically on the client. When the two are hidden the visible one does not span the width of the grid and the border is only applying to the visible cell since the other two of course are hidden.
IE seems to jive though.
edit: im using this method to show and hide grid columns:
grid.hideColumn(Col.get_element().cellIndex);
grid.showColumn(Col.get_element().cellIndex);
Additionally I am also grouping the rows by one of the column values.
any thoughts?
cheers
0
Hello towps,
Please review the reply I provided in this forum thread:
http://www.telerik.com/community/forums/aspnet/grid/grid-border-problem-in-skin-office2007.aspx
Best regards,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please review the reply I provided in this forum thread:
http://www.telerik.com/community/forums/aspnet/grid/grid-border-problem-in-skin-office2007.aspx
Best regards,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Hung Ha
Top achievements
Rank 1
answered on 30 Dec 2010, 06:34 PM
Hi,
I used the same suggested technique
<asp:label ID="comments" runat="server" Text='<%# ((Eval("comments") = = Null || Eval("comments") = = "") ? " " : Eval("comments")) %>' />
but it raise an error:
BC30201: Expression expected
Do you have any idea about this? I am using visual studio 10, language VB, framework 4.0
I used the same suggested technique
<asp:label ID="comments" runat="server" Text='<%# ((Eval("comments") = = Null || Eval("comments") = = "") ? " " : Eval("comments")) %>' />
but it raise an error:
BC30201: Expression expected
Do you have any idea about this? I am using visual studio 10, language VB, framework 4.0
0
Shinu
Top achievements
Rank 2
answered on 31 Dec 2010, 07:55 AM
Hello,
I am not familiar with VB, but I can point you to use "IIF" condition as suggested in following forum.
Display Image or data in cell based on value returned from database
Happy new year..!
-Shinu.
I am not familiar with VB, but I can point you to use "IIF" condition as suggested in following forum.
Display Image or data in cell based on value returned from database
Happy new year..!
-Shinu.
0
Kevin Schlegelmilch
Top achievements
Rank 1
answered on 31 Dec 2010, 05:47 PM
http://www.developerfusion.com/tools/convert/csharp-to-vb/
<asp:label ID="comments" runat="server" Text='<%# (If((Eval("Margin") Is Nothing OrElse Eval("Margin") = ""), " ", Eval("Margin")))' />
0
Jeff
Top achievements
Rank 1
answered on 24 Apr 2014, 12:50 AM
Link provided returns a 404 error, please fix.
0
Dan
Top achievements
Rank 1
answered on 22 Jan 2015, 08:04 PM
Does this still apply?
[quote]Dimo said: RadGrid inserts strings to all its data cells by default,[/quote]
An older version of Telerik.Web.UI.dll (version 2012.2.724.35) seems to insert the 's fine.
When upgrading to Telerik.Web.UI.dll version 2014.3.1209.35 they do not seem to get inserted.
[quote]Dimo said: RadGrid inserts strings to all its data cells by default,[/quote]
An older version of Telerik.Web.UI.dll (version 2012.2.724.35) seems to insert the 's fine.
When upgrading to Telerik.Web.UI.dll version 2014.3.1209.35 they do not seem to get inserted.
0
Dan
Top achievements
Rank 1
answered on 22 Jan 2015, 09:10 PM
<script type=
"text/javascript"
>
$(document).ready(
function
() {
//http://www.telerik.com/forums/document-ready-and-radcontrol-s-availability#2ywVOXdYPUSgz9Sv0jVRsw
Sys.Application.add_load(
function
loadHandler() {
$(
".RadGrid TD:empty"
).append(
' '
);
});
});
</script>
This is a jQuery option to fix this problem and works through paging, references listed.. any less hacky way to fix the new version of RadGrid?
0
Creationator
Top achievements
Rank 1
answered on 02 Aug 2016, 06:05 PM
Hey, does anyone know how to solve this problem I am having (See image below). The issues are:
1. In the red-highlighted section, when I click export to pdf everything shows correctly. However if I export to excel I get blank fields (again see image below). Why is this?!?!?!
2. In the orange-highlighted section, the field is suppose to be empty, so the excel is actually displaying the grid correctly. But the PDF is displaying the value "null". Why is that?!?!