Solved

Set default focus on dynamic tab

  • 23 August 2022
  • 4 replies
  • 137 views

Userlevel 1
Badge +4

Can anyone advise me how to set the default focus on a dynamic registered tab?

the contact log tab in Business activity is dynamically loaded and need to set it as the default focus. Any idea would be appreciated :)

 

icon

Best answer by Himasha Abeywickrama 25 August 2022, 13:58

View original

4 replies

Userlevel 7
Badge +18

As per my knowledge ,there is no Client side configuration type option to make this default focus change. Default Focus can be changed from the Code level (Application form development)
You can achieve this through a simple customization change through the Consultant team.

-Kelum

 

 

Userlevel 1
Badge +4

Hi Kelum,

Thank you for the reply. Can I know how to set this default focus from code level? we have dev license.

case contact log tab is loaded to Business activity window as dynamic tab page. is there a way to set focus on a dynamically loaded tab page in code level?

 

Userlevel 7
Badge +18

Hi @Imalka Bandara,

In Designer.cs file, you just have to change the SelectedIndex value to the tab which you want the application to open up when you open the form window. Let’s say you want to open up the 2nd tab in the form window, 

Then,

this.picTab.SelectedIndex = 1;

 

Note that the indexes start from 0.

Userlevel 1
Badge +4

Thank you @Himasha Abeywickrama . I will try this out.

Reply