Ext GWT Community Forums (1.x) /
Ext GWT: Help & Discussion (1.x) /
How to make gridlike view with buttons
I was wondering if anyone could help me out with this problem. I need to display gridlike view but with checkboxes and buttons for each item displayed in this grid?
My question is how do I do this efficiently (grid of 100 - max 300 records). Did any of you guys tried to do this in gxt?
I should do this with the help of a dataview. You can create a html template:
just a div with a css class and the name of the button in it.
You can simulate a button with css using dataview. setOverStyle(). With the onClick or SelectionChange event you can simulate a button click event.
Ofcourse it isn't really a button but the user won't see the difference and it is more efficient than generate buttons. The same can be done for checkboxes.
Hello, I'm writing about your answer assassin.
You say that we can use dataview.setOverStyle() but I didn't find this method. How can I use it?
I ask you that because I'm using a DataView and I have to set in this dataview a button. At this moment I use the html code in the XTemplate but, I wonder if there isn't another way to do this. And I see your answer,so I'm asking you how can I use the method setOverStyle?
Just look at the API documentation of DataView:
public void setOverStyle(java.lang.String overStyle) Sets the style name to be applied on mouse over (defaults to 'x-view-item-over').
Parameters:overStyle - the over style