As you might have known already from my previous post, in one of my projects we use Telerik Controls extensively for showing various GUI controls. Lot of people have asked me, why I hate them, hence for the benefit of the community, I have decided to document the reasons of my hatred for Telerik controls.
Telerik has provided a lot of controls that could be used in variety of situations.
They have provided lots of demos for various controls that they provide.
Looking at just the demo, anyone will be impressed with these controls and would want to give them a shot.
But, once you start using them, you will realize how badly they have been architected. Where did the "span" and two extra "input" tags come from? One Rad Text Box gets rendered as a span and three input tags!
I would say, to showcase the power of the product/tool. Why would any one decide to render one Text box as using three input tags!
Demo websites make the first impression about any product/tool. But, for me, Telerik has failed in making a solid impression. More and more machines are getting 64 bit OS pre-installed on them. Whats the problem with rendering one Text Box as three input tags? ), the code to update the value of the text field to "Hello World" should look like But unfortunately, the above code does not work.
Companies and People are moving towards 64 bit platform. Well, none of your traditional Java Script would work! lets say, you were using j Query for your Java Script manipulation (BTW, j Query is an excellent Java Script framework. Since Telerik uses 3 input tags to render one text box the above Java Script code does not set the value of the text field!
In this case to update the value of the first name text box we have to use the following Java Script. Imagine, how you will show/hide, enable/disable the text box.
What about adding/removing a class from the text box.
These are just a few examples of what you will not be able to do using j Query because of Telerik controls.
Believe me, without j Query, Java Script manipulation is going to be tough! Lets look at one more control and I promise we will be done after that.
Rad Combo Box: This one is my favorite control, I just love bitching about this control. The code to use the Rad Combo Box in your page would look like The above Rad Combo Box is suppose to show users a list of countries. Lets say, if you wanted to do something when client side onblur event occurs for a Rad Text Box and Rad Combo Box. The above code shows how we attached an client side onblur event with Rad Text Box.
Notice that, we have not attached any special behavior to it. Needless to say that, Tools like selenium rely heavily on use of traditional Java Script, because of this functional tests written using these tools do not work well with Telerik Control. looking at the html generated for a simple combo box, imagine what will the code look like to select a country from the drop down. Lets see how we have to attach the client side onblur event for the Rad Combo Box Did you notice the inconsistency between two Telerik controls themselves?