This is a migrated thread and some comments may be shown as answers.

Row Drag Drop zindex when grid in modal popup (firefox)

2 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 30 Jun 2008, 09:38 PM
I've got a small issue with a grid in a modal popup... In firefox when dragging/dropping rows the dragged row(s) are behind the modal popup. This is only in firefox/safari. I've tried setting the zindex of the row in the skin's css file to no avail, any pointers for setting this? Maybe I'm setting the value for the wrong class?

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 01 Jul 2008, 02:03 PM
Hi Josh,

Indeed this behavior is due to modal popup extender's large zIndex value. I suggest you decrease it manually. The easiest way to accomplish that will be to modify it through javascript. I have attached a simple page that demonstrates this approach.

Kind regards,
Rosen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Josh
Top achievements
Rank 1
answered on 01 Jul 2008, 08:23 PM
That didn't quite work but got me going in the right direction, you need to set the zindex for the foregroud element (modalpopupbehaviorname_foregroundElement). It's a little odd as simply setting it to what it's default value is (10001) allows this to work in Firefox, it took awhile to find this as it appears to be already set (in IE anyway). Not sure why this is...

For anyone curious I used the following to fix this (not really a grid fix...) where x  is the name of the modal popup's behavior id:

function pageLoad()
{
    if(document.getElementById('x_foregroundElement'))
    {
        
var panel = document.getElementById('x_foregroundElement');
        panel.style.zIndex = 10001;
    }
}

Tags
Grid
Asked by
Josh
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Josh
Top achievements
Rank 1
Share this question
or