I have a itemdatabound event handler on a particular textbox, based on the value in it I need to set a different textbox. Haven't been able to figure out how to access other textboxes from the event handler.
Thanks,
Bruce
2 Answers, 1 is accepted
0
Accepted
Milen | Product Manager @DX
Telerik team
answered on 18 Dec 2007, 02:04 PM
Hello Bruce Hochstetler,
Thank you for your question.
In order to achieve this, you have to make sure that both items are databound at the time you read or overwrite their text. This means that you have to choose really carefully which event to use. For example, if the two items are in the Detail section, it is reasonable to use the ItemDataBound event of that section, because that event is raised when all the items in the section are databound.
That work great. What I did was create field that was databound, but hidden. Then based on the contents of the first field, I would either use the visible field's data, or the hidden field's data. The detail itemdatabound event did the trick.