I have a RadGrid which has a linkbutton for deleting a row from the grid and I use RadConfirm to display message to user to confirm the delete, if user chooses yes/ok then the record should be deleted.
However before the radconfirm is being called the record from the grid is deleted and then the confirm dialog box appears.
The version I am using version 2012.1.411.40 of teleik and facing issue in this version, can you please help or let me know where am I going wrong?
Updating with additional information:
In the grid we are adding a link button using the Command Template on the bottom of the grid and onclientclick, we have a javascript to check whether any row is selected in the grid and based on that, we display message (ALERT) asking the user to select the record to be deleted. If the row is already selected then we display the (CONFIRM) to check if the user really wants to delete the row. And based on the user choice yes/no the record is deleted.
However, using RADConfirm in this scenario works differently, the row is first deleted and then the message is displayed. This is the issue.
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
table
width
=
"100%"
>
<
tr
>
<
td
style
=
"width:10%"
align
=
"right"
>Mac Type: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:DropDownList
ID
=
"ddlMacType"
runat
=
"server"
AutoPostBack
=
"false"
Width
=
"205px"
></
asp:DropDownList
></
td
>
<
asp:RequiredFieldValidator
ID
=
"valmac"
runat
=
"server"
ControlToValidate
=
"ddlmacType"
Display
=
"Dynamic"
ErrorMessage
=
"*"
ForeColor
=
"Red"
/>
<
td
style
=
"width:10%"
align
=
"right"
>SSN: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtSSN"
runat
=
"server"
Width
=
"200px"
Text='<%# Bind("strSSN") %>'></
asp:TextBox
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>EDIPI: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtEDIPI"
runat
=
"server"
Width
=
"200px"
Text='<%# Bind("strEDIPI") %>'></
asp:TextBox
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>AKO Logon: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtAKO"
runat
=
"server"
Width
=
"200px"
Text='<%# Bind("strAkoLogon") %>'></
asp:TextBox
></
td
>
</
tr
>
<
tr
>
<
td
style
=
"height:5px"
></
td
>
</
tr
>
<
tr
>
<
td
style
=
"width:10%"
align
=
"right"
>LName: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtLName"
runat
=
"server"
Width
=
"200px"
Text='<%# Bind("strLName") %>'></
asp:TextBox
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>FName: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtFname"
runat
=
"server"
Width
=
"200px"
Text='<%# Bind("strFname") %>'></
asp:TextBox
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>MI: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtMI"
runat
=
"server"
Width
=
"200px"
Text='<%# Bind("strMI") %>'></
asp:TextBox
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>Gen Qual: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:DropDownList
ID
=
"ddlGenQual"
runat
=
"server"
AutoPostBack
=
"false"
Width
=
"205px"
></
asp:DropDownList
></
td
>
</
tr
>
<
tr
>
<
td
style
=
"height:5px"
></
td
>
</
tr
>
<
tr
>
<
td
style
=
"width:10%"
align
=
"right"
>Emp Type: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:DropDownList
ID
=
"ddlEmpType"
runat
=
"server"
AutoPostBack
=
"false"
Width
=
"205px"
></
asp:DropDownList
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>Rank/Salutation: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:DropDownList
ID
=
"ddlSalutation"
runat
=
"server"
AutoPostBack
=
"false"
Width
=
"205px"
></
asp:DropDownList
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>Job Title: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtJobTitle"
runat
=
"server"
Width
=
"200px"
Text='<%# Bind("strJobTitle") %>'></
asp:TextBox
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>Pick Unit: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:DropDownList
ID
=
"ddlunit"
runat
=
"server"
AutoPostBack
=
"false"
Width
=
"205px"
></
asp:DropDownList
></
td
>
</
tr
>
<
tr
>
<
td
style
=
"height:5px"
></
td
>
</
tr
>
<
tr
>
<
td
style
=
"width:10%"
align
=
"right"
>Requires Email: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:CheckBox
ID
=
"cbEmail"
runat
=
"server"
Checked='<%# IIF(Convert.tostring(Eval("bitEmail"))="",false, Eval("bitEmail")) %>' /></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>Military Phone: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtPhone"
runat
=
"server"
Width
=
"200px"
Text='<%# Bind("strPhoneNumber") %>'></
asp:TextBox
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>Requires LD: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:CheckBox
ID
=
"cbLD"
runat
=
"server"
Checked='<%# IIF(Convert.tostring(Eval("bitLongDistance"))="",false, Eval("bitLongDistance")) %>' /></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>Requires VM: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:CheckBox
ID
=
"cbVM"
runat
=
"server"
Checked='<%# IIF(Convert.tostring(Eval("bitVoiceMail"))="",false, Eval("bitVoiceMail")) %>' /></
td
>
</
tr
>
<
tr
>
<
td
style
=
"height:5px"
></
td
>
</
tr
>
<
tr
>
<
td
style
=
"width:10%"
align
=
"right"
></
td
>
<
td
style
=
"width:15%"
align
=
"left"
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>Zero Out: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtZeroOut"
runat
=
"server"
Width
=
"200px"
Text='<%# Bind("strVoiceExt") %>'></
asp:TextBox
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
>Notes: </
td
>
<
td
style
=
"width:15%"
align
=
"left"
><
asp:TextBox
ID
=
"txtNotes"
runat
=
"server"
Width
=
"260px"
TextMode
=
"MultiLine"
Height
=
"60px"
Text='<%# Bind("strNotes") %>'></
asp:TextBox
></
td
>
<
td
style
=
"width:10%"
align
=
"right"
></
td
>
<
td
style
=
"width:15%"
align
=
"left"
></
td
>
</
tr
>
<
tr
>
<
td
style
=
"height:5px"
></
td
>
</
tr
>
</
table
>
<
table
width
=
"100%"
>
<
tr
>
<
td
style
=
"width:25%"
></
td
>
<
td
style
=
"width:50%"
align
=
"center"
>
<
asp:LinkButton
ID
=
"lnkSubmit"
runat
=
"server"
text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>'
CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'></
asp:LinkButton
>
<
asp:LinkButton
ID
=
"lnkCancel"
runat
=
"server"
CausesValidation
=
"false"
CommandName
=
"Cancel"
Text
=
"Cancel"
></
asp:LinkButton
>
</
td
>
<
td
style
=
"width:25%"
></
td
>
</
tr
>
</
table
>
</
FormTemplate
>
Protected Sub myRadGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles myRadGrid.ItemCommand
If (e.CommandName = RadGrid.PerformInsertCommandName) Then
do something
End if
If (e.CommandName = RadGrid.UpdateCommandName AndAlso e.Item.IsInEditMode) Then
do something
end if
End sub
Hi I am testing the google-like example but encounter a problem when asking for the CurrentFilterValue, here is the code,
protected
void
RadGrid_ItemCommand(
object
source, GridCommandEventArgs e)
{
if
((e.CommandName ==
"Filter"
))
{
string
something =
""
;
foreach
(GridColumn column
in
e.Item.OwnerTableView.Columns)
{
something = column.CurrentFilterValue;
column.CurrentFilterValue =
string
.Empty;
column.CurrentFilterFunction = GridKnownFunction.NoFilter;
}
}
}
The issue is that the string something is always “” for all the values. I test the same code with a default GridColumn and it works fine (change the value of “something”) but not with the current google-like filtering example.
The code in the CustomeFilter is the same as the demo code(MyCustomFilteringColumnCS.cs).
Thanks
void list1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
RadComboBox estado = (RadComboBox)sender;
GridEditFormItem editItem = (GridEditFormItem)estado.NamingContainer;
estado_ps4 = estado.SelectedValue;
////
//mensaje = estado.SelectedValue;
//string html = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";
//Response.Write(html);
switch (estado.SelectedValue)
{
case "Adjudicado":
editItem[
"contratista_prc"].Visible = true;
editItem[
"montocontratado_prc"].Visible = true;
editItem[
"negociacion_prc"].Visible = true;
break;
case "Por Adjudicar":
editItem[
"contratista_prc"].Visible = false;
editItem[
"montocontratado_prc"].Visible = false;
editItem[
"observacion_prc"].Visible = false;
editItem[
"negociacion_prc"].Visible = false;
break;
case "Contratista Fallido":
editItem[
"numeroproceso_prc"].Enabled = false;
editItem[
"nombre_con"].Enabled = false;
editItem[
"fechapublicacion_ps4"].Enabled = false;
editItem[
"preguntasdesde_ps4"].Enabled = false;
editItem[
"preguntashasta_ps4"].Enabled = false;
editItem[
"recepcionofertas_ps4"].Enabled = false;
editItem[
"aperturaofertas_ps4"].Enabled = false;
editItem[
"solicitarconvalidacion_ps4"].Enabled = false;
editItem[
"entregaconvalidacion_ps4"].Enabled = false;
editItem[
"actacalificacion_ps4"].Enabled = false;
editItem[
"iniciopuja_ps4"].Enabled = false;
editItem[
"finpuja_ps4"].Enabled = false;
editItem[
"adjudicacion_ps4"].Enabled = false;
editItem[
"contratista_prc"].Visible = true;
editItem[
"montocontratado_prc"].Visible = true;
editItem[
"negociacion_prc"].Visible = true;
break;
case "Desierto":
editItem[
"numeroproceso_prc"].Enabled = false;
editItem[
"nombre_con"].Enabled = false;
editItem[
"fechapublicacion_ps4"].Enabled = false;
editItem[
"preguntasdesde_ps4"].Enabled = false;
editItem[
"preguntashasta_ps4"].Enabled = false;
editItem[
"recepcionofertas_ps4"].Enabled = false;
editItem[
"aperturaofertas_ps4"].Enabled = false;
editItem[
"solicitarconvalidacion_ps4"].Enabled = false;
editItem[
"entregaconvalidacion_ps4"].Enabled = false;
editItem[
"actacalificacion_ps4"].Enabled = false;
editItem[
"iniciopuja_ps4"].Enabled = false;
editItem[
"finpuja_ps4"].Enabled = false;
editItem[
"adjudicacion_ps4"].Enabled = false;
editItem[
"contratista_prc"].Visible = true;
editItem[
"montocontratado_prc"].Visible = true;
editItem[
"contratista_prc"].Visible = false;
editItem[
"montocontratado_prc"].Visible = false;
editItem[
"negociacion_prc"].Visible = true;
editItem[
"observacion_prc"].Visible = false;
break;
}
////
//mensaje = estado.SelectedValue;
//string html1 = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";
//Response.Write(html1);
////
//estado_ps4 = estado.SelectedValue;
}
void montoadjudicado_TextChanged(object sender, EventArgs e)
{
RadNumericTextBox monto = (RadNumericTextBox)sender;
GridEditFormItem editItem = (GridEditFormItem)monto.NamingContainer;
if (Convert.ToDouble(monto.Value) > objpaso4.montoreferencial_ps2)
editItem[
"observacion_prc"].Visible = true;
else
editItem[
"observacion_prc"].Visible = false;
}
void list_PreRender(object sender, EventArgs e)
{
RadComboBox estado = (RadComboBox)sender;
GridEditFormItem editItem = (GridEditFormItem)estado.NamingContainer;
RadDateTimePicker fecha = (RadDateTimePicker)editItem["fechapublicacion_ps4"].Controls[0];
if (fecha.SelectedDate < DateTime.Now)
editItem[
"fechapublicacion_ps4"].Enabled = false;
else
editItem[
"fechapublicacion_ps4"].Enabled = true;
fecha = (
RadDateTimePicker)editItem["preguntasdesde_ps4"].Controls[0];
if (fecha.SelectedDate < DateTime.Now)
editItem[
"preguntasdesde_ps4"].Enabled = false;
else
editItem[
"preguntasdesde_ps4"].Enabled = true;
fecha = (
RadDateTimePicker)editItem["preguntashasta_ps4"].Controls[0];
if (fecha.SelectedDate < DateTime.Now)
editItem[
"preguntashasta_ps4"].Enabled = false;
else
editItem[
"preguntashasta_ps4"].Enabled = true;
fecha = (
RadDateTimePicker)editItem["recepcionofertas_ps4"].Controls[0];
if (fecha.SelectedDate < DateTime.Now)
editItem[
"recepcionofertas_ps4"].Enabled = false;
else
editItem[
"recepcionofertas_ps4"].Enabled = true;
fecha = (
RadDateTimePicker)editItem["aperturaofertas_ps4"].Controls[0];
if (fecha.SelectedDate < DateTime.Now)
editItem[
"aperturaofertas_ps4"].Enabled = false;
else
editItem[
"aperturaofertas_ps4"].Enabled = true;
fecha = (
RadDateTimePicker)editItem["solicitarconvalidacion_ps4"].Controls[0];
if (fecha.SelectedDate < DateTime.Now)
editItem[
"solicitarconvalidacion_ps4"].Enabled = false;
else
editItem[
"solicitarconvalidacion_ps4"].Enabled = true;
fecha = (
RadDateTimePicker)editItem["entregaconvalidacion_ps4"].Controls[0];
if (fecha.SelectedDate < DateTime.Now)
editItem[
"entregaconvalidacion_ps4"].Enabled = false;
else
editItem[
"entregaconvalidacion_ps4"].Enabled = true;
fecha = (
RadDateTimePicker)editItem["actacalificacion_ps4"].Controls[0];
if (fecha.SelectedDate < DateTime.Now)
editItem[
"actacalificacion_ps4"].Enabled = false;
else
editItem[
"actacalificacion_ps4"].Enabled = true;
fecha = (
RadDateTimePicker)editItem["adjudicacion_ps4"].Controls[0];
if (fecha.SelectedDate < DateTime.Now)
editItem[
"adjudicacion_ps4"].Enabled = false;
else
editItem[
"adjudicacion_ps4"].Enabled = true;
////
//mensaje = estado_ps4;
//string html2 = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";
//Response.Write(html2);
////
////
//mensaje = estado.SelectedValue + "-------";
//string html3 = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";
//Response.Write(html3);
////
if(estado_ps4.Equals(""))
switch (estado.SelectedValue)
{
case "Adjudicado":
editItem[
"contratista_prc"].Visible = true;
editItem[
"montocontratado_prc"].Visible = true;
editItem[
"negociacion_prc"].Visible = true;
break;
case "Por Adjudicar":
editItem[
"contratista_prc"].Visible = false;
//editItem["montocontratado_prc"].Visible = false;
editItem[
"observacion_prc"].Visible = false;
editItem[
"negociacion_prc"].Visible = false;
break;
case "Contratista Fallido":
editItem[
"numeroproceso_prc"].Enabled = false;
editItem[
"nombre_con"].Enabled = false;
editItem[
"fechapublicacion_ps4"].Enabled = false;
editItem[
"preguntasdesde_ps4"].Enabled = false;
editItem[
"preguntashasta_ps4"].Enabled = false;
editItem[
"recepcionofertas_ps4"].Enabled = false;
editItem[
"aperturaofertas_ps4"].Enabled = false;
editItem[
"solicitarconvalidacion_ps4"].Enabled = false;
editItem[
"entregaconvalidacion_ps4"].Enabled = false;
editItem[
"actacalificacion_ps4"].Enabled = false;
editItem[
"iniciopuja_ps4"].Enabled = false;
editItem[
"finpuja_ps4"].Enabled = false;
editItem[
"adjudicacion_ps4"].Enabled = false;
editItem[
"contratista_prc"].Visible = true;
editItem[
"montocontratado_prc"].Visible = true;
editItem[
"negociacion_prc"].Visible = true;
break;
case "Desierto":
editItem[
"numeroproceso_prc"].Enabled = false;
editItem[
"nombre_con"].Enabled = false;
editItem[
"fechapublicacion_ps4"].Enabled = false;
editItem[
"preguntasdesde_ps4"].Enabled = false;
editItem[
"preguntashasta_ps4"].Enabled = false;
editItem[
"recepcionofertas_ps4"].Enabled = false;
editItem[
"aperturaofertas_ps4"].Enabled = false;
editItem[
"solicitarconvalidacion_ps4"].Enabled = false;
editItem[
"entregaconvalidacion_ps4"].Enabled = false;
editItem[
"actacalificacion_ps4"].Enabled = false;
editItem[
"iniciopuja_ps4"].Enabled = false;
editItem[
"finpuja_ps4"].Enabled = false;
editItem[
"adjudicacion_ps4"].Enabled = false;
editItem[
"contratista_prc"].Visible = true;
editItem[
"montocontratado_prc"].Visible = true;
editItem[
"contratista_prc"].Visible = false;
editItem[
"montocontratado_prc"].Visible = false;
editItem[
"negociacion_prc"].Visible = true;
editItem[
"observacion_prc"].Visible = false;
break;
}
estado_ps4 = estado.SelectedValue;
}
void tipocontratacion_PreRender(object sender, EventArgs e)
{
TextBox texto = (TextBox)sender;
GridEditFormItem editItem = (GridEditFormItem)texto.NamingContainer;
RadDateTimePicker fecha = (RadDateTimePicker)editItem["iniciopuja_ps4"].Controls[0];
if (!texto.Text.ToLower().Contains("subasta inversa") || fecha.SelectedDate < DateTime.Now)
editItem[
"iniciopuja_ps4"].Enabled = false;
fecha = (
RadDateTimePicker)editItem["finpuja_ps4"].Controls[0];
if (!texto.Text.ToLower().Contains("subasta inversa") || fecha.SelectedDate < DateTime.Now)
editItem[
"finpuja_ps4"].Enabled = false;
if (texto.Text.ToLower().Contains("subasta inversa"))
editItem[
"negociacion_prc"].Enabled = true;
else
editItem[
"negociacion_prc"].Enabled = false;
editItem[
"nombre_con"].Enabled = false;
}
private DateTime verificarFecha(string fecha)
{
if (fecha.Equals(""))
return Convert.ToDateTime("1900-01-01");
else
return Convert.ToDateTime(fecha);
}
private bool validarCampo(string campo, DateTime fecha, ValidacionFecha[] objvalidacion)
{
bool respuesta = false;
string estado = "";
DateTime fecha2 = DateTime.Now;
for (int i = 0; i < objvalidacion.Length; i++)
{
if (objvalidacion[i].campofecha_vaf.Equals(campo))
{
estado =
"encontro";
switch (objvalidacion[i].campovalidar_vaf)
{
case "fechapublicacion_ps4":
fecha2 = objpaso4.fechapublicacion_ps4;
break;
case "preguntasdesde_ps4":
fecha2 = objpaso4.preguntasdesde_ps4;
break;
case "preguntashasta_ps4":
fecha2 = objpaso4.preguntashasta_ps4;
break;
case "recepcionofertas_ps4":
fecha2 = objpaso4.recepcionofertas_ps4;
break;
case "aperturaofertas_ps4":
fecha2 = objpaso4.aperturaofertas_ps4;
break;
case "solicitarconvalidacion_ps4":
fecha2 = objpaso4.solicitarconvalidacion_ps4;
break;
case "entregaconvalidacion_ps4":
fecha2 = objpaso4.entregaconvalidacion_ps4;
break;
case "actacalificacion_ps4":
fecha2 = objpaso4.actacalificacion_ps4;
break;
case "iniciopuja_ps4":
fecha2 = objpaso4.iniciopuja_ps4;
break;
case "finpuja_ps4":
fecha2 = objpaso4.finpuja_ps4;
break;
case "adjudicacion_ps4":
fecha2 = objpaso4.adjudicacion_ps4;
break;
}
switch (objvalidacion[i].operador_vaf)
{
case "Entre":
if (objvalidacion[i].unidadtiempo_vaf.Equals("Das"))
{
if (fecha >= fecha2.AddDays(objvalidacion[i].diainicio_vaf) && fecha <= fecha2.AddDays(objvalidacion[i].diafinal_vaf))
respuesta =
true;
else
{
respuesta =
false;
mensaje += objvalidacion[i].etiquetacampofecha_vaf +
" debe estar entre " + objvalidacion[i].diainicio_vaf + " y " + objvalidacion[i].diafinal_vaf + " das despus de " + objvalidacion[i].etiquetacampovalidar_vaf + "\\n";
}
}
else
{
if (fecha >= fecha2.AddMinutes(objvalidacion[i].diainicio_vaf) && fecha <= fecha2.AddMinutes(objvalidacion[i].diafinal_vaf))
respuesta =
true;
else
{
respuesta =
false;
mensaje += objvalidacion[i].etiquetacampofecha_vaf +
" debe estar entre " + objvalidacion[i].diainicio_vaf + " y " + objvalidacion[i].diafinal_vaf + " minutos despus de " + objvalidacion[i].etiquetacampovalidar_vaf + "\\n";
}
}
break;
case "Mayor a":
if (objvalidacion[i].unidadtiempo_vaf.Equals("Das"))
{
if (fecha >= fecha2.AddDays(objvalidacion[i].diainicio_vaf))
respuesta =
true;
else
{
respuesta =
false;
mensaje += objvalidacion[i].etiquetacampofecha_vaf +
" debe ser mayor en " + objvalidacion[i].diainicio_vaf + " das a " + objvalidacion[i].etiquetacampovalidar_vaf + "\\n";
}
}
else
{
if (fecha >= fecha2.AddMinutes(objvalidacion[i].diainicio_vaf))
respuesta =
true;
else
{
respuesta =
false;
mensaje += objvalidacion[i].etiquetacampofecha_vaf +
" debe ser mayor en " + objvalidacion[i].diainicio_vaf + " minutos a " + objvalidacion[i].etiquetacampovalidar_vaf + "\\n";
}
}
break;
}
}
else
estado =
"no encontro";
}
if (estado.Equals("no encontro"))
return true;
else
return respuesta;
}
private void lanzarVentanaInformacion()
{
string html = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";
Response.Write(html);
}
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
if (rowindex > -1)
{
RadGrid1.Items[rowindex].Edit =
true;
rowindex = -1;
}
RadGrid1.Rebind();
}
}
}