or
public
void
ResetFormControlValue(Control parent)
{
foreach
(Control c
in
parent.Controls)
{
if
(c.Controls.Count > 0)
{
ResetFormControlValue(c);
}
else
{
switch
(c.GetType().ToString())
{
case
"Telerik.Web.UI.RadNumericTextBox"
:
break
;
case
"Telerik.Web.UI.RadTextBox"
:
break
;
case
"Telerik.Web.UI.DatePickingInput"
:
// Clear all RadDatePicker
((RadDateInput)c).Clear();
break
;
}
}
}
}
id name sex
'1001' 'Tony' 'male'
'1002 ' 'Suny' 'female'
now,When I select the fist row,id is '1001',then the following selectedItems will add the row:
id name address
'1001' 'Tony' 'Shanghai,China'
of couse,when I re-select the former radgrid's row,with the id is '1001' ,the selectedItems will remove it accordingly.Please had better not use the session,if you think the session is available,please account for that,I am a rookie,Thanks!