Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
Dynamic button template column does not fire item command event
posted

Hi everybody, I'm wandering if someone can help me with the following problem. 

I have scenario where there is multiple grids on the page. Selection on one grid repopulates other grids. Every grid has template column with button for drill down functionality. Button column template is part of the grid and bound columns are created dynamically in the code behind. Because columns could be different, in code behind all columns except button are removed and recreated. Ajax is disabled on all grids. At first pass it works correctly and grid hits both Selection and ItemCommand events. on the second click on image button I'm getting error that FindControl requires unique id's. In the page source view I'm not able to find duplicates. 

Parents Reply Children
No Data