English 中文(简体)
Ext.net: 如何以百分率而不是六分点 set?
原标题:Ext.net: how to set a width in percent instead pixel?

i would like to set GridPanel width, to 100%. My gridpanel is in a table. I know i can only set gridpanel width in fixed pixel. So my question is: how to set width of panel, gridpanel etc. in percent in ext.net ? Is it possible ? I don t want to "neste" it into a viewport ... Thanks

最佳回答

i dont think you can specify values in percentages.

但是,如果你确定汽车的价值,相信汽车将自动填充空间:

Width和Height固定数值,以指数(或大约1/96英寸的装置独立单位)衡量。 你们可以把这些财产固定下来,使儿童部分能够根据上级小组的编辑情况自动恢复。

from microsoft

问题回答

为了向除Pixel违约外的单位类型申报遗属,你必须创建与你想要的单位类型不同的新型单位。 例如,为了将控制权的妻子财产设定为100个百分点,你可以采取以下行动:

我的WebControl.width = Unit.%(100);





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!