如何根据行项目设置Vaadin Grid Pro中的“编辑”项目中的不同选择项目
我有网格专业展示产品。单列被配置为“选择”类型(下拉/combobox)类型的编辑。我正在尝试根据该行的产品设置此组件的项目。使用“ Select” EditColumn可以做到这一点?
我试图使用网格的“ AddCelleDitStartEdlistener”事件来实现我想要的目标,但是我似乎无法从CellEditStartEdedEvent访问EditComponent ..
THX!
I have Grid Pro displaying Products. A single column is configured as an EditColumn of type 'select' (dropdown/combobox). I'm trying to set the items for this component based on the Product of that row. Is this possible using the 'select' editColumn?
I tried to achieve what I want using the grid's 'addCellEditStartedListener' event, but I can't seems to access the editComponent from CellEditStartedEvent..
thx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是
celleditStartedEvent
中缺少的功能。作为替代方案,您可以在编辑列中使用自定义编辑器,因为您可以参考您使用的字段,请参见示例此处: https://cookbook.vaadin.com/grid-pro-conditional-edit
Yes, the this is missing feature in
CellEditStartedEvent
. As an alternative you can use custom editor in your edit column, as then you have reference to the field you are using, see exampleFull code here: https://cookbook.vaadin.com/grid-pro-conditional-edit