Iron Speed Technical Forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
KevinSeerup

Registered:
Posts: 92
Reply with quote  #1 
I want to set the focus to the SearchText control in my filters on a mobile ShowTable page when the page opens so the User doesn't have to tap on the control to start entering text or to scan a barcode.

I have tried changing the SetPageFocus event as descibed in the documentation but I can only conclude this doesn't work for Filters.  This is what I now have in the SetPageFocus event:

            Dim controlToFocus As System.Web.UI.WebControls.TextBox = DirectCast(Me.FindControlRecursively("SearchText"), System.Web.UI.WebControls.TextBox)
            Me.SetFocusOnLoad(controlToFocus)

Am I missing something?

__________________
Regards
Kevin Seerup
GoalMaker Software Solutions Pty Ltd
http://www.goalmaker.com.au
Chris8

Registered:
Posts: 13
Reply with quote  #2 
did you comment out the default method?
e.g.

' Me.SetFocusOnLoad() 

KevinSeerup

Registered:
Posts: 92
Reply with quote  #3 
Yes I did
__________________
Regards
Kevin Seerup
GoalMaker Software Solutions Pty Ltd
http://www.goalmaker.com.au
KevinSeerup

Registered:
Posts: 92
Reply with quote  #4 
I now have the missing piece of the puzzle.  I needed to also add SetPageFocus() to the LoadData() sub.
__________________
Regards
Kevin Seerup
GoalMaker Software Solutions Pty Ltd
http://www.goalmaker.com.au
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement