I am trying to move my web apps into AJAX. I use server controls only for the initial page rendering of the DOM elements and then make web-service calls (using PageMethods or WCF) to populate or manipulate any grids, forms or data that exist in the page.
I recently purchased the AJAX RADControls since read that it is one of the best AJAX libraries available.
I added some of the Telerik controls to replace plain HTML tags (such as drop-down lists, inputs, etc.) but I am dissappointed in how difficult it is to find these controls in the DOM in order to manipulate them (especially when they are embedded within other ASP.Net server controls).
I am confused why I can't simply declare the Client IDs of my Telerik controls?
I am using my Telerik controls as 100% client-side controls so why am I not able to define my own Client IDs?
To find a Telerik Control I have to resort to such calls as:
I recently purchased the AJAX RADControls since read that it is one of the best AJAX libraries available.
I added some of the Telerik controls to replace plain HTML tags (such as drop-down lists, inputs, etc.) but I am dissappointed in how difficult it is to find these controls in the DOM in order to manipulate them (especially when they are embedded within other ASP.Net server controls).
I am confused why I can't simply declare the Client IDs of my Telerik controls?
I am using my Telerik controls as 100% client-side controls so why am I not able to define my own Client IDs?
To find a Telerik Control I have to resort to such calls as:
var combo = $find("<%= RadComboBox1.ClientID %>"); var item = combo.findItemByText(text); |
(By the way, this code above will NOT run when you place your script code in a separate JS file which is a best practice that I prefer to follow.)
Does this limitation exist for a good reason?
Or is this limitation there because these are server controls that are being migrated to AJAX?
Is there a future version of the AJAX controls that will allow me to define my own Client IDs?
Please let me know if I misunderstood the architecture of these controls.
Thanks in advance for any explanation you may offer on this matter.
Klaus Barkhausen
Does this limitation exist for a good reason?
Or is this limitation there because these are server controls that are being migrated to AJAX?
Is there a future version of the AJAX controls that will allow me to define my own Client IDs?
Please let me know if I misunderstood the architecture of these controls.
Thanks in advance for any explanation you may offer on this matter.
Klaus Barkhausen