Step 1: Understanding the concept.
The question is based on modified reproductive structures where floral buds or inflorescences store food and contribute to vegetative propagation.
Step 2: Analysis of Asparagus.
Asparagus stores food in modified stems (cladodes) but not in floral buds. Hence, it is incorrect.
Step 3: Analysis of Agave.
In Agave, floral buds in the inflorescence develop into bulbils which store food and help in vegetative propagation. Hence, it is correct.
Step 4: Analysis of Dioscorea.
Dioscorea forms tubers for food storage, not floral buds. Hence, it is incorrect.
Step 5: Analysis of Onion.
Onion stores food in bulb (modified leaves), not floral buds. Hence, it is incorrect.
Step 6: Final conclusion.
Only Agave satisfies the condition, so it is the correct answer.
\[
\boxed{(2)}
\]