I'd like to display all the active PivotGrid filters. I know that there is a PivotGrid.Filters collection, but it contains only the field name and not the real filter.
Ho can I do that?
Thanks
Alessandro
How i can get file size on client for all files added in AsyncUpload before upload?
And how i can view the upload progress of ALL files together as a progress bar in the upload control?
I have a RadGrid. Trying to change the font colors when an specific value is present. As an example...If Status Code != 0 then change color to red. Now I have that working fine, however when I click on any of the nested grids I get an error stating that "Status Code" isn't in the grid. I know that because It is a different grid (under the parent) for some reason it is still validating against the parent when it shouldn't. Any ideas? It works at the parent level. I don't want the sub grids to change at all, just the parent.
Here is the ASP code:
<telerik:RadGrid
runat="server"
ID="RadGrid1"
AllowPaging="true"
AllowFilteringByColumn="true"
AllowSorting="true"
PageSize="40"
AutoGenerateColumns="True"
CellSpacing="-1"
GridLines="Both"
GroupPanelPosition="Top"
DataSourceID="SqlDataSource1" OnItemDataBound="grd_RowDataBound">
<MasterTableView
EnableHeaderContextMenu="true"
OnPreRender="Grid1_PreRender"
DataKeyNames="trxids,TransactionType"
Name="Master" AutoGenerateColumns="true" runat="server">
<DetailTables>
<telerik:GridTableView HeaderStyle-Font-Bold="true" AlternatingItemStyle-BackColor="LightBlue"
DataSourceID="SqlDataSource2"
AllowFilteringByColumn="false"
AllowSorting="false"
DataKeyNames="trxid,TransactionType" >
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="trxids" MasterKeyField="trxids"></telerik:GridRelationFields>
<telerik:GridRelationFields DetailKeyField="TransactionType" MasterKeyField="TransactionType"></telerik:GridRelationFields>
</ParentTableRelation>
<DetailTables>
<telerik:GridTableView HeaderStyle-Font-Bold="true" ItemStyle-ForeColor="DarkRed"
DataSourceID="SqlDataSource3"
AllowFilteringByColumn="false"
AllowSorting="false" >
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="trxid" MasterKeyField="trxid"></telerik:GridRelationFields>
<telerik:GridRelationFields DetailKeyField="TransactionType" MasterKeyField="TransactionType"></telerik:GridRelationFields>
</ParentTableRelation>
</telerik:GridTableView>
</DetailTables>
</telerik:GridTableView>
</DetailTables>
</MasterTableView>
</telerik:RadGrid>
Code behind is as follows:
protected void grd_RowDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
TableCell cell = (TableCell)item["Status Code"];
if (cell.Text != "0")
{
cell.ForeColor = System.Drawing.Color.Red;
cell.Font.Bold = true;
cell.Font.Size = 8;
cell.BackColor = System.Drawing.Color.LightGray;
GridDataItem item1 = (GridDataItem)e.Item;
TableCell cell1 = (TableCell)item["count"];
cell1.ForeColor = System.Drawing.Color.Red;
cell1.Font.Bold = true;
cell1.Font.Size = 8;
cell1.BackColor = System.Drawing.Color.LightGray;
}
}
}
I tried to implement Dynamic PageView Creation via AJAX functionality. In the implementation i did, if i click the second page and then click the first page first page content doesn't appear in first page, although in initial load content renders properly in first page. Please find the the sample project i created attached here. Please let me know whats wrong with my implementation.
I have a strange condition where I have a telerik:RadEditor in a popup, when I use the spell check it causes a stack overflow at line 0 after it is done.
This problem only happens in IE 8.
I have a page with a RadFileExplorer with EnableAsyncUpload to true.
When I drag and drop a document and upload this document I get to following error : Unable to get property 'add_folderLoaded' of undefined or null reference.
My page :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileExplorerWithoutHomePage.aspx.cs" Inherits="FileExplorerWithoutHomePage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
meta
content
=
"C#"
name
=
"CODE_LANGUAGE"
/>
<
meta
http-equiv
=
"X-UA-Compatible"
content
=
"IE=edgde,chrome=1"
/>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
method
=
"post"
>
<
asp:ToolkitScriptManager
ID
=
"ToolkitScriptManager1"
runat
=
"server"
></
asp:ToolkitScriptManager
>
<
telerik:RadFileExplorer
runat
=
"server"
ID
=
"FileExplorer1"
Width
=
"520px"
Height
=
"500px"
AllowPaging
=
"true"
PageSize
=
"10"
ExplorerMode
=
"FileTree"
>
<
Configuration
EnableAsyncUpload
=
"true"
></
Configuration
>
</
telerik:RadFileExplorer
>
</
form
>
</
body
>
</
html
>
The folders are set in code behind :
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
String FolderRoot = @"~/DataFolder/ITServiceTickets/1142957/";
string[] Paths = new string[]
{
@FolderRoot
};
FileExplorer1.Configuration.ViewPaths = Paths;
FileExplorer1.Configuration.UploadPaths = Paths;
FileExplorer1.Configuration.DeletePaths = Paths;
}
}
What is the problem?
Kind regards
Suzy
I am using custom filter in my radgrid. I am creating the filter column like this:
FilterColumn : GridBoundColumn
{
//othercode
_filterCombo = new RadComboBox()
{
ID = "filterCombobox" + this.UniqueName,
OnClientItemsRequested = "OnClientItemsRequestedHandler",
OnClientDropDownOpening = "OnClientItemsRequestedHandler",
//other code
}
_filterCombo.SelectedIndexChanged += filterCombo_SelectedIndexChanged;
_filterCombo.ItemsRequested += filterCombo_ItemsRequested;
//othercode
}
When the column name contain special characters like $,& ] etc the filter does not work.
I have noticed that in this case neither OnClientDropDownOpening nor ItemsRequested event fires.
I have tried the solution in the thread http://www.telerik.com/forums/grid-mastertableview-filterexpression-is-blank-on-special-chars-like-quot-lt-gt-is-passed-from-google-like-filtering. but this is not working.
I am still not able to filter even after making the changes mentioned in the above thread.
Also when my column name contains "> (e.g te">stcolumn ), than the grid fails to show the combobox. Instead it shows html and textboxes.
It correctly shows the combobox if I htmlencode the above column name but filtering still does not work even after setting IllegalStrings and EnableLinqExpressions in page_load event.
GridFilterFunction.IllegalStrings = new string[] { " LIKE ", " AND ", " OR ", " NULL ", " IS " };
rg_Report.EnableLinqExpressions = true;
My telerik.UI version is 2014.
Here is my test page:
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
>Now</
title
>
<
script
runat
=
server
type
=
"text/C#"
>
public void Submit_Click(object sender,System.EventArgs eventArgs)
{
this.Title = System.DateTime.Now.ToString();
}
</
script
>
</
head
>
<
body
>
<
form
runat
=
"server"
>
<
Telerik:RadScriptManager
runat
=
server
/>
<
Telerik:RadAjaxManager
runat
=
server
EnablePageHeadUpdate
=
false
>
<
AjaxSettings
>
<
Telerik:AjaxSetting
AjaxControlID
=
Submit
>
<
UpdatedControls
>
<
Telerik:AjaxUpdatedControl
ControlID
=
Submit
/>
</
UpdatedControls
>
</
Telerik:AjaxSetting
>
</
AjaxSettings
>
</
Telerik:RadAjaxManager
>
<
asp:Button
runat
=
server
ID
=
Submit
OnClick
=
Submit_Click
/>
</
form
>
</
body
>
</
html
>
Even if the "EnablePageHeadUpdate" is set to false, the title of the page still change after clicking the button.