Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
917 views

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

 

Clive Hoggar
Top achievements
Rank 1
 answered on 10 Feb 2017
8 answers
190 views
Greetings,

I'm currently trying to resize this control on browser resize.
I tried to look on the forums before asking. I found a Javascript function ( which is not working unfortunately).

    <script type="text/javascript">
 
window.onresize = function()    
{    
    var rotatorElement = document.getElementById("ContentPlaceHolder1_RadRotator1" + "_Div");    
    rotatorElement.RadResize(); 
}
 
</script>

Error : RadResize undefined.

Thanks in advance for your help

David
Top achievements
Rank 2
 answered on 10 Feb 2017
7 answers
321 views
I have a grid I made and users can export it into pdf via a button.
what they want is to select a number of users that each make their own pdf and to just export all their grids into pdf's into a zip.

is there any way to do this?

I could possibly make each grid on the page at one time but how to export them all at once into separate pdf's
Eyup
Telerik team
 answered on 10 Feb 2017
17 answers
2.6K+ views
I've just run the upgrade wizard from an early Q2 2011 to Q3 2011 and got the expected error in respect of skins now being outside the web.ui.dll file.

I am however having trouble finding the skins.dll file to reference  - I've searched all my hard disks to no avail.  It's certainly not in the project /bin folder either.  I then looked for the location that the installer puts *any* of the Q3 2011 telerik files and couldn't find a directory - I presume it just inserts the relevant files as necessary in a project rather than store in /program files or somesuch.

How should I go about getting the skins.dll so that I can put it in my /bin and reference it in my project?

Thanks
Rich.
baha
Top achievements
Rank 1
 answered on 10 Feb 2017
1 answer
84 views

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.

Eyup
Telerik team
 answered on 10 Feb 2017
2 answers
729 views
Hi,

We've got some serious problems with randomly "Request timed out" error in some cases on our web application during requesting Telerik.Web.UI.WebResource.axd.

In some circumstances the request to Telerik.Web.UI.WebResource.axd is processed more than 2 minutes, in each case (when hit the page with Telerik on it) and it times out. Due to that, CPU Load increase to 100% (there are many requests to Telerik.Web.UI.WebResource.axd which waiting to be handled), and the effect is massively disaster - Users cannot use the application because it's overloaded.

In such situation - IIS Reset sometimes help, sometimes not.

It occurs 4 times in last month, and this issue is taking about 2-4 hours every time when it occur. After that - the request to Telerik.Web.UI.WebResource.axd is processed normally. I'm not sure if the traffic has something to do with it, because it occurred once after 9PM (the biggest traffic is approximately during the day).

What's the most funny thing - this request which is in some circumstances "Time Out" weight 12,4 KB, and contains Telerik controls CSS styles.

In attachment - some pictures with errors. We're using the Telerik version: 2013.2.611.40
I would be grateful for any help, because we're running out of ideas, and yesterday this error blocked our application for all day :(

Greetings,
Marcin
Pawan
Top achievements
Rank 1
 answered on 10 Feb 2017
1 answer
49 views

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?

Boris
Top achievements
Rank 1
 answered on 10 Feb 2017
2 answers
95 views

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

michael
Top achievements
Rank 1
 answered on 10 Feb 2017
1 answer
62 views

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

Thomas
Top achievements
Rank 1
 answered on 10 Feb 2017
2 answers
132 views

I am attempting to determine the JQuery version and JQuery UI version that is used in Web UI 2013.3.1114.

Vessy
Telerik team
 answered on 10 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?