Yakup ULUTAŞ Posted February 5 Posted February 5 (edited) Selamlar, Row Widget özelliği kullandığımız gridlerde, istediğimiz satırın otomatik açık gelmesini nasıl sağlayabilirim ? Edited February 5 by Yakup ULUTAŞ Quote
Sherzod Posted February 13 Posted February 13 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; Quote
Yakup ULUTAŞ Posted February 19 Author Posted February 19 Görmemişim çok pardon hemen deniyorum. I didn't notice, my apologies. I'll try it right away. Quote
Yakup ULUTAŞ Posted February 19 Author Posted February 19 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.