Jump to content

TUniDBTreeGrid: how to replace text in nodes


xxxpilot

Recommended Posts

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

 

dataset.png

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 years later...
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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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...