PDA

View Full Version : Ext Grid RowNumber and RowExpander



rlanda123
3 Mar 2010, 9:37 PM
Hello all,

I am in deep trouble. Could someone help me with the following please?

I am trying to have a grid setup such that it has both the RowNumberer and the RowExpander for the grid. I was successful in getting both of them and displaying the data. However, my problem is that when I expand the row, the expanded row content starts from the row number column which I don't want. I want to see the expanded data displayed from the column after the "expander (+) button" on the row.

I found a similar question at http://www.extjs.com/forum/showthread.php?p=248989. But I couldn't find a solution from there.

Any help would be greatly appreciated.

Thanks in advance guys.

smiller
5 Mar 2010, 5:25 PM
rlanda123

I added a container div to the rowExpander template and added a style to move the content over 40 pixles



tpl : new Ext.Template(
'<div style="margin-left:40px;">',
'<p><b>Company:</b> {company}</p>',
'<p><b>Summary:</b> {desc}</p>',
'</div>'
)

rlanda123
6 Mar 2010, 12:13 AM
rlanda123

I added a container div to the rowExpander template and added a style to move the content over 40 pixles



tpl : new Ext.Template(
'<div style="margin-left:40px;">',
'<p><b>Company:</b> {company}</p>',
'<p><b>Summary:</b> {desc}</p>',
'</div>'
)

Awesome!!! That was exactly what I wanted. It worked for me. You saved me for now. Thank you very much for the quick response.