Now create
Namespace\ModuleName\Block\Adminhtml\Payment\Edit\Form\Renderer\Fieldset\Customergrid.php
<?php
class Namespace_ModuelName_Block_Adminhtml_Payment_Edit_Form_Renderer_Fieldset_Customergrid extends Varien_Data_Form_Element_Abstract{
protected $_element;
public function getElementHtml()
{
return Mage::helper('core')->getLayout()->createBlock('blockname_node/adminhtml_payment_edit_form_renderer_fieldset_customer_grid')->toHtml();
}
}
Then Create
Namespace\ModuelName\Block\Adminhtml\Payment\Edit\Form\Renderer\Fieldset\Customer\Grid.php
One suggestion is that you could do this with a massaction. This would allow you to work with submissions of a grid giving you all the selected rows on your submit action.
Have a look at the function _prepareMassaction on the block Mage_Adminhtml_Block_Customer_Grid` for what is required for the massactions to work.
I recently build a module in which i could generate some pdf quotation also by selecting customers and products. I came across the following documentation which might be usefull to you. This uses magento product selector widget to add lines to you own module. I think its what your looking for. I haven't tested it yet but i am adding it to my module. Maybe it can be your solution. Let me know how it works if youre going to try it.
Best Answer
We can display grid in admin form using custom field type