10-05-2019, 11:45 PM
(10-05-2019, 06:10 PM)piotr.lewicki@mapi.com.pl Wrote:Be sure to assign the unique name. Unique to the page, so be sure there isn't another 'btnXY'. I use the grid .name in front like(10-05-2019, 05:34 PM)MJS@mjs.us Wrote: The buttons will need a unique 'Name' value assigned after being created. Something like:
Control := TMyIWEdit.Create(IWGrid1);
with TMyIWEdit(Control) do
begin
Name := 'btn'+IntToStr(i)+IntToStr(j);
...
thanks, but problem still exists... :-(
Name:=self.name+'btn'[b]+IntToStr(i)+IntToStr(j);[/b]
It's too easy to duplicate a name with something else on the page and HTML simply won't put up with it.
I don't use edit controls, but with checkboxes and radio boxes I also include.
SubmitOnAsyncEvent:=true;
I manage all of my cell controls in the grid RenderCell procedure. That involves checking to insure that cell's control is not already created.
Another point, although it's supposed to be OK, I just don't cascade "with" statements. Having the IWEdit inside the Cell should be fine, I just don't trust it. (others will disagree with me on that!)
Dan