jyothi_pp_1
11 years agoOccasional Contributor
Not able to select combo box items as Scrollbar not yet scrolled down
Hello,
We have a application form with long data fields. After entering values to the visible fields it should scroll down. But in our application it is not doing so.Scrollbar is not activated immediately. So once the visible fields are edited, it try to select values to the combo box item which is not visible.So our script fails to select the combo box item using the code oComboBox.ClickItem(szItem) .
While debugging , If we manually scroll down and make the field visible it works fine.
We cant use ScrollintoView function as the page is too long, and this control will not fall under,end of the page.
I tried using scrollobar.Keys["Down"]. But here the problem is above this combo box we were entering data for textbox.so the ctrl is in that combo box.So key press operation not working.
Can anyone help me to perform scroll operation?
Thanks in advance.
Jyothi
We have a application form with long data fields. After entering values to the visible fields it should scroll down. But in our application it is not doing so.Scrollbar is not activated immediately. So once the visible fields are edited, it try to select values to the combo box item which is not visible.So our script fails to select the combo box item using the code oComboBox.ClickItem(szItem) .
While debugging , If we manually scroll down and make the field visible it works fine.
We cant use ScrollintoView function as the page is too long, and this control will not fall under,end of the page.
I tried using scrollobar.Keys["Down"]. But here the problem is above this combo box we were entering data for textbox.so the ctrl is in that combo box.So key press operation not working.
Can anyone help me to perform scroll operation?
Thanks in advance.
Jyothi