This is a migrated thread and some comments may be shown as answers.

Field with Scroll long text option or too long text w/o Scroll long text does not render properly

4 Answers 257 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Jay asked on 10 Oct 2017, 09:03 PM

A field in my PDF has the Scroll long text option set. When I fill in this field programmatically, it does not render properly: the plus sign displays, but not the text (initial display.PNG). If I hover over the field, the field border shows (hover.png). If I then click the field or the plus sign, the text displays (and the plus sign vanishes) (clicked into.PNG). If I then click off the field, the display reverts back to the initial display of just the plus sign (initial.PNG)

However, if I click into the field and type some additional text, then click off the field, the text and plus sign display (after typing.PNG). It would be nice, I think, if this last state was what happened initially.

If I don't have the Scroll long text option set on the field, the initial display shows the field without the plus sign, but the text is offset to the south (NOT Scroll long text.PNG) which also seems wrong; I could live with this not having the plus sign indicator if the text wasn't offset.

4 Answers, 1 is accepted

Sort by
0
Anna
Telerik team
answered on 11 Oct 2017, 01:11 PM
Hello Jay,

Regarding the missing appearance of the text field, you seem to have stumbled upon a bug in the form fields functionality. I have logged it into our backlog and the Feedback Portal and you can follow our progress on it using the link to this item. I am updating your points as a token of our appreciation for reporting this.

As for the second issue you mentioned, so far I have not managed to reproduce it, but it seems to me it might be a matter of using the correct font and text size for the size you've chosen for the field. You can try to increase the size of the box or alternatively use the TextProperties property of the TextBoxField to decrease the size of the text. Let me know if you encounter any difficulties along the way.

Regards,
Anna
Progress Telerik

0
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 11 Oct 2017, 01:32 PM

Hi Anna. Regarding the second issue, I don't believe it is an issue with the font and text size. If I force the text to be short enough to fit in the field, it shows properly (short length.PNG). In this case, I'm truncating the string that gets set to be only 10 characters. As you can see, it properly displays in that case.

The only difference in this case is the length of the text that is used to populate the field, I've made no other changes to the text box.

0
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 11 Oct 2017, 02:02 PM
Hi Anna. Just in case you can't reproduce it, the attached project reproduces it for me. You'll have to remove the .png extension to unzip it.
0
Anna
Telerik team
answered on 12 Oct 2017, 08:36 AM
Hi,

My apologies, I see your point now, so thank you for the clarification and for the sample project. This is likely a different manifestation of the same issue, with the difference that when the AllowScroll property is set to true, the text becomes misplaced enough to become hidden while when the property is false it is only moved a bit. I have updated the item I linked above to reflect this. Thank you again for reporting these.

Unfortunately, I don't have a workaround to offer you at this point other than leaving enough space for the text in the field and I hope your scenario allows it.

Regards,
Anna
Progress Telerik

Tags
PdfProcessing
Asked by
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Anna
Telerik team
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or