or
Hi
I have parent grid called rgParentGrid,
In this I am using some NestedViewTemplate
In this NestedViewTemplate I am using other Radgrid called Chidgrid ,
I am using some item templates in Childgird , I would like bound these itemtemplates in OnItemdatabound (object sender, GridItemEventArgs e)
.
Could anyone please help me on accessing these item Templates in code behind
Regards
Kiran
<
telerik:RadTextBox
Save
=
"Text"
ID
=
"txtCode"
onblur
=
"UcaseTextbox(this, event)"
runat
=
"server"
MaxLength
=
"4"
Width
=
"50px"
TabIndex
=
"1"
CssClass
=
"textUpper"
ToolTip
=
"Vendor Code"
CausesValidation
=
"False"
>
</
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
ID
=
"reqCode"
runat
=
"server"
ControlToValidate
=
"txtCode"
Display
=
"Dynamic"
ErrorMessage="<br>Vendor Code required"
SetFocusOnError="True" ForeColor="Red"></
asp:RequiredFieldValidator
>
<
asp:Button
ID
=
"btnClear"
runat
=
"server"
Text
=
"Clear"
CausesValidation
=
"false"
UseSubmitBehavior
=
"false"
OnClientClick
=
"ResetScreen(); return false;"
ToolTip
=
"Clear"
TabIndex
=
"3"
/>
function ResetScreen() {
$find("txtCode").clear();
}
Private
Sub
RadRotator1_ItemDataBound(sender
As
Object
, e
As
Telerik.Web.UI.RadRotatorEventArgs)
Handles
RadRotator1.ItemDataBound
If
IsFeatured
Then
e.Item.Attributes.Add(
"class"
,
"featured"
)
End
If
End
Sub
<
div
class
=
"rrRelativeWrapper"
>
<
div
class
=
"rrClipRegion"
>
<
ul
class
=
"rrItemsList"
>
<
li
class
=
"rrItem"
>
<
div
id
=
"ctl00_..._RadRotator1_i0"
class
=
"featured"
>
<
telerik:RadChart
ID
=
"RadChart1"
runat
=
"server"
DataGroupColumn
=
"State"
DataSourceID
=
"ChartDS"
IntelligentLabelsEnabled
=
"True"
SeriesPalette
=
"Blue"
Skin
=
"DeepBlue"
>
<
Appearance
Corners
=
"Rectangle, Rectangle, Round, Round, 5"
Dimensions-Margins
=
"0px, 1px, 1px, 1px"
Dimensions-Paddings
=
"0px, 1px, 1px, 1px"
>
<
FillStyle
FillType
=
"ComplexGradient"
>
<
FillSettings
>
<
ComplexGradient
>
<
telerik:GradientElement
Color
=
"26, 120, 179"
/>
<
telerik:GradientElement
Color
=
"35, 189, 254"
Position
=
"0.5"
/>
<
telerik:GradientElement
Color
=
"26, 120, 179"
Position
=
"1"
/>
</
ComplexGradient
>
</
FillSettings
>
</
FillStyle
>
<
Border
Color
=
"0, 66, 110"
Width
=
"0"
Visible
=
"False"
/>
</
Appearance
>
<
Series
>
<
telerik:ChartSeries
Name
=
"State1"
DataYColumn
=
"VOLUME"
>
<
Appearance
>
<
FillStyle
FillType
=
"ComplexGradient"
>
<
FillSettings
>
<
ComplexGradient
>
<
telerik:GradientElement
Color
=
"213, 247, 255"
/>
<
telerik:GradientElement
Color
=
"193, 239, 252"
Position
=
"0.5"
/>
<
telerik:GradientElement
Color
=
"157, 217, 238"
Position
=
"1"
/>
</
ComplexGradient
>
</
FillSettings
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"White"
>
</
TextAppearance
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
DataYColumn
=
"VOLUME"
Name
=
"State2"
>
<
Appearance
>
<
FillStyle
FillType
=
"ComplexGradient"
>
<
FillSettings
>
<
ComplexGradient
>
<
telerik:GradientElement
Color
=
"163, 222, 78"
/>
<
telerik:GradientElement
Color
=
"132, 207, 27"
Position
=
"0.5"
/>
<
telerik:GradientElement
Color
=
"102, 181, 3"
Position
=
"1"
/>
</
ComplexGradient
>
</
FillSettings
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"White"
>
</
TextAppearance
>
<
Border
Color
=
"94, 160, 0"
/>
</
Appearance
>
</
telerik:ChartSeries
>
</
Series
>
<
Legend
>
<
Appearance
Dimensions-Margins
=
"1px, 2%, 12%, 1px"
GroupNameFormat
=
"#VALUE"
>
<
ItemTextAppearance
TextProperties-Color
=
"White"
>
</
ItemTextAppearance
>
<
FillStyle
GammaCorrection
=
"False"
MainColor
=
"37, 255, 255, 255"
>
</
FillStyle
>
<
Border
Color
=
"76, 255, 255, 255"
/>
</
Appearance
>
<
TextBlock
>
<
Appearance
Position-AlignedPosition
=
"Top"
TextProperties-Color
=
"LightSkyBlue"
>
</
Appearance
>
</
TextBlock
>
<
ActiveRegion
Tooltip
=
"The two states to compare"
/>
</
Legend
>
<
PlotArea
>
<
XAxis
DataLabelsColumn
=
"YYMM"
IsZeroBased
=
"False"
MaxValue
=
"7"
MinValue
=
"0"
>
<
Appearance
Color
=
"98, 183, 226"
MajorTick-Color
=
"98, 183, 226"
>
<
MajorGridLines
Color
=
"98, 183, 226"
Width
=
"0"
/>
<
LabelAppearance
RotationAngle
=
"300"
Position-AlignedPosition
=
"Bottom"
>
</
LabelAppearance
>
<
TextAppearance
TextProperties-Color
=
"White"
>
</
TextAppearance
>
</
Appearance
>
<
AxisLabel
Visible
=
"True"
>
<
Appearance
Dimensions-Paddings
=
"1px, 1px, 10%, 1px"
Visible
=
"True"
>
</
Appearance
>
<
TextBlock
Text
=
"Month/Year"
>
<
Appearance
TextProperties-Color
=
"LightSkyBlue"
>
</
Appearance
>
</
TextBlock
>
</
AxisLabel
>
<
Items
>
<
telerik:ChartAxisItem
>
<
TextBlock
Text
=
" 01/2011"
>
</
TextBlock
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"1"
>
<
TextBlock
Text
=
" 02/2011"
>
</
TextBlock
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"2"
>
<
TextBlock
Text
=
" 03/2011"
>
</
TextBlock
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"3"
>
<
TextBlock
Text
=
" 04/2011"
>
</
TextBlock
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"4"
>
<
TextBlock
Text
=
" 05/2011"
>
</
TextBlock
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"5"
>
<
TextBlock
Text
=
" 06/2011"
>
</
TextBlock
>
</
telerik:ChartAxisItem
>
</
Items
>
</
XAxis
>
<
YAxis
>
<
Appearance
Color
=
"98, 183, 226"
MajorTick-Color
=
"98, 183, 226"
MinorTick-Color
=
"98, 183, 226"
>
<
MajorGridLines
Color
=
"120, 209, 248"
/>
<
MinorGridLines
Color
=
"120, 209, 248"
Width
=
"0"
/>
<
TextAppearance
TextProperties-Color
=
"White"
>
</
TextAppearance
>
</
Appearance
>
<
AxisLabel
Visible
=
"True"
>
<
Appearance
Visible
=
"True"
>
</
Appearance
>
<
TextBlock
Text
=
"Volume"
>
<
Appearance
TextProperties-Color
=
"LightSkyBlue"
>
</
Appearance
>
</
TextBlock
>
</
AxisLabel
>
</
YAxis
>
<
Appearance
Dimensions-Margins
=
"12%, 80px, 20%, 15%"
SeriesPalette
=
"Blue"
>
<
FillStyle
MainColor
=
"50, 255, 255, 255"
SecondColor
=
"Transparent"
>
</
FillStyle
>
<
Border
Color
=
"97, 180, 223"
/>
</
Appearance
>
</
PlotArea
>
<
ChartTitle
>
<
Appearance
Dimensions-Margins
=
"8px, 10px, 8px, 6%"
>
<
FillStyle
MainColor
=
""
>
</
FillStyle
>
<
Border
Visible
=
"False"
/>
</
Appearance
>
<
TextBlock
Text
=
""
>
<
Appearance
TextProperties-Color
=
"White"
TextProperties-Font
=
"Tahoma, 9.75pt, style=Bold"
>
</
Appearance
>
</
TextBlock
>
</
ChartTitle
>