or
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
onitemdatabound
=
"RadGrid1_ItemDataBound"
>
<
MasterTableView
autogeneratecolumns
=
"False"
ClientDataKeyNames
=
"id"
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"id"
DataType
=
"System.Int32"
HeaderText
=
"id"
ReadOnly
=
"True"
SortExpression
=
"id"
UniqueName
=
"id"
Visible
=
"false"
>
<
ItemStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"payable"
HeaderText
=
"payable"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lbl_payable"
runat
=
"server"
></
asp:Label
>
</
ItemTemplate
>
<
ItemStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
>
<
ClientEvents
OnRowSelected
=
"RowSelected"
/>
<
Selecting
AllowRowSelect
=
"True"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
function
RowSelected(sender, eventArgs)
{
// how get lbl_payable
}
function cUpper(cObj) {
cObj.value = cObj.value.toUpperCase();
}
aspx:
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
OnKeyup
=
"return cUpper(this)"
></
asp:TextBox
>
<
telerik:RadComboBox
runat
=
"server"
EmptyMessage
=
"Choose Port Cd."
EnableLoadOnDemand
=
"True"
HighlightTemplatedItems
=
"True"
DropDownWidth
=
"500px"
Skin
=
"Telerik"
Height
=
"150px"
Width
=
"150px"
ID
=
"Rc_prtcd"
AutoPostBack
=
"True"
ShowMoreResultsBox
=
"true"
EnableVirtualScrolling
=
"true"
>
<
HeaderTemplate
>
<
table
cellpadding
=
"0"
cellspacing
=
"0"
style
=
"width: 100%"
>
<
tr
>
<
td
style
=
"width: 100px;"
>
Port Code
</
td
>
<
td
style
=
"width: 200px;"
>
Port Name
</
td
>
<
td
style
=
"width: 200px;"
>
Country Name
</
td
>
</
tr
>
</
table
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
table
cellpadding
=
"0"
cellspacing
=
"0"
style
=
"width: 100%"
>
<
tr
>
<
td
style
=
"width: 100px;"
>
<%# DataBinder.Eval(Container, "Text")%>
</
td
>
<
td
style
=
"width: 200px;"
>
<%#DataBinder.Eval(Container, "Attributes['Port_Name']")%>
</
td
>
<
td
style
=
"width: 200px;"
>
<%#DataBinder.Eval(Container, "Attributes['Country_Name']")%>
</
td
>
</
tr
>
<
hr
/>
</
table
>
</
ItemTemplate
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
></
CollapseAnimation
>
</
telerik:RadComboBox
>