Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to find Row layout for TextArea PCF control

Posted on by 162

Experts,

I am writing a PCF control for a TextArea, and I want to see how to get 

Row-Layout.png

Number of Rows, and Automatically expand to use available space

So far, no luck playing with context object.  Any suggestions are highly appreciated!

Thanks a million!

  • Verified answer
    Ning Zhu Profile Picture
    Ning Zhu 162 on at
    RE: How to find Row layout for TextArea PCF control

    Found the answer, after tons of trial and error.

    if ((context.parameters as any).autoExpand !== undefined && (context.parameters as any).autoExpand.raw) {

    // your codes for auto expand

    } else if ((context.mode as any).rowSpan !== undefined) {

    // your codes for row span

    } else {

    // your codes for neither auto expand nor row span

    }

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to find Row layout for TextArea PCF control

    Hello,

    If it's not in the context I don't think you would be able to get it. There is a possibility to get Filtered Lookup config - itmustbecode.com/.../ so I would recommend checking it out.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans