22 Aug 2013 5:21 AM #131
Ext.chart.Chart handles resize via an override of afterComponentLayout but from a quick look at the source I don't see any resize handling in Ext.draw.Component itself.
If you're using Ext.draw.Component directly then I think you'll either have to implement some resize logic in your component or you'll have to refresh the entire grid view.
An alternative might be to output a container from the renderer containing your chart and re-create the chart when the container is resized. However, I suspect that may prove inefficient,
2 Sep 2013 10:50 PM #132
I have a requirement to use component column but with different controls in a column.Attaching the screenshot of my requirement. compareView.JPG
Please help me in achieving this type of functionality through Component Column.
3 Sep 2013 12:52 AM #133
Based on your screenshot I wouldn't use a grid. It appears to be a form showing the fields of a model.
However, if you were to use a grid with a component column, you'd just return a different config from your renderer function based on the values passed to the renderer.
18 Sep 2013 11:53 PM #134
In a few of my grids I get a strange string inside of the component cells.
19 Sep 2013 4:43 AM #135
The dataIndex for the column is used in the template (effectively an XTemplate) and it's not really a surprise that a property name like that won't work. I'd imagine the slashes are being treated as division. In my experiments I get empty strings rather than the placeholder but it may vary by ExtJS version.
Could you drop the dataIndex from the column? The value would still be accessible in the renderer via the record.
Alternatively you could try mapping your field names to something a little less crazy. It's only a matter of time before you run into other problems with field names like that.
19 Sep 2013 7:18 AM #136
Ah yes, I shoved it into the XTepmlate and it gave the same result...
I know, these dataIndexes suck rather much. They come from a migration of an older tool. Have to straighten them out
9 Oct 2013 1:22 AM #137
I have a grid with 3 component columns a paging of 20 records, all of them are draw components.
They get redrawn when I hide a column, even if the column wasn't one of these component columns.
This results in lags of a few seconds every time someone hides or shows a column.
Are there any performance tips available?
9 Oct 2013 5:39 AM #138
From what you've said, I would guess that the problem is the component columns resizing after another column is hidden.
You could try setting autoWidthComponents: false on the component columns and giving your draw components a configured width instead.
9 Oct 2013 5:43 AM #139
The strange thing is, all the columns have a fixed width, so hiding one of the columns shouldn't resize any other column. Also I want my components to resize properly if a "real" resize of the column occurs. :\
9 Oct 2013 9:33 AM #140
You should try using autoWidthComponents: false to help diagnose the problem even if you don't intend to use it for real. It'll help to confirm where the performance problems lie.
Beyond that I suggest throwing profiling tools at it to try to better understand what's going on. The key questions are what is triggering the redraw, is it necessary, how often is that happening and is the redraw as fast as it could be?