Spark 数据网格的最后一列未调整大小
我在我的移动应用程序中使用了 Spark DataGrid。我的问题是我的 Spark 数据网格的最后一列没有调整到网格的宽度。例如,我的 Spark DataGrid 的宽度是 500,我有 4 列,每列宽度大小为 100。四列根据其大小在数据网格中放置。但 datagrid 中的最后 100 个像素看起来像空白区域。在高级 datagrid 和 mx datagrid 中,列的大小会自动调整为网格的宽度。
请帮助我在 Spark DataGrid 中实现这一目标。
谢谢 文加泰什
i have used spark datagrid for my mobile application . my problem is last column of my spark datagrid is not resizing to the grid's width. for example, my spark datagrid's width is 500,and i have 4 columns of width size 100 each. four columns are places as per their size in the datagrid. but the last 100 pixels in datagrid looks like empty space.In advanced datagrid and mx datagrid , the columns are automatically resized to the grid's width.
please help me to achieve this, in the spark datagrid.
thanks
vengatesh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 sprk DataGrid 问题。为了避免这种情况,您需要监听来自 DataGrid 的“resize”事件,并在处理程序中将最后一列的宽度设置为 NaN。
这对我有用。
This is sprk DataGrid issue. To avoid it you need to listen event "resize" from DataGrid and in handler set last column's width to NaN.
That works for me.