rtalmeida Posted April 14, 2019 Share Posted April 14, 2019 Is it possible for UniPropertyGrid to only provide some properties for modification? I do not want the user to see certain properties. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 14, 2019 Share Posted April 14, 2019 1 hour ago, rtalmeida said: Is it possible for UniPropertyGrid to only provide some properties for modification? I do not want the user to see certain properties. Hi, One possible solution: procedure TMainForm.UniButton1Click(Sender: TObject); var HiddenProps: string; begin HiddenProps := '"Name", "Enabled"'; with UniPropertyGrid1.JSInterface do begin JSCall('getStore().clearFilter', []); JSCode(#1'.getStore().filterBy(function (record){ if (['+ HiddenProps +'].indexOf(record.get("name"))>-1) return false; else return true;});'); end; end; Quote Link to comment Share on other sites More sharing options...
rtalmeida Posted April 14, 2019 Author Share Posted April 14, 2019 Thanks again for your help, it worked 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.