Hello friends:
My problem is that i have two editing modes in a grid, the two have to call to updateCommand but the first button have to execute one method and the second buttom execute other method.
in the itemCommand i have this code:
and the UpdateCommand code:
then, in the updateCommand, e.CommandArgument = ""; and i need distinguish the buttom
Thanks for the help!!
My problem is that i have two editing modes in a grid, the two have to call to updateCommand but the first button have to execute one method and the second buttom execute other method.
in the itemCommand i have this code:
if (e.CommandName == "Desasignar") { //la condicion indica que si el campo fecha_baja esta vacio se ejecute la linea, si no ya esta dado de baja if (item.Cells[9].Text == " ") (item as GridEditableItem).FireCommandEvent(RadGrid.EditCommandName, "Desasignar"); } if (e.CommandName == "EliminarDispositivo") { //la condicion indica que si el campo fecha_baja esta vacio se ejecute la linea, si no ya esta dado de baja if (item.Cells[9].Text == " ") (item as GridEditableItem).FireCommandEvent(RadGrid.EditCommandName, "EliminarDispositivo"); }and the UpdateCommand code:
//Si el argumento es desasignarif(e.CommandArgument == "Desasignar"){ .......}//Si el argumento es Eliminar el dispositivoif (e.CommandArgument == "EliminarDispositivo"){ .......}then, in the updateCommand, e.CommandArgument = ""; and i need distinguish the buttom
Thanks for the help!!
