Jump to content

Recommended Posts

Posted

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

nodes.png

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

Posted

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.

Posted
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?

Posted

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

Posted

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

res.png

Posted
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?

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

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

 

Posted
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? 

Posted
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

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...