xxxpilot Posted June 12, 2019 Share Posted June 12, 2019 Hello, Any ideas on how to change text in expandable nodes? Since my keyfields are UUID-type, I'd like in treegrid replace them with more sensible text. Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 12, 2019 Share Posted June 12, 2019 35 minutes ago, xxxpilot said: Any ideas on how to change text in expandable nodes? Since my keyfields are UUID-type, I'd like in treegrid replace them with more sensible text. Hello, You can use the OnGetText event of the TField to format the output. Quote Link to comment Share on other sites More sharing options...
xxxpilot Posted June 12, 2019 Author Share Posted June 12, 2019 I am taking data from dynamic datasets, so no predefined fields available..and no way to set event. Ok, if there is no way to change text in TUniDbTreeGrid nodes - I will try another approaches. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 12, 2019 Share Posted June 12, 2019 11 minutes ago, xxxpilot said: I am taking data from dynamic datasets, so no predefined fields available..and no way to set event. Ok, if there is no way to change text in TUniDbTreeGrid nodes - I will try another approaches. Tell me by what logic do you want to change? Quote Link to comment Share on other sites More sharing options...
xxxpilot Posted June 12, 2019 Author Share Posted June 12, 2019 May be better way would be to get your expertise on how to configure lovely tunidbtreegrid to show data from dataset (pic attached).. Idea is that not all folders having records (yet)..but still must be shown. Quote Link to comment Share on other sites More sharing options...
xxxpilot Posted June 12, 2019 Author Share Posted June 12, 2019 Having TreeKeyFields set to: folder_parent;folder_id And two columns defined in treegrid - folder_caption and record_caption, I have result in pic attached.. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 13, 2019 Share Posted June 13, 2019 16 hours ago, xxxpilot said: May be better way would be to get your expertise on how to configure lovely tunidbtreegrid to show data from dataset (pic attached).. Idea is that not all folders having records (yet)..but still must be shown. Sorry for the late reply. 16 hours ago, xxxpilot said: but still must be shown. Can you please explain in more details? Quote Link to comment Share on other sites More sharing options...
xxxpilot Posted June 13, 2019 Author Share Posted June 13, 2019 1 hour ago, Sherzod said: 18 hours ago, xxxpilot said: but still must be shown. Can you please explain in more details? Idea is to show a tree of folders, even "empty" (using [folder_caption] field as caption (text) of node), and in case if there are records - column [record_id] not null - put them accordingly. Quote Link to comment Share on other sites More sharing options...
JamesP Posted September 22, 2021 Share Posted September 22, 2021 On 6/12/2019 at 1:24 PM, Sherzod said: Hello, You can use the OnGetText event of the TField to format the output. Hello, Assigning OnGetText event of TField doesn't make any difference. In TuniDBGrid it shows correct, but in TUniDBTreeGrid it shows original value. Could you please suggest any solutions? Thank you in advance. Kind Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 22, 2021 Share Posted September 22, 2021 55 minutes ago, JamesP said: Assigning OnGetText event of TField doesn't make any difference. In TuniDBGrid it shows correct, but in TUniDBTreeGrid it shows original value. Hello, Do you have a simple test case to check? Quote Link to comment Share on other sites More sharing options...
JamesP Posted September 22, 2021 Share Posted September 22, 2021 1 hour ago, Sherzod said: Hello, Do you have a simple test case to check? Hi Sherzod, I haven't got one as it will be difficult to extract that peace of code from my application, but I have create topic with details. Could you please help me out this that? Kind Regards, J 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.