R
RBM007
Hello,
I have created webpages in the atlas standard. To help my users, I
automaticaly focus to the first editable control which is in a GridView
kind control.
Every gridview is placed in a UpdatePanel which is recently translated
from Atlas to AJAX. Before the translation everything works perfectly,
but after the translation I got problems with calling focus.
Here some code:
DropDownList first = null;
if (myGridView.EditIndex == -1)
{
first =
((DropDownList)myGridView.FooterRow.FindControl("ControlNameEditTemplate"));
}
else
{
first =
((DropDownList)myGridView.Rows[ExGrid1.EditIndex].FindControl("ControlNameFooter"));
}
first.Focus();
This code is placed (and called) upon databinding of the grid, but it
only works when the page is first loaded. Does anyone know how I can
fix this error? Thanks in advantage.
Greetings,
René Beltman
I have created webpages in the atlas standard. To help my users, I
automaticaly focus to the first editable control which is in a GridView
kind control.
Every gridview is placed in a UpdatePanel which is recently translated
from Atlas to AJAX. Before the translation everything works perfectly,
but after the translation I got problems with calling focus.
Here some code:
DropDownList first = null;
if (myGridView.EditIndex == -1)
{
first =
((DropDownList)myGridView.FooterRow.FindControl("ControlNameEditTemplate"));
}
else
{
first =
((DropDownList)myGridView.Rows[ExGrid1.EditIndex].FindControl("ControlNameFooter"));
}
first.Focus();
This code is placed (and called) upon databinding of the grid, but it
only works when the page is first loaded. Does anyone know how I can
fix this error? Thanks in advantage.
Greetings,
René Beltman