We have a page where you can download some files (via a link in a grid) and upload one file. When you first do a download of a file and then try to upload a file, the server side event FileUploaded is not triggered and only the click event of the related post trigger button is going off, but then the UploadedFiles property of the RadAsyncUpload doesn't have the uploaded file. When you click again on the button then the FileUploaded event is triggered.
The code to download the file is the following:
Dim stream As System.IO.MemoryStream = reportResult.ReportStream
response.Clear()
response.ClearHeaders()
Dim filter As IO.Stream = response.Filter
response.Filter = Nothing
response.ContentType = reportResult.Report.Type.MimeType
response.AddHeader("Content-Disposition", "attachment; filename=" & fileName)
If stream.Length > 0 Then stream.WriteTo(response.OutputStream)
response.End()
It seems that something in the download is making the RadAsyncUpload losing some triggers which are reset after the first postback.
Hello,
I want to ask user Are you sure you still want to submit?? after some checks which they had provided while submitting the forms, for simplicity you can think of
protected void RadGrid1_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
if((userControl.FindControl("TaskName") as RadTextBox).Text==SomeMethodaWhichReturnDataFromSQLSelect())
{
// Here I want to Show user if this condition gets true
RadWindowManager1.RadConfirm();
if( RadConfirm OK is Pressed)
{
// Insert statement
}
else
}
}
Hi,
I use version 2015.01.401 of your controls.
In the RadScheduler_AppointmentCreated Event, I customize the subject of the Appointment with the code below:
AppointmentLinkButton.Text = String.Concat(e.Appointment.Subject, " - <i>(", DivisionName, " - ", OwnerName, ")</i>")
Dim emEventID As String = e.Appointment.Attributes("emEventID")
AppointmentLinkButton.PostBackUrl = EMLink.Url((Cbs.Data.SD.NavTreeObjectTypes.EventDetails).ToString(), emEventID)
Dim tooltipValueParam As String = String.Concat(emEventID, PIPE_DELIMETER, SessUserCultureCode, PIPE_DELIMETER, SessUserID)
Dim jscript As String = "javascript:showProjectToolTip(this,'" & tooltipValueParam & "');"
Dim jscriptClearTimer As String = "javascript:clearTimeout(timer1);"
ImagesLiteralControl.Text = String.Format(APPTSUBJECTIMAGESTRING_CONST, "../../img/icons/event-bricks_small.png", jscript, jscriptClearTimer)
e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml(e.Appointment.Attributes("DivisionChartHexColor"))
AppointmentLinkButton.ForeColor = GetIdealTextColor(e.Appointment.BackColor)
You can also see that I have code in that event that sets the background color of the appointments, based on user configurable colors stored in our database (they are not in CSS files). I've attached the SchedulerInWebApp.png file to show you what it looks like in the web app. The image that is there, uses a radtooltip manager to call a web service to display more information. And the actual text is a link to the item in our system.
My problem is that when I do an export to PDF, the image isn't found and the subject contains no text. I've attached the SchedulerPDFOutput.png to show that.
Question: How can I get the Export to NOT try to embed the image, and have it just display the custom text that I am creating?
Thanks in Advance,
Brent
hi,
I think this is quite an extreme test but this is what happen:
+ Pass endDate to RadScheduler with the value of 30-12-9999 ( or 31-12-9999) the maximum date that a date control can support.
Then RadScheduler run into a runtime error, below is the stack trace :
System.DateTime.AddTicks(Int64 value)
System.DateTime.Add(TimeSpan value)
Telerik.Web.UI.Scheduler.Views.Timeline.Model.DataBind(AppointmentCollection appointments)
Telerik.Web.UI.Scheduler.Views.Timeline.GroupedByResource.Model.DataBind(AppointmentCollection appointments)
Telerik.Web.UI.RadScheduler.CreateContent()
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
System.Web.UI.Control.EnsureChildControls()
Telerik.Web.UI.RadScheduler.LoadPostData(String postDataKey, NameValueCollection postCollection)
The reason is : Radscheduler try to AddTick to a MaxDate value. (Currently the Timelineview.TimeSlotDuration = 1 day - the defaulted value)
My question : Why it failed even if I pass in 30-12-9999 . Because the MaxDate should be 31-12-9999
I am thinking of only allow date <= 30-12-9999 ( but now it failed with this value 30-12-9999)
And restrict it to 29-12-9999 does not look right.
Any idea is much appreciated.
regards,
Lam.
Hello,
Please help me with applying Server.HTMLEncode to the text in the filter textbox prior to running the filter against the dataset.
Thanks!
Hello
Attached picture with my problem, the filter goes behind the Popup Modal
how to solve? in vb.net language
my .aspx
<telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" GroupPanelPosition="Top" AllowPaging="True">
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
</telerik:RadGrid>