<telerik:RadAjaxPanel ID="rapContents" runat="server" EnableAJAX="true" OnAjaxSettingCreating="rapContents_AjaxSettingCreating">
<asp:ContentPlaceHolder ID="phContents" runat="server">
</asp:ContentPlaceHolder>
</telerik:RadAjaxPanel>
<telerik:RadComboBox ID="rcbSP" runat="server" DataValueField="ID" DataTextField="Name"
EmptyMessage="None" HighlightTemplatedItems="true" AllowCustomText="true" Width="180"
OnClientDropDownClosed="onDropDownClosing"><ItemTemplate>
<div onclick="StopPropagation(event)" class="combo-item-template">
<asp:CheckBox runat="server" ID="chkSP" onclick="onCheckBoxClick(this, 'SP')" />
<asp:Label runat="server" ID="lblSP" AssociatedControlID="chkSP">
<%
# Eval("Name")%>
</asp:Label>
</div>
</ItemTemplate>
</telerik:RadComboBox>
//Combobox Binding - only binding first time the page loads
this.rcbSP.DataSource = LU_ServerPurposeBLL.GetList(false);
this.rcbSP.DataBind();
USE [AdventureWorks]
GO
/****** Object: StoredProcedure [dbo].[CreateProductComponentHeirarchyForProduct] Script
Date
: 05/18/2011 20:44:38 ******/
SET
ANSI_NULLS
ON
GO
SET
QUOTED_IDENTIFIER
ON
GO
ALTER
PROCEDURE
[dbo].[CreateProductComponentHeirarchyForProduct]
@ComponentID
int
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET
NOCOUNT
ON
;
;
WITH
BillOfMaterialsCTE
(
BillOfMaterialsID,
ProductAssemblyID,
ComponentID,
Quantity,
Level
)
AS
(
SELECT
bom.BillOfMaterialsID,
bom.ProductAssemblyID,
bom.ComponentID,
bom.PerAssemblyQty,
0
as
Level
FROM
Production.BillOfMaterials bom
WHERE
bom.ComponentID = @ComponentID
UNION
ALL
SELECT
bom.BillOfMaterialsID,
bom.ProductAssemblyID,
bom.ComponentID,
bom.PerAssemblyQty,
Level
+ 1
FROM
Production.BillOfMaterials bom
INNER
JOIN
BillOfMaterialsCTE bomCTE
ON
bom.ProductAssemblyID = bomCTE.ComponentID
WHERE
bom.EndDAte
IS
NULL
)
SELECT
bomCTE.ProductAssemblyID,
p.ProductID,
p.ProductNumber,
p.
Name
,
p.Color,
bomCTE.Quantity,
bomCTE.
Level
FROM
BillOfMaterialsCTE bomCTE
INNER
JOIN
Production.Product p
on
bomCTE.ComponentID = p.ProductID
END
public
void
SetResults(DataTable results)
{
this
.ProductsRadTreeView.DataSource = results;
this
.ProductsRadTreeView.DataFieldID =
"ProductAssemblyID"
;
this
.ProductsRadTreeView.DataFieldParentID =
"ProductID"
;
this
.ProductsRadTreeView.DataTextField =
"Name"
;
this
.ProductsRadTreeView.DataBind();
}
<
telerik:RadGridID
=
"RadGrid2"
runat
=
"server"
AutoGenerateColumns
=
"True"
EnableViewState
=
"True"
OnNeedDataSource
=
"RadGrid2_NeedDataSource"
ShowHeader
=
"False"
Width
=
"100%"
OnDeleteCommand
=
"test"
>
<
MasterTableViewTableLayout
=
"Fixed"
EditMode
=
"PopUp"
>
<
ItemTemplate
>
<
tablewidth
=
"100%"
>
<
colwidth
=
"50px"
/>
<
colwidth
=
"50px"
/>
<
colwidth
=
"*"
/>
<
colwidth
=
"*"
/>
<
colwidth
=
"*"
/>
<
tr
>
<
td
>
<
asp:ImageButtonrunat
=
"server"
ID
=
"edit"
CommandName
=
"Edit"
ImageUrl
=
"http://localhost/imgftcarto/editicon.gif"
/>
</
td
>
<
td
>
<
asp:ImageButtonrunat
=
"server"
ID
=
"delete"
CommandName
=
"Delete"
CommandArgument='<%# Eval("Identifiant")%>' ImageUrl="http://localhost/imgftcarto/delete.gif"
OnClientClick="return confirm('Delete this user?');" />
</
td
>
<
td
>
<
b
>test <%# Eval("Identifiant")%></
b
>
</
td
>
<
td
>
<%# Eval("Nom")%>
</
td
>
<
td
>
<
asp:DropDownListrunat
=
"server"
ID
=
"ddl"
>
<
asp:ListItemText
=
"Mr"
Value
=
"Mr"
></
asp:ListItem
>
<
asp:ListItemText
=
"Mrs"
Value
=
"Mrs"
></
asp:ListItem
>
<
asp:ListItemText
=
"Ms"
Value
=
"Ms"
></
asp:ListItem
>
</
asp:DropDownList
>
</
td
>
</
tr
>
<
tr
>
<
td
>
</
td
>
<
td
>
</
td
>
<
td
>
<
b
>test2</
b
>
</
td
>
<
td
>
<%# Eval("Prenom")%>
</
td
>
<
tdrowspan
=
"2"
>
<
asp:TextBoxrunat
=
"server"
ID
=
"textplace"
TextMode
=
"MultiLine"
Width
=
"100%"
></
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
</
td
>
<
td
>
</
td
>
<
td
>
<
b
>test3</
b
>
</
td
>
<
td
>
<%# Eval("Inscription") %>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
<
EditFormSettingsCaptionDataField
=
"Identifiant"
EditFormType
=
"Template"
PopUpSettings-Width
=
"700px"
PopUpSettings-Height
=
"200px"
PopUpSettings-Modal
=
"true"
>
<
FormTemplate
>
<
tableid
=
"Table1"
cellspacing
=
"1"
cellpadding
=
"1"
width
=
"100%"
border
=
"0"
>
<
tr
>
<
td
>
Nom
</
td
>
<
td
>
<
asp:TextBoxID
=
"TextBox10"
Text='<%# Bind("Nom") %>' runat="server">
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
Prenom
</
td
>
<
td
>
<
asp:TextBoxID
=
"TextBox1"
Text='<%# Bind("Prenom") %>' runat="server">
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
Inscription
</
td
>
<
td
>
<
telerik:RadDatePickerID
=
"picker1"
runat
=
"server"
DbSelectedDate='<%# Bind("Inscription") %>'>
</
telerik:RadDatePicker
>
</
td
>
</
tr
>
</
table
>
<
tablewidth
=
"100%"
>
<
tr
>
<
tdalign
=
"right"
colspan
=
"2"
>
<
asp:ButtonID
=
"Button1"
Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
</
asp:Button
>
<
asp:ButtonID
=
"Button2"
Text
=
"Cancel"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Cancel"
>
</
asp:Button
>
</
td
>
</
tr
>
</
table
>
</
FormTemplate
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
telerik:GridNumericColumnEditorID
=
"GridNumericColumnEditor1"
runat
=
"server"
NumericTextBox-Width
=
"40px"
/>
<
telerik:GridTextBoxColumnEditorID
=
"GridTextBoxColumnEditor1"
runat
=
"server"
TextBoxStyle-Width
=
"200px"
TextBoxStyle-BackColor
=
"#FF6600"
/>
<
telerik:GridTextBoxColumnEditorID
=
"GridTextBoxColumnEditor2"
runat
=
"server"
TextBoxStyle-Width
=
"200px"
TextBoxStyle-BackColor
=
"#666666"
/>
<
telerik:GridDateTimeColumnEditorID
=
"GridDateTimeColumnEditor"
runat
=
"server"
/>
<radG:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" Skin="None" DataSourceID="sdsBlogs" GridLines="None" AutoGenerateColumns="False">
<
MasterTableView DataSourceID="sdsBlogs" DataKeyNames="BLOG_ID">
<Columns>
<radG:GridHyperLinkColumn DataNavigateUrlField="BLOG_ID" DataNavigateUrlFormatString=http://my.impactwrestling.com/Blog.aspx?ID={0} DataTextField="TITLE" HeaderText="Title" SortExpression="TITLE" UniqueName="TITLE">
</radG:GridHyperLinkColumn
>
<radG:GridHyperLinkColumn DataNavigateUrlField="UserId" DataNavigateUrlFormatString=http://my.impactwrestling.com/MyProfile.aspx?ID={0} DataTextField="UserName" HeaderText="User" SortExpression="UserName" UniqueName="column">
</radG:GridHyperLinkColumn>
<radG:GridBoundColumn DataField="POST_COUNT" HeaderText="# of Comments" SortExpression="POST_COUNT" UniqueName="column1">
</radG:GridBoundColumn>
<radG:GridTemplateColumn HeaderText="Last Post">
<ItemTemplate>
<asp:Label id="lblLocation" runat="server" Text='<%# LastPost((int)Eval("BLOG_ID")) %>'>
</asp:Label>
</ItemTemplate> </radG:GridTemplateColumn>
</Columns>
<ExpandCollapseColumn Visible="False">
<HeaderStyle Width="19px" />
</ExpandCollapseColumn>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
</MasterTableView>
</radG:RadGrid>
I want to make forecolor of Bold n Underlined hyperlink column white