or
List<Item> oItemList =
null
;
RadComboBox ddlItemName = (RadComboBox)sender;
Item oItem =
new
Item();
GridDataItem oGridDataItem = (GridDataItem)ddlItemName.Parent.Parent;
if
(!
string
.IsNullOrEmpty(e.Text))
{
oItem.ItemName = e.Text;
if
(oGridDataItem !=
null
)
{
RadComboBox ddlMake = (RadComboBox)oGridDataItem.FindControl(
"ddlMake"
);
if
(ddlMake !=
null
&& !
string
.IsNullOrEmpty(ddlMake.SelectedValue))
oItem.MakeId = Convert.ToInt64(ddlMake.SelectedValue);
<
style
type
=
"text/css"
>
.RadPanelBar a.rpLink,
.RadPanelBar div.rpHeaderTemplate,
.RadPanelBar a.rpExpanded,
.RadPanelBar div.rpExpanded,
.RadPanelBar .rpItem a.rpLinkExpandHovered
.RadPanelBar_Default DIV.rpExpanded
{
background-position: 0 -400 !important;
font: 14px/24px "Segoe UI", Arial, sans-serif;
padding-bottom: 0px;
padding-top: 0px;
background-image: images/button_downloadtopdf.gif;
}
.myStyle DIV.rpExpanded
{
background-position: 0 -400 !important;
}
</
style
>
<
telerik:RadPanelBar
id
=
"pbApplicantDetail"
runat
=
"server"
Width
=
"782px"
OnClientItemClicked
=
"pbApplicantDetail_ItemClicked"
BackColor
=
"#FFFFCC"
CssClass
=
"myStyle"
>
<
Items
>
<
telerik:RadPanelItem
Text
=
"Applicant Details"
Value
=
"piApplicantDetail"
>
<
HeaderTemplate
>
<
Applicant:Message
runat
=
"server"
id
=
"UCApplicantDetail"
></
Applicant:Message
>
</
HeaderTemplate
>
</
telerik:RadPanelItem
>
<
telerik:RadPanelItem
runat
=
"server"
Text
=
"Rule Information"
Visible
=
"true"
Expanded
=
"true"
BorderStyle
=
"None"
Width
=
"779px"
CssClass
=
"myStyle"
>
<
HeaderTemplate
>
<
asp:PlaceHolder
ID
=
"ruleHeaderPlaceholder"
runat
=
"server"
></
asp:PlaceHolder
>
<%--<
RuleHeader:Message
runat
=
"server"
ID
=
"UCRulesHeader"
/>--%>
</
HeaderTemplate
>
<
ContentTemplate
>
<%--<
asp:PlaceHolder
ID
=
"ruleBodyPlaceholder"
runat
=
"server"
></
asp:PlaceHolder
>--%>
<
Rules:Message
runat
=
"server"
id
=
"UCRulesDetail"
></
Rules:Message
>
</
ContentTemplate
>
</
telerik:RadPanelItem
>
<
script
type
=
"text/javascript"
>
function findControl(tagName, controlId) {
var aControls = document.getElementsByTagName(tagName);
if (aControls == null)
return null;
for (var i = 0; i <
aControls.length
; i++) {
var
j
=
aControls
[i].id.lastIndexOf(controlId);
if ((j - 1) && (j == (aControls[i].id.length - controlId.length)))
return aControls[i];
}
return null;
}
function HighlightRow(focus, CStableElemID, CSControlID) {
//alert("I'm Here")
var
input
=
findControl
(CStableElemID, CSControlID)
//alert(input)
if (focus)
input.className
=
"tableFormRowSelected"
;
else
input.className
=
"tableFormRowUnselected"
;
}
</script>
<
table
id
=
"tableform"
runat
=
"server"
>
<
tr
id
=
"fromAccountRow"
>
<
td
nowrap
=
"nowrap"
>
<
asp:Label
ID
=
"lblFromAccount"
runat
=
"server"
Text
=
"From Account: "
></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"fromAccount"
Runat
=
"server"
AutoPostBack
=
"True"
CausesValidation
=
"False"
DropDownWidth
=
"330px"
Width
=
"200px"
EnableLoadOnDemand
=
"true"
EmptyMessage
=
"Please Select"
HighlightTemplatedItems
=
"true"
AllowCustomText
=
"true"
OnClientFocus
=
"HighlightRow(true, 'tr', 'fromAccountRow')"
OnClientBlur
=
"HighlightRow(false, 'tr', 'fromAccountRow')"
>
<
ItemTemplate
>
<
ul
>
<
li
class
=
"fromAccountCol1"
>a</
li
>
<
li
class
=
"fromAccountCol2"
>b</
li
>
<
li
class
=
"fromAccountCol3"
>d</
li
>
</
ul
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFromAccountValidator"
runat
=
"server"
ErrorMessage
=
"!"
ControlToValidate
=
"fromAccount"
>
</
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
id
=
"fromAccountTextRow"
>
<
td
>
<
asp:Label
ID
=
"lblFromAccountText"
runat
=
"server"
Text
=
"Text On Account Statement: "
></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadTextBox
ID
=
"Description"
runat
=
"server"
MaxLength
=
"128"
onBlur
=
"HighlightRow(false, 'tr', 'fromAccountTextRow')"
OnFocus
=
"HighlightRow(true, 'tr', 'fromAccountTextRow')"
></
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
ID
=
"FromDescriptionRequiredValidator"
runat
=
"server"
ErrorMessage
=
"!"
ControlToValidate
=
"Description"
></
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
id
=
"toAccountRow"
>
<
td
>
<
asp:Label
ID
=
"lblToAccount"
runat
=
"server"
Text
=
"To Account: "
></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"toAccount"
runat
=
"server"
CausesValidation
=
"false"
EmptyMessage
=
"Please Select"
DropDownWidth
=
"330px"
Width
=
"200px"
AllowCustomText
=
"True"
HighlightTemplatedItems
=
"true"
OnClientFocus
=
"HighlightRow(true, 'tr', 'toAccountRow')"
OnClientBlur
=
"HighlightRow(false, 'tr', 'toAccountRow')"
>
<
ItemTemplate
>
<
ul
>
<
li
class
=
"toAccountCol1"
><%# DataBinder.Eval(Container.DataItem, "Account")%></
li
>
<
li
class
=
"toAccountCol2"
><%# DataBinder.Eval(Container.DataItem, "AccountNumber")%></
li
>
<
li
class
=
"toAccountCol3"
><%# DataBinder.Eval(Container.DataItem, "Balance", "{0:c}")%></
li
>
</
ul
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
id
=
"toAccountTextRow"
>
<
td
>
<
asp:Label
ID
=
"lblToAccountText"
runat
=
"server"
Text
=
"Reference: "
></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadTextBox
ID
=
"Reference"
runat
=
"server"
MaxLength
=
"128"
onBlur
=
"HighlightRow(false, 'tr', 'toAccountTextRow')"
OnFocus
=
"HighlightRow(true, 'tr', 'toAccountTextRow')"
></
telerik:RadTextBox
><
asp:RequiredFieldValidator
ID
=
"ToDescriptionRequiredValidator"
runat
=
"server"
ErrorMessage
=
"!"
ControlToValidate
=
"Reference"
></
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
</
table
>
<
telerik:RadButton
ID
=
"btnTransfer"
runat
=
"server"
Text
=
"Transfer"
></
telerik:RadButton
>