Jump to content

Mobile ListView with data custom design


mhmda

Recommended Posts

  • 1 month later...

You can do it using 'Field->OnGetText' and set the 'text' with the desired html template.

Thank's for you reply can you make simple demo or source how do it?

 

For example

I have 2 field in dataset

1 - job position

2 - Staff Name

 

For example dataset has 3 rows I want show in one cell like this each row

  officer

  Bob Mark

 

  head of department

  Bill Clinton

 

  programmer

  Stive Jobs

Link to comment
Share on other sites

Thank you guys

procedure TMainForm.qrySaleListRECEIPNMGetText(Sender: TField; var Text: string;
  DisplayText: Boolean);
begin
   Text := '<span style="line-height: 0.5; text-align: left"><sup>' + Sender.AsString + '</sup></span><br><span style="line-height: 2.0;color : #4183C4;text-align: left">' + Sender.AsString + '</span>';
end;

M2vg6dUJQ6ef_wfYKKUHRw.png

  • Upvote 1
Link to comment
Share on other sites

  • 5 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 months later...
  • 2 months later...

Hi,

(i'm totally new to unigui and javascript.)

 

How can i get an onClick event for a click on the images in the list? Together ith the itemidex of the item in the list?

 

Thank you!

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
  • 3 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...