如何导入excel数据并在网格中显示?
我正在使用ExtGWT(gxt)。我有一个要求,我需要导入Excel数据并在网格中显示数据。请帮助我如何实现这一目标?
谢谢!
i am using ExtGWT(gxt). i have a requirement where i need to import excel data and display the data in a grid. please help me how to achive this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是两件完全独立的事情...
首先导入 Excel 文件,您可以将其直接放在网格上,因为它需要在服务器端进行处理。可能进入服务器上的数据库。
快速搜索发现 此 库即可执行此操作,
然后 GXT 应用程序可以检索此库数据并通过检索 POJO 列表并将其放入网格中并转换为
BeanModel
以便在网格的ListStore
中使用将数据加载到网格的最佳示例请参阅探险家此处。
这应该可以帮助您开始,因为如果没有您的设置的更多信息,我无法确定具体细节。
This is two completely separate thing to do...
First you have the import of the excel file, you can put this directly on the grid as it will require being processed on server side. Likely into a database on the server.
A quick search found this library to do just that
The GXT application can then retrieve this data and place it into a grid by retrieving a list of POJOs and converting to
BeanModel
's for use in theListStore
of the gridBest example of loading data into a Grid see explorer here.
This should get you started as I cannot be sure of specifics without more information of your set up.