on 03-09-2011 6:37 AM
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.
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");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to write the code in the wddomodifyview() method for the same.
~Shikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.