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.
Hello Bane,
Thank you for contacting Infragistics! We received your support request concerning dynamic button template and firing of the item command event, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your case and I am looking into this matter and will get back to you by the end of the day Tuesday with more information or questions for you.
Sincerely,
Mike P.
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com
Thank you for your patience. I have done some looking into this matter and I have a few questions concerning this matter. Are you clearing your datasource between rebinding of data to the gird? If so how are you doing this? How are you clearing and recreating the columns? How do you have the button template and template column setup? What properties are you using with the gird? Do you have EnableDataViewState enabled? What version of NetAdvantage are you using?
Hi Mike,
thanks for the effort, but I'm not sure it would work. The problem is in fact that with IE8 it never gets to the OnClientClick of the button, after hitting the RowSelectionChange it goes to server. On IE9 there is no problem with it. Any idea why such a difference between browser versions.
Thanks in advance, Bane
Bane
Thank you for the update. My thought with this suggestion was if you don’t require the client side RowSelectionChanging event you could leave it unhandled and this would run. I have tested this with the version of the sample you have provided to me where you handle the RowSelectionChanged in IE8 and the OnClientClick fires and removes the rows from the selected rows collection. Have you tested this this in your version of your application.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
I am following up to see if the information provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.
Hi Mike, unfortunatelly I need row select as well for that even so your solution would not work. There is other functionality on row select that I need. For now it leaves me with puzzle why it works on IE9 and not on IE8. If you can lead me where to look for tha answer would be great.
Thanks and regards,
I have created a new private case for this matter as it is a separate issue from the original question. The case number is CAS-99363-N1R7L2. You can access it by going to your account then support activity:
https://www.infragistics.com/my-account/support-activity
I will continue to support you with this though this case.