How to get client id devexpress control in ascx

754 views Asked by At

I have a control stored in ascx file. In this control used 2 devexpress controls ASPxTextBox and ASPxGridView. How can I get client side Id ASPxGridView in ClientSideEvent from ASPxTextBox? I can't use ClientInstanceName because my control used on page many times.

1

There are 1 answers

0
Gosha_Fighten On BEST ANSWER

The best way is to handle the server-side Init event of your controls and set their ClientInstanceName in code. In the same way, you can write your JS functions to handle client-side events. Take a look at the The general technique of using the Init/Load event handler article on DevExpress that describes this (see Example #2).