Jump to content

Changing (Unidbgrid) LayoutConfig (Width) run time


Recommended Posts

Hi 

I need to apply run time unidbgrid1.LayoutConfig.Width:='100%'.

I searched a few in web, and I find something similar to wich I'm thinking, but I'm not able to recustomize the code, I only produce ajax error.

UniPanel2.layoutconfig.Flex:=1;
UniPanel2.JSInterface.JSAssign('flex', [1]);
UniPanel1.JSInterface.JSCall('doLayout', []);

Can someone help me?

Is the right way? If possible i would like to have a link to sencha documentation to understand where i can find usefull information for this tipical situation. 

Tnks a lot

Link to post
Share on other sites

Hi,

Can you please explain in more details what you wanted?

Which build are you using?

2 hours ago, cristian said:

UniPanel1.JSInterface.JSCall('doLayout', []);

In the latest versions doLayout changed to updateLayout

Link to post
Share on other sites
1 hour ago, Sherzod said:

UniPanel1.JSInterface.JSCall('updateLayout', []);

Or can you make a simple testcase for reproduce?

I need to enlarge tunidbgrid.

I'm not able to recustomize code posted in previous message.

If possible i would like a link to sencha documentation for understand how to get this kind of information by my self, please.

Test case attached

Tnks

UniDbGridLayout.7z

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...