cancel
Showing results for 
Search instead for 
Did you mean: 

Changeing the width of an UI element dynamically

Former Member
0 Kudos

Hi All,

I have a requirement like based on some condition i have to increase the width of an UI element dynamically. I will have a transparent container and i will select the layout as Grid layout and column count as 4. I will have four UI elements in the transparent container and for each ui element i will set a property width under layout data to some percent (ex: 25%). Based on some condition i want to make the grid layout column count to 2 and set the width property(ex: 80%) of the ui element dynamically

Thanks in Advance.

Regards,

Ramesh.

Accepted Solutions (0)

Answers (2)

Answers (2)

namrata_d
Active Participant
0 Kudos

Hi,

you can map the width property of your UI element with a string context attribute and at runtime set the value of this context in pixels . Eg. wdcontext.currentcontextelement.setwidth("1000px");

Former Member
0 Kudos

You have to write the code in the wddomodifyview() method for the same.

~Shikhil