From: Manu Temmerman-U. <man...@gm...> - 2006-03-21 19:44:11
|
On 3/21/06, Mike Weichert <mwe...@gm...> wrote: > > Hi guys, > > I'm having some problems with using tab character to change focus from > one control to another. I have the tabindex properties set as they > should. If I tab through each control (textbox) without entering a > value, they work as expected. However, if I enter a value into a > textbox and then tab, the control looses focus. > > The AutoPostBack property of all the controls is set to false, and the > AutoUpdateAfterCallBack property is set to true. You are not the first one who posted this problem. Pls search the sourceforge archives for more info next time before posting. First remark: Rather don't use AutoUpdateAfterCallBack if there is no need to it. I whished more and more Jason never included it into Anthem. If you want an anthem control to update itself after you did a callback, then pls set the UpdateAfterCallBack property to true for each control you want to have updated after this control. Second remark: Most of the time there is no need at all to make every singl= e control on your page an anthem control. Only if you want to be able to have them updated after a callback you can make Anthem controls of them or wrap them inside an Anthem panel. Then about the tab problem. If you download the latest snapshot of Anthem ( http://anthem-dot-net.sourceforge.net/), then you will see that an Anthem TextBox has a new property. It's called "AutoCallBack". Set it to false. It's similar to the anthem dropdownlist's AutoCallBack. When it's set to true, then the "TextChanged" event will be raised every time on every single anthem textbox when the text in it changes and looses focus. Every single time when the TextChanged is called there is a callback to server, EVEN WHEN YOU DIDN'T SPECIFY AN EVENT HANDLER FOR IT. When it's set to false, then there won't be a callback to server and all th= e controls who have their AutoUpdateAfterCallBack property set to true will b= e updated. Conclusion: download the latest snapshot, don't use anthem controls if you don't need them to have ajax functionality, and TRY TO AVOID USING AUTOUPDATEAFTERCALLBACK! Manu. ps: I'll try to have a talk with Jason about the AutoUpdateAfterCallBack property. I think it maybe could be removed? This is using the latest .NET 1.1 version. > > Thanks, > Mike > > -- > // This is my personal e-mail account > // that I use for communication only. > // Please send any e-mails with attachments > // to mwe...@wi.... > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > anthem-dot-net-users mailing list > ant...@li... > https://lists.sourceforge.net/lists/listinfo/anthem-dot-net-users > |