Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
136 views
Hi,
Can anyone please help with the following issues. I am using file explorer and trying to upload mp3 and wmv files but getting error. the error is "Connection was reset, The connection to the server was reset while page is loading". I am also trying to make seletect multiple files together. Is it possible? and one more thing like I am trying to achieve to upload zip file with multiple contents and after upload unzip all contents. for unzip the file I am using DotNetZip library. How can I do that in server side. please find my demo project. If anyone can help me it would be really appreciated.
Click to download sample code
Dobromir
Telerik team
 answered on 24 Feb 2011
1 answer
103 views
Hi Techies,

When i am trying to export my TelerikGrid to PDF, I am getting the following error, But its generating EXCEL report with out any problem.

System.NullReferenceException: Object reference not set to an instance of an object.
  at Telerik.Web.Apoc.Render.Pdf.Fonts.Type2CIDSubsetFont.get_WArray()
  at Telerik.Web.Apoc.Pdf.PdfFontCreator.CreateCIDFont(String pdfFontID, Font font, CIDFont cidFont)
  at Telerik.Web.Apoc.Pdf.PdfFontCreator.MakeFont(String pdfFontID, Font font)
  at Telerik.Web.Apoc.Pdf.FontSetup.AddToResources(PdfFontCreator fontCreator, PdfResources resources)
  at Telerik.Web.Apoc.Render.Pdf.PdfRenderer.StopRenderer()
  at Telerik.Web.Apoc.StreamRenderer.StopRenderer()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)


Can any one please help me on this?

Thanks
Sreeni Pavalla
Daniel
Telerik team
 answered on 24 Feb 2011
1 answer
88 views
Hi ,

 I am getting the following error when i am trying to export Telerik grid to PDF

"Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
An error occurred while parsing EntityName "

any suggestions on this?

Thanks
Sreeni Pavalla
Daniel
Telerik team
 answered on 24 Feb 2011
6 answers
1.1K+ views
Hi,
We bought Telerik ASP.NET controls, and I'm now trying to use a RadTextBox in a stretchable layout. I set RadTextBox's Width to
new Unit(100, UnitType.Percentage) 
but in runtime I see that width is dynamically maintained by Telerik's scripts directly on <input> using "style" attribute and is always set to exact pixel value. And Telerik's scripts make the width visually correct (logically 100% in a layout) only on initial page load. If I resize browser window after page is loaded, width of RadTextBox is not updated and ruins layout.

From forum posts I see that Width handling is a known problem here. But since we are bound by contract terms to deliver application by a fixed deadline, I need at least know when the bug will be fixed by Telerik and released to customers.

Can you give us estimates on when the Width fix will be released?
Leon Aiossa
Top achievements
Rank 1
 answered on 24 Feb 2011
3 answers
595 views
Hello,

When I try to position the RadButton with to the right with:

 

.RadButton_Right,
  
.RadButton_Right .rbDecorated
  
{
  
position: absolute;
  
width: auto;
  
right: 0px; 
  
}

it doesn't seems working, but it work fines with RadTextBox or other Asp Button, Asp TextBox, I wonder what's the proper way to do it?
Because I want to have few buttons on the left, and a another Button on the right...
Thanks

King Chan
Top achievements
Rank 1
 answered on 24 Feb 2011
5 answers
129 views
Hello there, I just started using this control, and love it. I just have a few questions that I haven't been able to find through the demos yet:

  1. Is it possible to disable the timeline view all together, so that only day, week and monthly views are available ?

  2. Is it possible to add line breaks to the appointment subject text ?, I tried adding \n and/or <br> to the subject string, but they are not rendered as line breaks.

  3. In the monthly view, the appointment subject is trimmed because the appointment boxes are too small. I need the boxes to expand to accommodate large appointment subject strings, even if it means expanding the calendar row as well.

  4. I am wondering if there is an easy way to programmatically detect appointment conflicts ?
Any help/pointers would be greatly appreciated, thank you very much !

Max
Max Figueredo
Top achievements
Rank 1
 answered on 24 Feb 2011
7 answers
888 views
Hi,

