TIWGrid + TIWBSButton

<< Click to Display Table of Contents >>

Navigation:  Forum >

TIWGrid + TIWBSButton

Forum link

 


 

10-19-2019, 11:00 PM:

 

Hello. I am rewriting my project from regular IW to IWBootstrap (3).

 

I have a table (TIWGRid) in which several dynamic buttons are created, the code was like this:

 

Code:

 

  with grdGetNumber.Cell[ i, 4 ] do

 

    begin

 

     Control := TIWButton.Create( Self );

 

     with TIWButton( Control ) do

 

      begin

 

       Caption := 'Buy';

 

       Width  := 60;

 

       Height := 24;

 

       Name   := 'BTNGETNUMBER' + IntToStr( i );

 

       OnAsyncClick := OnBuyKeyAsyncClick;

 

       Tag    := i;

 

      end;

 

    end;

 

Now I want to use TIWBSButton, I added Parent to the code:

 

Code:

 

   &nbsp;&nbsp;with TIWBSButton( Control ) do

 

      begin

 

     &nbsp;&nbsp;Parent  := TWinControl( grdGetNumber );

 

     &nbsp;&nbsp;BSButtonStyle := bsbsPrimary;

 

     &nbsp;&nbsp;...

 

      end;

 

 

 

The buttons on the page are displayed, but the page does not load to the end, the loading animation icon is constantly visible. How to add TIWBSButton to TIWGrid ?

 


 

12-06-2019, 12:17 AM:

 

I'm sure that there is a JavaScript error at some stage which blocks the loading of your page.

 

Open your browser console window when the loading animation gets stuck. Check the error messages there. It will tell you what is missing/wrong