Hello,
I would like to change the css of my filtered columns. I use the following code:
if (e.CommandName == RadGrid.HeaderContextMenuFilterCommandName)
{
Triplet arguments = e.CommandArgument as Triplet;
Pair filter1 = arguments.Second as Pair;
Pair filter2 = arguments.Third as Pair;
GridColumn column = (sender as RadGrid).MasterTableView.GetColumn(arguments.First.ToString());
if (filter1.First.ToString() == "NoFilter" && filter2.First.ToString() == "NoFilter")
column.ItemStyle.CssClass = "";
else
column.ItemStyle.CssClass = "rgFilterClass";
}
This works well if I use the two filter fields of the context menu, but if I only choose elements from the filter checked list of my context menu, it's not working. :(
How can I access the "filter checked list" of my "header context menu" from my code-behind? Or is there another way to know that my columns are filtered with the "filter checked list"?
Thank you for your help,
Hi. I want to pass extra parameters to SelectMethod in RagGrid.
Important: By default RadGrid will expect SelectMethod with four arguments with the following names and types:
int startRowIndex
int maximumRows
List sortExpression
List filterExpression> and SelectCountMethod with no arguments!
How can i pass extra parameters to SelectMethod in RadGrid ?
Hi, I have used the Asyncuploader , but when the file is uploaded photos page postback and file uploader will be removed from the list , if they are such as zip files, Office...
Hi, I really like your example of "Sales Dashboard" - http://demos.telerik.com/aspnet-ajax/salesdashboard/views/regionalsalesstatus.aspx
Only thing that i would like to change is ability to load page on first click only. Meaning when i come back to the same page there is no need to run load code again.
How can i adapt the "Sales Dashboard" to behave this way?
Thank you
Hello,
Can I add any items to RadContentTemplateTile, I ideally want it to hold the following:
If this is not possible to achieve through tiles and tile lists, then what could I use that will allow me to achieve this, It is mainly the auto arrangement of tiles and drag & drop features that I am interested in.
Hi,
I have a Radgrid with some columns including Time column in format hh:mm:ss:
<telerik:GridBoundColumn HeaderText="POS-CD" DataField="POSCD" UniqueName="POSCD" ReadOnly="True" SortExpression="POSCD" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="START-TIME" DataField="STARTTIME" UniqueName="STARTTIME" ReadOnly="True" SortExpression="STARTTIME" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataType="System.String" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="END-TIME" DataField="ENDTIME" UniqueName="ENDTIME" ReadOnly="True" SortExpression="ENDTIME" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
</telerik:GridBoundColumn>
For some reason when RadGrid gets exported to excel columns START-TIME and END-TIME showing spaces.
I try to implemented this code:
if (e.RowType == Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowType.DataRow)
{
e.Row.Cells.GetCellByName("STARTTIME").StyleValue = "ttST";
}
StyleElement style3 = new StyleElement("ttST");
style3.NumberFormat.FormatType = NumberFormatType.LongTime;
e.Styles.Add(style3);
But it did not work.
Please help me to resolve this problem.
Thanks.
Vitaly.
Hi. I use Telerik in my application, but want to reduce the surface area that's exposed through the WebResource.axd handler.
In particular, I'd like to disable the AsyncUpload control entirely, so that any POST's to the HTTP Handler for AsyncUpload would be rejected.
Does Telerik support some form of "whitelist" configuration that allows me to only surface controls that I have a dependency upon?
Thanks for any information.
A field within the returned DataSource needs to either be displayed in the header or the footer and I am unsure of how to do this. A column name is Cycle_Date and I would like to display something similar to this "Data as of <% =cycle_date%>". I don't need to display it as a bound column within the grid just in either the header or footer.
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
DataSourceID
=
"SqlExcessAnalysis"
AutoGenerateColumns
=
"false"
EnableEmbeddedSkins
=
"true"
ShowFooter
=
"true"
FooterStyle-BackColor
=
"#443634"
GridLines
=
"None"
FooterStyle-ForeColor
=
"White"
AlternatingItemStyle-HorizontalAlign
=
"Center"
ItemStyle-HorizontalAlign
=
"Center"
HeaderStyle-HorizontalAlign
=
"Center"
FooterStyle-HorizontalAlign
=
"Center"
>
<
MasterTableView
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
ShowExportToExcelButton
=
"true"
ShowAddNewRecordButton
=
"false"
ShowRefreshButton
=
"false"
/>
<
ColumnGroups
>
<
telerik:GridColumnGroup
Name
=
"ExcessInformation"
HeaderText
=
"Excess Market Analysis"
HeaderStyle-HorizontalAlign
=
"Center"
/>
</
ColumnGroups
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"state"
HeaderText
=
"State"
HeaderStyle-HorizontalAlign
=
"center"
ItemStyle-HorizontalAlign
=
"center"
ColumnGroupName
=
"ExcessInformation"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"TotalExcess"
HeaderText
=
"# of Insureds"
Aggregate
=
"Sum"
FooterAggregateFormatString
=
"{0}"
ColumnGroupName
=
"ExcessInformation"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"TotalQualified"
HeaderText
=
"Total Qualified"
Aggregate
=
"Sum"
FooterAggregateFormatString
=
"{0}"
ColumnGroupName
=
"ExcessInformation"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Hi Guys
I want to know how could i add a link button to a Radgrid but only if a condition in the datarow is true.
Basically what i have done is i have added my datatable as the source of my radgrid and now i want
to loop through each row and add a check to see if the column "status= completed" and "section = 1", So if the condition is met
I want to add a link button.
How can i achieve this?