Hello,
i have a column in rad data grid which bind to property from TimeSpan type the kind of this column is template and i present the data in this format HH:MM:SS, when hour present the total hours (more then 24) from this function:
protected
string
PrintTimeSpan(TimeSpan? time)
{
return
time ==
null
?
"N/A"
:
string
.Format(
"{0}:{1}:{2}"
, (
int
) time.Value.TotalHours, time.Value.Minutes, time.Value.Seconds);
}
I want to enable to filter this column when user input will be in same format currently when i enter input with more than 24 hours it throw error about the format, how i costume the action of some filters on template column (like "greater than" and "less than"), without to implement the section of filter template in myself.
in addition how i define validator on filter filed to unable to enter string with wrong format, currently i can enter in this column filter of kind time span regular string and get error on page when try to filter
this is example of my column definition
01.
<
telerik:GridTemplateColumn
DataField
=
"AllGood"
FilterControlAltText
=
"Filter AllGood column"
SortExpression
=
"AllGood"
UniqueName
=
"AllGood"
FilterControlWidth
=
"70px"
>
02.
<
HeaderTemplate
>
03.
<
table
style
=
"width: 100%; text-align: center"
>
04.
<
tr
style
=
"text-align: center"
>
05.
<
td
>
06.
<
asp:Image
runat
=
"server"
AlternateText
=
"Status - All Good"
ToolTip
=
"Status - All Good"
ImageAlign
=
"Middle"
Height
=
"60px"
Width
=
"60px"
ImageUrl
=
'~/Images/Stations/Green.png'
/>
07.
</
td
>
08.
</
tr
>
09.
</
table
>
10.
</
HeaderTemplate
>
11.
<
ItemTemplate
>
12.
<
asp:Label
ID
=
"AllGoodLabel"
runat
=
"server"
Text='<%# PrintTimeSpan((TimeSpan?)Eval("AllGood")) %>'></
asp:Label
>
13.
</
ItemTemplate
>
14.
</
telerik:GridTemplateColumn
>
I'm working on customizing advanced form of the scheduler.
I have been able to achieve the customization part using user controls (AdvancedForm, ResourceControl and MultipleValuesResourceControl).
I have two controls of single value resource control type and one control of multiple values resource control type. Find the screenshot depicting this.
My requirement involves replacing this multiple values resource control from check boxes to a multi-select combo box.
I tried replicating the current multiple values resource by adding a new user control, called it MultipleValuesDropDownResourceControl.ascx, registered it in AdvancedForm and tried making changes in the MultipleValuesDropDownResourceControl.cs file to replace with but I wasn't able to achieve this functionality. I wasn't able to even partly achieve this, hence I don't have any code to share.
Can anyone please provide some guidance on how a control type can be modified.
Links I have referred to achieve customized advanced form - http://www.telerik.com/support/code-library/customize-the-advanced-form-with-the-advanced-template-user-controls
http://www.telerik.com/videos/aspnet-ajax/advanced-aspnet-ajax-scheduler-customization (tutorial I followed)
http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/customize-the-advanced-form-template
Hi, I have implemented RadAsyncUpload on my page. I run the project. When I select the file, the page does total refresh automatically as if it was ran for the first time. Please help!
I am using VS2017
Controls version 2014.2.724
My code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"RadScriptManager1"
/>
<
telerik:RadAsyncUpload
ID
=
"RadAsyncUploadAttachment"
runat
=
"server"
MultipleFileSelection
=
"Automatic"
TabIndex
=
"300"
AllowedFileExtensions
=
"jpg,jpeg,png,gif,bmp,pdf"
>
</
telerik:RadAsyncUpload
>
</
div
>
</
form
>
</
body
>
</
html
>
I have two servers. I have set Telerik.AsyncUpload.TemporaryFolder in my web.config on both servers. On server # 1, the setting looks like this: "\\192.168.0.5\upload\". On server #2 (which hosts the shared folder), it looks like this: "c:\files\upload\". Both point to exactly the same folder, and both servers have write permissions. I do not have a target folder set.
This generally works, but occasionally fails. I end up with the uploaded file in "c:\files\upload" on server #1. When my process looks for the file in the shared folder on server #2, it is not there. Nowhere on server #1 is the temp file location set to that local folder - it is always set to the shared folder.
I modified the temp location on server #2 to use the same share path as server #1. This seems to be working, but I will need to watch it for a while.
So, two questions. First, was I causing my own problem by using two different strings to point to the same shared folder? And second, is there any issue with not using a target folder? I just pick up the files from the temp folder and move them where I need them. This seems to be ok, but I thought I would ask in case I am missing something.