I can't seem to find any documentation pointing to an issue with the Export to ICalendar, which we have had working in our projects for years.
With this latest build, it seems that the file exports but it doesn't contain any appointments.
Has anyone else encountered this?
Hello,
I have a radasyncupload inside a datagrid footer. The files uploads to the temporary folder but when I check for UploadedFiles.Count on the Datagrid.ItemCommand event the count is 0.
Is there a problem with using radasyncupload inside a datagrid control?
<
asp:datagrid
id
=
"grdDocumentUpload"
runat
=
"server"
CssClass
=
"GridStandard"
CellPadding
=
"3"
ShowFooter
=
"True"
AutoGenerateColumns
=
"False"
DataKeyField
=
"rupID"
AllowSorting
=
"true"
>
<
HeaderStyle
CssClass
=
"GridHeaderStandard"
></
HeaderStyle
><
ItemStyle
CssClass
=
"GridItemStyleStandard"
></
ItemStyle
><
br
> <
AlternatingItemStyle
CssClass
=
"GridAlternatingItemStyleStandard"
></
AlternatingItemStyle
><
br
> <
Columns
><
br
> <
asp:TemplateColumn
> <
br
> <
FooterTemplate
><
br
> <
asp:ImageButton
id
=
"imbAddDocumentUpload"
Runat
=
"server"
ImageUrl
=
"images/Icons/icoSave_Enabled.gif"
<br> CommandName="Add" AlternateText="Save New Upload"></
asp:ImageButton
><
br
> </
FooterTemplate
> <
br
> </
asp:TemplateColumn
> <
br
> <
br
> <
asp:TemplateColumn
HeaderText
=
"File"
SortExpression
=
"rupUploadPath"
><
br
> <
ItemTemplate
><
br
> <
asp:HyperLink
ID
=
"hypUploadPath"
Text='<%# DataBinder.Eval(Container.DataItem,"rupUploadPath") %>' Target="_blank" NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"rupUploadPath") %>' CssClass="HyperlinkStandard" runat="server"></
asp:HyperLink
><
br
> </
ItemTemplate
><
br
> <
FooterTemplate
><
br
> <%--<
INPUT
class
=
"LabelStandard"
id
=
"filUploadFile"
type
=
"file"
size
=
"25"
runat
=
"server"
>--%><
br
> <
div
class
=
"qsf-demo-canvas"
><
br
> <
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"AsyncUpload1"
HideFileInput
=
"true"
Skin
=
"Silk"
MultipleFileSelection
=
"Automatic"
PostbackTriggers
=
"cmdSaveUpload"
DropZones
=
".DropZone1"
OnClientValidationFailed
=
"validationFailed"
UploadedFilesRendering
=
"BelowFileInput"
Localization-Select
=
"Browse"
TemporaryFolder
=
"D:\Websites\Uploads\"
/><
br
> <
div
class
=
"DropZone1"
> <
br
> <
p
>Drop Files Here</
p
><
br
> </
div
><
br
> </
div
><
br
> </
FooterTemplate
><
br
> </
asp:TemplateColumn
><
br
> </
asp:datagrid
>
Private Sub grdDocumentUpload_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles grdDocumentUpload.ItemCommand
' Declare procedure scope variables
Dim arySQL(0) As String
Dim lngDocumentUploadID As Long
Dim strErrorMessage As String = ""
Dim filUploadPath As HtmlInputFile
Dim txtDescription As TextBox
Dim hypUploadPath As HyperLink
Dim ddlUploadType As DropDownList
Dim ddlClientAccess As DropDownList
Dim strHTTP As String
Dim chkRequireElectronicSignatureClient As CheckBox
Dim chkRequireElectronicSignatureSpouse As CheckBox
Dim AsyncUpload1 As Telerik.Web.UI.RadAsyncUpload
' Declare variables for file upload
Dim strFileNamePath As String
Dim strFileNameOnly As String
Dim strFilePath As String
Dim strExtension As String
Dim lngCounter As Long = 1
Dim lngLength As Long = 0
Dim lngIndexOfPeriod As Long = 0
Dim strTemporaryFileNameOnly As String
Dim strUploadPath As String = ""
Dim strFilename As String = ""
' Clear user search criteria
GetPageInput()
lblMessage.Text = ""
' Get the HTTP
If UCase(Request.ServerVariables("HTTPS")) = "ON" Then strHTTP = "https://" Else strHTTP = "http://"
strHTTP = strHTTP & Request.ServerVariables("HTTP_HOST") & Request.ApplicationPath
' Get the upload path from web.config
Try
strUploadPath = ConfigurationManager.AppSettings("UploadPath").ToString
Catch ex As Exception
strUploadPath = ""
End Try
If e.CommandName = "Add" Then
lngDocumentUploadID = 0
AsyncUpload1 = CType(e.Item.FindControl("AsyncUpload1"), Telerik.Web.UI.RadAsyncUpload)
If strErrorMessage = "" Then
' Check to make sure the file has been posted
If AsyncUpload1.UploadedFiles.Count = 0 Then
strErrorMessage = "You need to upload at least one file."
End If
For Each filFile As Telerik.Web.UI.UploadedFile In AsyncUpload1.UploadedFiles
If filFile.FileName.ToString <> "" Then
'CODE TO SAVE THE FILE
End If
Next
Else
lblMessage.Text = strErrorMessage & "<
br
>"
lblMessage.CssClass = "ErrorStandardBold"
End If
ElseIf e.CommandName = "Cancel" Then
grdDocumentUpload.EditItemIndex = -1
grdDocumentUpload.ShowFooter = True
lblMessage.Text = ""
lblMessage.CssClass = ""
End If
End Sub
It always shows a count of 0 for the uploaded files count. If I move it outside of the datagrid it works.
Please help.
Hello,
Calling WCF Service, with ClientDataSource, work​s fine when IIS Authentication set to Anonymous Authentication.
But when I change it to Windows Authentication - It doesn't work.
How can I fix it? Thank you.
Hi guys,
I've been kinda pulling my hair out over this one, I'm trying to get Wizard validation working and I don't know if its just something in my project or what, but no matter what I do, they will not fire.
I've gone as far as copying the example from the Wizard Validation article (http://www.telerik.com/help/aspnet-ajax/wizard-validation.html) and it still will not fire. Am I missing something? Maybe some project level setting? Like I said, I feel like I'm taking crazy pills :P
Thanks in advance!
My entire test page, the validation does not fire:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<
html
xmlns
=
'http://www.w3.org/1999/xhtml'
>
<
head
runat
=
"server"
>
<
title
>Telerik ASP.NET Example</
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"RadScriptManager1"
/>
<
telerik:RadSkinManager
ID
=
"RadSkinManager1"
runat
=
"server"
ShowChooser
=
"true"
/>
<
div
>
<
telerik:RadWizard
ID
=
"RadWizard6"
runat
=
"server"
>
<
WizardSteps
>
<
telerik:RadWizardStep
ID
=
"RadWizardStep1"
CausesValidation
=
"true"
Title
=
"Personal Info"
runat
=
"server"
StepType
=
"Step"
ValidationGroup
=
"personalInfo"
>
<
div
class
=
"inputWapper first"
>
<
asp:Label
ID
=
"Label3"
Text
=
"First Name: *"
runat
=
"server"
AssociatedControlID
=
"FirstNameTextBox"
/>
<
telerik:RadTextBox
ID
=
"FirstNameTextBox"
runat
=
"server"
ValidationGroup
=
"personalInfo"
Width
=
"320px"
></
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
ID
=
"FirstNameRequiredFieldValidator"
runat
=
"server"
ControlToValidate
=
"FirstNameTextBox"
EnableClientScript
=
"true"
ValidationGroup
=
"personalInfo"
ErrorMessage
=
"required field"
CssClass
=
"validator"
ForeColor
=
"Red"
></
asp:RequiredFieldValidator
>
</
div
>
</
telerik:RadWizardStep
>
<
telerik:RadWizardStep
Title
=
"SecondStep"
>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
></
asp:TextBox
>
</
telerik:RadWizardStep
>
</
WizardSteps
>
</
telerik:RadWizard
>
</
div
>
</
form
>
</
body
>
</
html
>
Hi I have a RadMenu that I am populating dynamically through the code behind. I need to add checkboxes to each child item that allows the user to make a selection or multiple selections in the menu. Is it possible to do this? Someone had suggested to me that I try and nest a RadComboBox inside of the RadMenu, but I'm having no luck with that. I will paste my code below if it will help.
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<telerik:RadMenu ID="handsetMenu" runat="server">
<Items>
</Items>
</telerik:RadMenu>
</ContentTemplate>
</asp:UpdatePanel>
Code Behind:
protected void createFilter(int categoryid)
{
List<int> productIds = new List<int>();
DataRow[] productRow = CategoriesProductsData.Tables["Products"].Select("Category_ID = " + 573);
productIds = productRow.Select(p => int.Parse(p["Product_ID"].ToString())).ToList();
ITCProductService pService = new TCProductServiceClient();
var productTuples = (pService.GetProductsAttributes(productIds));
List<Tuple<int, CustomAttribute>> customAttributes = new List<Tuple<int, CustomAttribute>>();
foreach (var productTuple in productTuples)
{
foreach (var attributeTuple in productTuple.m_Item2)
{
var customAttribute = new Tuple<int, CustomAttribute>(productTuple.m_Item1, new CustomAttribute(attributeTuple));
customAttributes.Add(customAttribute);
}
}
List<CustomAttributeCategory> categories = new List<CustomAttributeCategory>();
var categoryList = customAttributes.Select(a => a.Item2).Select(a => a.Attribute.Category).GroupBy(a => a.AttributeCategoryId);
var CatProdList = new List<CustomAttributeCategory>();
foreach (var category in categoryList)
{
var CatProd = new CustomAttributeCategory();
var prodIDList = from product in customAttributes
where product.Item2.Attribute.CategoryId == category.Key
select Tuple.Create(product.Item1, product.Item2);
CatProd.Category = customAttributes.Select(a => a.Item2.Attribute.Category).Where(a => a.AttributeCategoryId == category.Key).FirstOrDefault();
CatProd.ProdAttributesTuple = new List<Tuple<int, CustomAttribute>>();
CatProd.ProdAttributesTuple = prodIDList.ToList();
CatProdList.Add(CatProd);
}
foreach (var cat in CatProdList)
{
var itemCategory = new RadMenuItem(cat.Category.Name);
handsetMenu.Items.Add(itemCategory);
var option = cat.ProdAttributesTuple.GroupBy(a => a.Item2.Attribute.Value).ToList();
foreach (var attr in option)
{
itemCategory.Items.Add(new RadMenuItem(attr.Key));
}
}
}
protected void handsetMenu_ItemDataBound(object sender, RadMenuEventArgs e)
{
DataRowView row = (DataRowView)e.Item.DataItem;
}
public class CustomAttributeCategory
{
public AttributeCategoryModel Category { get; set; }
public List<Tuple<int, CustomAttribute>> ProdAttributesTuple { get; set; }
}
public class CustomAttribute
{
public AttributeModel Attribute { get; set; }
public List<int> ProductIds { get; set; }
public CustomAttribute(AttributeModel attribute)
{
Attribute = attribute;
ProductIds = new List<int>();
}
}​
I'm trying to build this functionality into my website. In Telerik's demo the progress bar is inside the tooltip and it moves around to each element when an element is clicked on. How do I do this?
Am I correct to assume it is one tooltip and one progressbar and the TargetId of the tooltip is changed to the element that was clicked on with client side programming? Could I have an example of the client side programming? I am new to Telerik and Jquery as of this week, but I am a solid programmer of many years, some how just never got to JQuery.
Hello,
I am using two nested grid inside main radgrid ,its working fine when expand the nested grid but when collapse event fire then main grid disappear
i am not identified how to handle its on Pre_render or itemCommand event below is my Code
<telerik:RadGrid ID="gvJobDeatail" runat="server" GridLines="None" AutoGenerateColumns="false"
AllowPaging="true" AllowSorting="true" AllowAutomaticUpdates="true" ShowStatusBar="true"
PageSize="5" OnNeedDataSource="BindDataGrid_OnNeedDataSource" OnItemCommand="gvJobDetails_onItemCommand"
OnPreRender="gvJobDetails_PreRender" OnItemCreated="RadGrid_ItemCreated">
<%--OnItemCreated="gvJobDetails_ItemCreatd">--%>
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView DataKeyNames="INSTANCEID" ShowFooter="true" TableLayout="Fixed">
<Columns>
<telerik:GridBoundColumn SortExpression="INSTANCEID" DataField="INSTANCEID" HeaderText="Instance Id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="JOBNAME" DataField="JOBNAME" HeaderText="Job Name">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="STRATTIME" DataField="STRATTIME" HeaderText="Start Date and Time">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="ENDTIME" DataField="ENDTIME" HeaderText="End Date and Time">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="STATUS" DataField="STATUS" HeaderText="Status">
</telerik:GridBoundColumn>
</Columns>
<NestedViewTemplate>
<asp:Panel ID="pnlDetails" runat="server" Visible="false">
<table width="50%">
<tr>
<td>
<asp:Label ID="lblFormatted" runat="server" Text="File Detail:For Formatted Offload type"
CssClass="normalbold"></asp:Label>
</td>
</tr>
<tr>
<td>
<telerik:RadGrid ID="gvInstanceDetails" runat="server" AllowPaging="true" ShowStatusBar="true"
Width="1050px" Height="250px" AutoGenerateColumns="False" AutoExpandGroups="false"
PageSize="5" AllowMultiRowSelection="false" GridLines="None" AllowSorting="true"
OnNeedDataSource="gvInstanceDetails_NeedDataSource">
<%-- >--%>
<PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="" />
<MasterTableView AllowMultiColumnSorting="True">
<Columns>
<telerik:GridBoundColumn DataField="FileRaeted" HeaderText="Files Rated" SortExpression="FileRaeted">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ip" HeaderText="Files in FTP " SortExpression="ip">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FileFailure" HeaderText="Files re-tried sending to FTP"
SortExpression="FileFailure">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">
<Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
<Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="" />
</ClientSettings>
</telerik:RadGrid>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="pnlRawDetail" runat="server" Visible="false">
<table>
<tr>
<td>
<asp:Label ID="lblRaw" runat="server" Text="File Detail:For Raw Offload type" CssClass="normalbold"></asp:Label>
</td>
</tr>
<tr>
<td>
<telerik:RadGrid ID="gvRawDetails" runat="server" AllowPaging="true" ShowStatusBar="true"
Width="1050px" Height="250px" AutoGenerateColumns="False" AutoExpandGroups="false"
PageSize="5" AllowMultiRowSelection="false" GridLines="None" AllowSorting="true"
OnNeedDataSource="gvRawDetails_NeedDataSource">
<%-- >--%>
<PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="" />
<MasterTableView AllowMultiColumnSorting="True">
<Columns>
<telerik:GridBoundColumn DataField="FileRaeted" HeaderText="Files in Queue" SortExpression="FileRaeted">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ip" HeaderText="Files sent to FTP " SortExpression="ip">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FileFailure" HeaderText="Files re-tried sending to FTP"
SortExpression="FileFailure">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">
<Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
<Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="" />
</ClientSettings>
</telerik:RadGrid>
</td>
</tr>
</table>
</asp:Panel>
</NestedViewTemplate>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true">
<Scrolling UseStaticHeaders="true" AllowScroll="true" />
<Scrolling />
</ClientSettings>
</telerik:RadGrid>
</td>
</tr>
</table>
</div>
</asp:Panel>
And code behind for radgrid
protected void gvJobDetails_onItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
DateTime jobDate;
DateTime.TryParse(txtSelectDate.Text, out jobDate);
int jobNumber = Convert.ToInt32(ddlSelectJob.SelectedItem.Value);
string offloadType = ddlOffloadType.SelectedItem.Text;
if (e.CommandName == "ExpandCollapse" && e.Item is GridDataItem)
{
GridDataItem parentItem = e.Item as GridDataItem;
string instanceId = parentItem["INSTANCEID"].Text.ToString();
// txtToFtp.Text = Convert.ToString(instanceId);
lblInstance.Text = Convert.ToString(instanceId);
RadGrid rg = parentItem.ChildItem.FindControl("gvInstanceDetails") as RadGrid;
rg.Rebind();
RadGrid gvRaw = parentItem.ChildItem.FindControl("gvRawDetails") as RadGrid;
gvRaw.Rebind();
}
if (e.CommandName == RadGrid.ExpandCollapseCommandName && e.Item is GridDataItem)
{
if (ddlOffloadType.SelectedItem.Text == "Formatted Offload")
{
((GridDataItem)e.Item).ChildItem.FindControl("pnlDetails").Visible = !e.Item.Expanded;
}
if (ddlOffloadType.SelectedItem.Text == "Raw Offload")
{
((GridDataItem)e.Item).ChildItem.FindControl("pnlRawDetail").Visible = !e.Item.Expanded;
}
foreach (GridItem item in e.Item.OwnerTableView.Items)
{
if (item.Expanded && item != e.Item)
{
item.Expanded = false;
}
}
}
}
protected void Page_PreRender(object sender, EventArgs e)
{
// gvJobDeatail.Rebind();
}
protected void RadGrid_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridNestedViewItem)
{
(e.Item.FindControl("gvInstanceDetails") as RadGrid).NeedDataSource += new GridNeedDataSourceEventHandler(gvInstanceDetails_NeedDataSource);
(e.Item.FindControl("gvRawDetails") as RadGrid).NeedDataSource += new GridNeedDataSourceEventHandler(gvInstanceDetails_NeedDataSource);
}
}
protected void gvJobDetails_PreRender(object sender, EventArgs e)
{
HideExpandColumnRecursive(gvJobDeatail.MasterTableView);
}
public void HideExpandColumnRecursive(GridTableView tableView)
{
GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
{
foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
{
if (nestedView.Items.Count == 0)
{
nestedView.ParentItem.Expanded = false;
}
else
{
nestedView.ParentItem.Expanded = true;
}
}
}
}
I have rad search box and bind it to a dataset in the page load event. I have auto complete disabled. When I type in four letters and click the search icon I just get a graphic of something churning. I wait 2 minutes and the drop down never appears. Is there anything else I have to do to get it to work.
c# code in the page load event. The datasource "ds" does come back from my wcf service correct.
--===========================================
schUtility.MinFilterLength = 4;
schUtility.MaxResultCount = 15;
schUtility.DataValueField = "cust_name";
schUtility.DataTextField = "cust_id";
schUtility.DataSource = ds;
schUtility.DataBind();
--===========================================
I ask, because I'm on version 729.45 and it has issues. The wizard, for example, will not validate even though I cut and paste code from Telerik's web site. I also have issues with other controls, so I am not sure if the control is not working for me because of a bug or if I am doing something wrong.
I have a RadEditor in form view like this:
<telerik:RadEditor runat="server" ID="txtNote" OnDataBinding="txtNote_DataBinding" OnExportContent="txtNote_ExportContent" Height="180px" Width="100%" EditModes="Design">
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Cut" />
<telerik:EditorTool Name="Copy" />
<telerik:EditorTool Name="Paste" />
</telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>
​For whatever reason, this always return empty string
var txtNote = (fv.FindControl("txtNote") as RadEditor);
if (txtNote.Text == "") // this is always true
I also try Content, Html, GetHtml() and they are all the same.