Jump to content

Recommended Posts

Posted (edited)

Selamlar, 

Row Widget özelliği kullandığımız gridlerde, istediğimiz satırın otomatik açık gelmesini nasıl sağlayabilirim ?

 

image.thumb.png.8ed5dd0c0684dba83d71ebdc8e1a6b59.png

Edited by Yakup ULUTAŞ
  • 2 weeks later...
Posted

Hello @Yakup ULUTAŞ

It may also help to use the AfterLoad event:

procedure TMainForm.UniDBGrid1AfterLoad(Sender: TUniCustomDBGrid);
begin
  with UniDBGrid1, UniDBGrid1.JSInterface do
  begin
    DataSource.DataSet.MoveBy(3);
    JSCode(JSName +'.getPlugin("rowWidget").toggleRow('+ (DataSource.DataSet.RecNo - 1).ToString +', '+ JSName +'.getStore().data.items['+ (DataSource.DataSet.RecNo - 1).ToString +']);');
  end;

end;

 

Posted
On 2/13/2025 at 6:55 PM, Sherzod said:

Hello @Yakup ULUTAŞ

It may also help to use the AfterLoad event:

procedure TMainForm.UniDBGrid1AfterLoad(Sender: TUniCustomDBGrid);
begin
  with UniDBGrid1, UniDBGrid1.JSInterface do
  begin
    DataSource.DataSet.MoveBy(3);
    JSCode(JSName +'.getPlugin("rowWidget").toggleRow('+ (DataSource.DataSet.RecNo - 1).ToString +', '+ JSName +'.getStore().data.items['+ (DataSource.DataSet.RecNo - 1).ToString +']);');
  end;

end;

 

 

The code runs and expands correctly, but when the form containing the grid first opens, this error appears on the screen.

 

image.png.409d7fb9aeeba17d718d958ffa6207ae.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...