I have a RadComboBox with AutoPostBack set to true, but when i change te selection with javascript, it makes a post to the server, I'm looking for a way to (temporary) disable this behaviour. Is this possible?

I'd rather not implement clientside combobox events, which would cancel the selectionchanged event.

Below a bit of code.
var field = $find(controlid);
if (field) {
    field.disableEvents();
    var comboItem = new Telerik.Web.UI.RadComboBoxItem();
    comboItem.set_text("val");
    comboItem.set_value("val");
    field.set_enabled(true);
    field.trackChanges();
    field.get_items().clear();
    field.get_items().add(comboItem);
    comboItem.select();
    field.disable();
    field.commitChanges();
    field.enableEvents()
}


Jeanne Kornkven
Top achievements
Rank 1
 answered on 24 Feb 2011
5 answers
154 views
hi
According to your example in the grid filtering for country field which is a dropdown list. Is it possible to have a checkbox in the dropdownlist show that users can selectively check on those items for filtering. Is it possible? Thanks

<custom:MyCustomFilteringColumn DataField="Country" FilterControlWidth="180px" HeaderText="Custom TemplateColumn Country">
Pavlina
Telerik team
 answered on 24 Feb 2011
5 answers
310 views
Hi,

I have a RadListBox with a filter where I set the visibility of items based on the filter, however when I do a postback on SelectedIndexChanged on the RadListBox it loses the visibility set on the list items so that invisible items become visible again after the postback. It's in a user control so I don't have access to the body onload to filter the list again. I have tried onload on other controls but I get an error and I'm not sure why. Does anyone have a suggestion as to how I can keep these list items invisible after a postback?

Thanks.
Dimitar Terziev
Telerik team
 answered on 24 Feb 2011
3 answers
147 views
Hi,

Is it possible to transfer templated item between ListBoxes using the built in AllowTransfer feature..?  I have tried using client side and also with AutoPostBackOnTransfer="true".

I am using version 2010.3.1109.40 of Telerik.Web.UI.dll

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server" />
        <telerik:RadListBox ID="rlbSource" runat="server" AllowTransfer="true" AutoPostBackOnTransfer="true"
            TransferToID="rlbDestination" Width="400" Height="200" OnTransferred="rlbSource_Transferred">
            <ItemTemplate>
                <table>
                    <tr>
                        <td><%# Eval("RoleName") %></td>
                        <td><%# Eval("UserName") %></td>
                        <td><%# Eval("FirstName") %></td>
                        <td><%# Eval("LastName") %></td>
                    </tr>
                </table>
            </ItemTemplate>
        </telerik:RadListBox>
            
        <telerik:RadListBox ID="rlbDestination" runat="server" Width="300" Height="200">
            <ItemTemplate>
                <table>
                    <tr>
                        <td><%# Eval("UserName") %></td>
                        <td><%# Eval("FirstName") %></td>
                        <td><%# Eval("LastName") %></td>
                    </tr>
                </table>
            </ItemTemplate>
        </telerik:RadListBox>
    </div>
    </form>
</body>
</html>

using System;
using System.Collections.Generic;
using Telerik.Web.UI;
 
public partial class _Default : System.Web.UI.Page
{
    public class Employee
    {
        public string RoleName { get; set; }
        public string UserName { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        rlbSource.DataSource = new List<Employee>
        {
            new Employee { RoleName = "Administrator", UserName = "Jack", FirstName = "Jack", LastName = "Pick" },
            new Employee { RoleName = "POS User", UserName = "Michael", FirstName = "Michael", LastName = "Black" },
            new Employee { RoleName = "Store Manager", UserName = "David", FirstName = "David", LastName = "Frontier" }
        };
        rlbSource.DataBind();
    }
 
    protected void rlbSource_Transferred(object sender, RadListBoxTransferredEventArgs e)
    {
        foreach (RadListBoxItem item in e.Items)
        {
            item.DataBind();
        }
    }
}


If it's possible to do entirely client side (without postback) that would be best, however I really just need it to work, so if it has to be done server side then that is fine.

Kind regards,
Jack
Dimitar Terziev
Telerik team
 answered on 24 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?