View Full Version : Problem with dateField if the Dialog is modal

22 Sep 2011, 12:35 AM
Hello all

I have a problem with the DateField in my aplication. I have a Dialog with a DateField. If the Dialog ist set as modal and I open the DatePicker, the DatePicker closes. If I open the DatePicker the second time it works fine.

If I set the Dialog not to modal everthing works fine.

package test.client;

import com.extjs.gxt.ui.client.widget.Dialog;
import com.extjs.gxt.ui.client.widget.form.DateField;

public class DateFieldTest extends Dialog {
public DateFieldTest() {
setSize("300px", "300px");

DateField dateField = new DateField();

What can I do that the DateField works fine if the Dialog is modal?

22 Sep 2011, 4:56 AM
It may happen because modal dialog when looses focus closes all the above widgets. I had similar issues because i had custom loading indicator which was shown above the modal dialog. I solved it by adding x-ignore style to it. Check whether the datefield popup has x-ignore style assigned