Skip to main content
Solved

Set default focus on dynamic tab


Forum|alt.badge.img+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 :)

 

Best answer by Himasha Abeywickrama

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.

View original
Did this topic help you find an answer to your question?

4 replies

Kelum Pradeep Kumara
Superhero (Employee)
Forum|alt.badge.img+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

 

 


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 10 replies
  • August 25, 2022

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?

 


Himasha Abeywickrama
Superhero (Customer)
Forum|alt.badge.img+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.


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 10 replies
  • August 26, 2022

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings