bruno65 Posted February 20 Share Posted February 20 How to dynamically customize id for columns in uniDBGrid instead of the generated id ? (after open Datase or Before load data in grid) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 20 Share Posted February 20 1 hour ago, bruno65 said: How to dynamically customize id for columns in uniDBGrid instead of the generated id ? (after open Datase or Before load data in grid) Hello, What do you need this for? Quote Link to comment Share on other sites More sharing options...
bruno65 Posted February 20 Author Share Posted February 20 Hello Sherzod, columns are dynamically build more than once for an uniDBGrid inside a generic frame which is used a lot in our project and sometimes an element (a cell ?) inside column is no longer into the DOM because i guess the previous generated id of this element has changed. => after a while i get a javascript error "Cannot read properties of null..." So i just want to make a test with fixed html id for all columns of an uniDBGrid Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 20 Share Posted February 20 Hello @bruno65 One possible solution, but be careful to ensure unique id: procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniDBGrid1 do JSInterface.JSConfig('id', ['customId1'], Columns[0].JSColumn) end; Quote Link to comment Share on other sites More sharing options...
bruno65 Posted February 20 Author Share Posted February 20 Thank you Sherzod Quote Link to comment Share on other sites More sharing options...
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.