Hi there,
I am looking for a way to style the first column of my grid.
I want to have the backcolor of all the cells of the first column the same as the backcolor of the grid header depending of the skin used.
So if I use the skin 'Default' all the cells of the first column should have the backcolor of the grid header of the skin 'Default'.
Does anybody know how to do this?
Regards,
Marcel
<telerik:RadEditor EditModes="Design" Height="250" Width="700" ID="txtBody" runat="server" ToolsFile="~/RadEditorTool.xml" Content='<%# Bind("Body") %>'> <CssFiles> <telerik:EditorCssFile Value="~/Styles/EditorContentArea.css" /> </CssFiles></telerik:RadEditor><asp:RequiredFieldValidator ID="reqtxtBody" runat="server" ControlToValidate="txtBody" CssClass="FieldValidator" ErrorMessage="Body has to be set" ValidationGroup="save"> <asp:Image ID="Image3" runat="server" AlternateText="error" ImageUrl="~/Images/exclamation12x12.gif" Width="12" Height="12" /></asp:RequiredFieldValidator><telerik:RadAutoCompleteBox ID="RadAutoCompleteBox3" runat="server" Width="400" DropDownWidth="100" DropDownHeight="100" DataSourceID="SqlDataSource1" DataTextField="State_Name"> </telerik:RadAutoCompleteBox><telerik:GridCheckBoxColumn DataField="PayOnline" DataType="System.Boolean" HeaderText="PayOnline" SortExpression="PayOnline" UniqueName="PayOnline"> <HeaderStyle Width="30px" /> </telerik:GridCheckBoxColumn>I have a RadChart that will always contain 365 plot points. Each plot points represents a dollar value for a day. The last point being today and the first point being 365 days ago.
I bind a list of a simple object containing properties for Dollar and DateTime to the radgrid.
What I'm trying to figure out is how to display a X-Axis Tick line and Label for the point corresponding to the first of every month.
See my screenshot below with point ranging from Apr 22, 2011 to Apr 21, 2012. The result I am looking for is in purple (Note that I didn't draw out all of the labels, just enough to give an idea):
Link To Screen Shot<telerik:RadListBox runat="server" DataKeyField="ClassID" ID="RadListBox2" DataSourceID="SqlDataSource1" DataTextField="ClassName"
TransferToID="RadListBox1" Style="top: 1px; right: 0px; width: 191px;" AllowTransferOnDoubleClick="True" TransferMode="Copy"
DataValueField="ClassID" OnDataBound="RadListBox2_DataBound"><ButtonSettings TransferButtons="All"></ButtonSettings>
</telerik:RadListBox>
<telerik:RadListBox ID="RadListBox1" runat="server" TransferMode="Copy" AllowTransfer="True" AppendDataBoundItems="True" DataKeyField="ClassID"
DataSourceID="SqlDataSource2" DataTextField="ClassName" TransferToID="RadListBox2" Culture="fa-IR" Style="top: 0px;right: 9px; width: 191px;"
DataValueField="ClassID" AllowTransferOnDoubleClick="True" EnableMarkMatches="True"><ButtonSettings TransferButtons="All"></ButtonSettings>
</telerik:RadListBox>Hi,
In Radgrid I am displaying invoice details like -'Invoice- Legal fee', 'Invoice- expenses' and 'Invoice- discount'.
Below each Invoice I am creating NestedViewTemplate for displaying Invoice's Credit memo details like 'Credit memo- Legal fee', 'Credit memo- expenses' and 'Credit memo- discount'.
Now for displaying Grand Total for Legal fee, expenses, discount I want to do something like this –
(Invoice- Legal fee- Credit memo- Legal fee)
(Invoice- expenses' - Credit memo- expenses')
(Invoice- discount'- Credit memo- discount')
This is working properly using
Protected Sub RadGrid2_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
If TypeOf e.Item Is GridFooterItem Then
Dim footerItem As GridFooterItem = TryCast(e.Item, GridFooterItem)
If footerItem("Total").Text <> "" Then
strCMTotal1 = footerItem("Total").Text
strCMLegalSum1 = footerItem("Legal_Fees").Text
strCMExpenseSum1 = footerItem("Expenses").Text
strCMDiscount1 = footerItem("Discount").Text
strCMAdminFees1 = footerItem("%_of_Legal_Fees").Text
footerItem("Legal_Fees").Text = strCMLegalSum1 - strCMLegalSum / 3 ‘Subtracting Credit memo details from Invoice details
footerItem("Expenses").Text = strCMExpenseSum1 - strCMExpenseSum / 3 ‘Subtracting Credit memo details from Invoice details
footerItem("Discount").Text = strCMDiscount1 - strCMDiscount / 3 ‘Subtracting Credit memo details from Invoice details
footerItem("%_of_Legal_Fees").Text = strCMAdminFees1 - strCMAdminFees / 3 ‘Subtracting Credit memo details from Invoice details
footerItem("Total").Text = strCMTotal1 - strCMTotal / 3 ‘Subtracting Credit memo details from Invoice details
End If
End If
End Sub
, but when I search (using grid filter), grand Total is not correct because i am not able to access filtered records and filtered credit memo details. Please suggest.
It’s very urgent. Thanks in advance.