:: Forum >>

resizing the column in grid

Image has been set in the grid column header. When i resize the column it keeps on moving.. not able to go somewhere else. Kindly provide solution for this.
Friday, April 2, 2010
Please describe how to reproduce this issue. Does it happen with standard examples, which browser versions, which version of AW etc...
Alex (ActiveWidgets)
Monday, April 5, 2010
Activewiget version is 2.0 and firefox is 2.0
1. Have the two more column data as image in the grid.
2. Set image in the column header, onmouse over event.
3. after image set resize the column which are the column has image.

I am setting image on "onmouse over event" in the header column. image has set in that column header. That time if i am doing the column resize, problem occurers.

Tuesday, April 6, 2010
echo "$Obj.onHeaderMouseOver =
function ( event, index ) {
if ( index != 0 ) {
if (! array_has ( select_col_index, index ) ) {
// $Obj.setHeaderTemplate(new AW.Templates.ImageText);
$Obj.setHeaderImage(\"favorites\",index );
select_col_index.push(index );
}else {
$Obj.setHeaderImage(\"\",index );
select_col_index = removeByElement(select_col_index,index );
Wednesday, April 7, 2010
Kindly look at this , give me solution.
Thursday, April 8, 2010
I think the problem is related to the $Obj.refresh() statement in your code - it destroys and recreates all grid html elements, so when you call it inside mouseover event something may go wrong. You don't need to refresh the complete grid control, try to refresh only the header.

Also you can do image showing/hiding just with css using aw-mouseover-header class (which is set on mouseover and cleared on mouseout)
Alex (ActiveWidgets)
Thursday, April 8, 2010
Thanks a lot. now it is working fine..
Friday, April 9, 2010

This topic is archived.

Back to support forum

Forum search