Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Intraweb 15.1.5 - IWEdit in IWGrid.Cell problem
#8
(10-05-2019, 06:10 PM)piotr.lewicki@mapi.com.pl Wrote:
(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... :-(
 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
     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
Reply


Messages In This Thread
RE: Intraweb 15.1.5 - IWEdit in IWGrid.Cell problem - by DanBarclay - 10-05-2019, 11:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)