Hi
I am exporting a grid to pdf following various examples, and I am using the RadGrid_ItemCreated event successfully to have alternating row styles but I haven't found any way to set the font size.
Existing code is :
Protected Sub FormatGridItem(item As GridItem)
If TypeOf item Is GridHeaderItem Then
For Each cell As TableCell In item.Cells
cell.Style("font-family") = "Arial"
cell.Style("text-align") = "left"
cell.Style("vertical-align") = "middle"
Next
End If
' Dim dataItems As GridItem() = View.GetItems(GridItemType.Item)
If TypeOf item Is GridDataItem Then
item.Style("Font-family") = "Arial"
Select Case item.ItemType
Case GridItemType.Item
item.Style("background-color") = "#DDDDDD"
item.Style("Font-size") = "10pt" ' no effect
Exit Select
Case GridItemType.AlternatingItem
item.Style("background-color") = "#FFFFFF"
item.Style("Font-size") = "10pt" ' no effect
Exit Select
Case GridItemType.Header
item.Font.Bold = True
Exit Select
Case GridItemType.Footer
item.Style("background-color") = "#FFFFFF"
Exit Select
End Select
End If
End Sub
how can I set the font size? I have tried using px, pt, and em but it does not change.
Please advise. I haven't seen any code on this; maybe it is not possible or has to be done somewhere else entirely.
Thanks
Clive
<
script
type
=
"text/javascript"
>
window.onresize = function()
{
var rotatorElement = document.getElementById("ContentPlaceHolder1_RadRotator1" + "_Div");
rotatorElement.RadResize();
}
</
script
>
HTML5 deprecates the summary attribute on a <table> element. So I want to assign an empty text to that attribute.
How can I do that?
Your help is appreciated.
I have a RadMenu within a RadPanelBar.
(The actual arrangement is RadPanelBar-Items-RadPanelItem-ContentTemplate and then a set of Bootstrapped Divs containing various controls.)
The problem is that, unlike the RadComboBoxes within the RadPanelBar, the RadMenu will not expand outside the RadPanelBar area. Much of the fairly long menu is not visible and not accessible.
Suggestions?
Dear Support,
I am using the RadSpell control and linking it to a RadTextbox. That part works great.
<telerik:RadSpell RenderMode="Lightweight" Skin="Metro" ID="RadSpell1" runat="server" ButtonType="ImageButton" ControlToCheck="txtDescription" SpellCheckProvider="PhoneticProvider" SupportedLanguages="en-US,English" OnClientDialogClosed="SpellCheckDone" />
However, the font size and font name (Times Roman) in the popup dialog do not match the rest of my screen. I've tried setting the CssClass for the control, the font name and font size properties, and everything else I can think of but with no success. Can you provide a CSS example (or other mechanism) by which I can set the font and font size of the labels and buttons within the dialog. I attached a screenshot with arrows pointing to the text components I am referring to.
Thanks,
Mike
Hi,
I'm trying to add a event to a RadPanelBar control in a external js file. But it dosen't work. "Event not found/not known"
In ASPX File:
<script type="text/javascript" src="../Docs.js"></script>
<telerik:RadPanelBar ID="pbResult" ClientID="pbResult" runat="server" ExpandMode="SingleExpandedItem" RenderMode="Lightweight" AllowCollapseAllItems="True" Width="600px" OnItemClick="pbResult_OnItemClick" OnItemDataBound="pbResult_OnItemDataBound" Skin="DOCS" EnableEmbeddedSkins="false"></telerik:RadPanelBar>
External JS File:
require(['jquery'], function () {
$("[ClientID='pbResult']").itemClicked(function () {
ShowLoadingDialog();
});
});
I also tryed add_itemClicked method but also not working
I am attempting to determine the JQuery version and JQuery UI version that is used in Web UI 2013.3.1114.