onSubviewrender method executed twice

when i open subview of a datatable,the onsubViewrender method is executed twice.why this is happening twice can anybody please help.
i should executed only once.

please suggest .

thanks in adv.
rrs

You can use onSubViewCreate, which will be called only once. onSubView render can be called multiple times, as it is activated each time when related area is repainted.

In case of sub-grid it occurs twice, as sub-grid need to repaint self after data loading.