Wednesday, November 9, 2011

Right to left support in telerik

Problem: How to set Right to left in different controls of telerik ?
Solution: 
Right to left support in Telerik


Here is the sample code

Monday, November 7, 2011

How To Get SelectedValue Of RadComboBox From Java Script


Problem: How to get SelectedValue Of RadComboBox using Java Script ?
Solution: Place this Script in the Head tag,

 <script type="text/javascript">
    function GetSelectedValueOfRadComboBox() {
        var radcmb = $find("RadComboBox1");  // Find The Object By  ID 
        var value = radcmb.get_value();  // Get_Value() Is telerik Library Included Function
        Return value;
    }
</script>

Sunday, November 6, 2011

Radcalendar having different weekend like (friday,saturday)

Problem: How can we make different weekends like Friday and Saturday in RadCalender ?
Solution: There are two ways,
1) You can do in source of Page like

<telerik:RadCalendar ID="RadCalendar1" Runat="server" FirstDayOfWeek="Thursday">
</telerik:RadCalendar>
RadCalender
Here you can see that Thursday became the first day of week.

RadDatePicker not taking the value from keyboard

Problem: You have noticed that when you pick the value from calender pop up button then it works fine. But when you enter the value through keyboard like 1/1/1920 it does not work.
RadDatePicker

Solution: Remember RadCalender default minimum date is 1/1/1980.So if you give a date less than 1980 it will will not understand the date.


Example:

<telerik:RadDatePicker ID="Datepicker1" Width="100px" runat="server" MinDate="01/01/1900"
     MaxDate="12/31/2100">
</telerik:RadDatePicker>

Saturday, November 5, 2011

~/Telerik.Web.UI.WebResource.axd' is missing in web.config

Problem: When you place RadScriptManager on aspx page and compile it gives error like, 
" '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager "


Solution: Its Simple And fast you Just Have to register The radScriptmanager and it will modify the web config file automatically.
Example:

  • Click RadScriptManager Menu Cursor .It Will Display RadScript Manager Tasks click on Regiter Telerik.Web>UI.WebResource.axd

Telerik.Web.UI.WebResource.axd

  • Telerik.WebUI.WebResources.axd Is Now Succeessfully Register in Web Config.
Telerik.Web.UI.WebResource.axd