Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hi All,

I have radchart with multiple series and one series is adopt with bar chart and second series is adopt with line chart. line chart series coming from second Y-Axis. My need is from this line chart should not be display behind bar chart.

I need to display line chart above bar chart. But in default barchart overrides line chart.

How to solve this?

Thanks in Advance..
Maria Ilieva
Telerik team
 answered on 04 Dec 2012
1 answer
128 views
Hi Telerik team

I have a RadGrid with the a GridButtonColumn like below

<telerik:GridButtonColumn UniqueName="DeliveryNote" CommandName="DeliveryNote"
    ImageUrl="~/Content/Images/16/notes.png" ButtonType="ImageButton" Text="<%$ Resources:Resource, GridItemEditDeliveryNoteToolTip %>">
</telerik:GridButtonColumn>

CodeBehind:
protected void RadGridDeliveryNotesOnItemCommand(object sender, GridCommandEventArgs e)
{
    var gridDataItem = e.Item as GridDataItem;
    if (!ReferenceEquals(gridDataItem, null))
    {
        var idDeliveryNote = Convert.ToInt32(gridDataItem.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Id"]);
        if (e.CommandName == RadGrid.DeleteCommandName)
        {
             BL.Domain.DeliveryNote.Instance.DeleteById(idDeliveryNote);
        }
 
        if (e.CommandName == "DeliveryNote")
        {
            Response.Redirect(string.Format("Processor.ashx?idDeliveryNote={0}", idDeliveryNote), true);
        }
    }
}


.ashx

public class Processor : IHttpHandler
{
    public void ProcessRequest(HttpContext context)
    {
        var idDeliveryNote = context.Request.ProcessQueryString("idDeliveryNote");
 
        var report = new Reports.DeliveryNote();
        report.ReportParameters["IdDeliveryNote"].Value = idDeliveryNote;
 
        context.Response.Clear();
        context.Response.Buffer = true;
        context.Response.ClearHeaders();
        context.Response.ClearContent();
 
        var reportProcessor = new ReportProcessor();
 
        var pdfResult = reportProcessor.RenderReport("PDF", report, null);
        var file = pdfResult.DocumentBytes;
 
        context.Response.ContentType = "application/pdf";
 
        context.Response.Charset = string.Empty;
        context.Response.AddHeader("Content-Length", file.Length.ToString(CultureInfo.CurrentCulture));
        var attachment = string.Format("attachment; filename={0}.{1}", "file-name", "pdf");
        context.Response.AddHeader("content-disposition", attachment);
 
        var bytes = file;
        context.Response.BinaryWrite(bytes);
        context.Response.End();
    }
}


The problem is, The loading pannel over RadGrid, still running after the file exported.
Can you help me with this issue.

Thanks
Giuliano


Maria Ilieva
Telerik team
 answered on 04 Dec 2012
1 answer
123 views
Hi,

I am getting an object reference error for the below mentioned highlighted line of code

radFilter.RootGroup.Expressions.Clear();
radFilter.LoadSettings(Session["state"].ToString());
radFilter.RecreateControl();

On debugging i found out that neither the radFilter is null and nor the value of Session["state"] is null. Still i get the object reference error, this happens only in certain scenarios which we are unable to understand. Since both the objects are not null i am assuming that when the control tries to implement load settings for radfilter, the LoadSettings method throws up an error.

Kindly let me know if there is a workaround for such an issue

Thanks and Regards,
Abhijit Narvekar
Antonio Stoilkov
Telerik team
 answered on 04 Dec 2012
1 answer
388 views
HI,
I have the rad grid column for which i want to set the U.S currency format. How to achieve this?
<telerik:GridTemplateColumn DataField="UnitPrice" HeaderText="Unit Price" UniqueName="UnitPrice" Visible="true">
                            <InsertItemTemplate>
                                 <telerik:RadTextBox ID="RadtxtUnitPrice" runat="server" Text='<%# Bind("UnitPrice") %>' >
                                </telerik:RadTextBox>
                            </InsertItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadTextBox ID="RadtxtUnitPrice" runat="server" Text='<%# Eval("UnitPrice") %>' >
                                </telerik:RadTextBox>
                            </EditItemTemplate>
                             <ItemTemplate >
                            <telerik:RadTextBox ID="RadtxtUnitPrice" ReadOnly="true" runat="server" Text='<%# Eval("UnitPrice") %>' />
                            </ItemTemplate>  
                        </telerik:GridTemplateColumn>
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Dec 2012
1 answer
77 views
Hi,

Has anyone tried to implement radprogressarea on radasyncupload as a TOOLTIP? so when files are being uploaded, I want to mouse over it and get additional details as to estimated time of completion, rate of upload etc.

Can someone point me in the right direction as to how to get started or provide an example? I think this will be a cool thing to have inbuilt by Telerik as well.
Princy
Top achievements
Rank 2
 answered on 04 Dec 2012
1 answer
59 views
Hi,
i've into web page a radupload...now in my vb code:

Protected Sub Imgbtnesci_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtnesci.Click
    Me.ClientScript.RegisterStartupScript(Me.GetType, "", "Close_and_load();", True)
End Sub
 
Protected Sub CustomValidator1_ServerValidate(source As Object, e As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate
    e.IsValid = (RadUpload1.InvalidFiles.Count = 0)
End Sub
 
Protected _image As String
Private Sub Imgbtnupload_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtnupload.Click
    If RadUpload1.UploadedFiles.Count > 0 Then
        _image = "/public/image_profile/" & RadUpload1.UploadedFiles.Item(0).FileName
        Label2.Text = "/public/image_profile/" & RadUpload1.UploadedFiles.Item(0).FileName
    Else
        Label2.Visible = True
    End If
End Sub
 
function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}
function Close_and_load() {
       GetRadWindow().close();
}

when i click on button imgbtnesci, the upload is also, however you need to start only if I click on the button Imgbtnload...
how do it?

Bye
Plamen
Telerik team
 answered on 04 Dec 2012
1 answer
66 views
i used RadAsyncUpload Control in my code and its working fine with all browsers using windows 7 but when i tested this on windows xp using IE8 browser its not working.   actually the problem is  when i want to upload files than file dialog not opening and I could not browser files. so please tell me what settings i need to do for work in Windows Xp and 2012.1.215.40  version i am using for telerik controls.



<telerik:RadAsyncUpload ID="aUpload" runat="server" AllowedFileExtensions="pdf,txt,doc,docx,png,jpg,jpeg" EnableFileInputSkinning="false" ClientIDMode="AutoID" OnClientFileUploadFailed="fileUploadFailed" MultipleFileSelection="Disabled"
                        OnClientValidationFailed="fileValidationFailed" OnClientFileUploadRemoved="fileUploadRemoved" AutoAddFileInputs="false"
                        EnableInlineProgress="true" InitialFileInputsCount="1" MaxFileInputsCount="1"
                        UploadedFilesRendering="BelowFileInput" InputSize="35" Width="300px" MaxFileSize="2097152"
                        OnClientFileUploaded="fileUploaded" OnFileUploaded="asyncFileUploaded" PostbackTriggers="rToolBarDocument">
                        
              /telerik:RadAsyncUpload>
Peter Filipov
Telerik team
 answered on 04 Dec 2012
7 answers
216 views
Hello Telerik team,

I have some troubles in difference browsers! There are difference errors when I move Appointment up-down or in other column.
As an example, look at the attached screenshot.

Please, help to resolve those problems!


Boyan Dimitrov
Telerik team
 answered on 04 Dec 2012
3 answers
295 views
Hello,
I am using item template in radlistview control to create items of list.
I am firing item command on item click. I want that when user click on item then that item looks highlighted on web page. How I will achieve that.
thanks.
Eyup
Telerik team
 answered on 04 Dec 2012
5 answers
185 views
Hi there, 

I recently upgraded my RadControls to (Q1 2011 I believe?)  I noticed a problem with the RadEditor while working in Chrome where all my class names got changed to lower-case and thus when I tried to apply a style the style wouldn't work.   I first noticed this error when I try to apply a class to a order list item and it worked fine in IE but not in Chrome.  The class names I'm using in my CSS have mix-casing (e.g.  lowerAlpha) and in Chrome the RadEditor was inserting (loweralpha).  Please help.

Thanks
Ivan
Top achievements
Rank 1
 answered on 04 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?