RadButton Changes checked value

4 posts, 0 answers
  1. John Giblin
    John Giblin avatar
    155 posts
    Member since:
    Jan 2006

    Posted 11 Mar 2013 Link to this post

    I have a case where RadButton Changes checked value.  I run though the behind code.  the RadButton is checked. Then it appears as unchecked. I am using ajax.  I cant seem find out when it is changing the value.  any ideas.  Also in IE the page renders much slower and I will see the checked values for a second then it changes to unchecked.

    Also, Is there a way to debug the ajax to see if the issue is coming form that?
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 14 Mar 2013 Link to this post

    Hello John,

    It is hard to tell what could be the reason for your issue without having enough information about the current scenario.

    You can debug the ajax on your page the same way you debug the page itself - you can put some break points on particular events of the ASP.NET page life cycle -  Page_Init, Page_Load, Page_PreRender. You can also debug the client-side. For example you can put debugger on pageLoad() or add any event handlers on Sys.Application.init / Sys.Application.load.

    You can also inspect for the existence of the check property in the $create() statement of RadButton which is located at the bottom of the page when you right click it and select View Source.

    Kind regards,
    Danail Vasilev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. John Giblin
    John Giblin avatar
    155 posts
    Member since:
    Jan 2006

    Posted 14 Mar 2013 Link to this post

    Thanks Dan

    I found a post in the forums
    http://www.telerik.com/community/forums/aspnet-ajax/calendar/raddatepicker-showing-two-date-formats-when-not-focused.aspx

    It seems like that is a bug in Q2 2012 when the radpicker is disabled. I was able to take care of it by using.
    EnableSingleInputRendering

    I didnt have an issue debugging in the code behind.  But I am not sure what you meant by checking the property $create() . How do i do this just in case i need to do that in the future.
  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 15 Mar 2013 Link to this post

    Hi John,

    I am glad you have solved your issue.

    Regarding the $create() statement I am sorry for not being clear enough. The point is that the Telerik controls are created on Sys.Application.add_init() event where is invoked the $create() statement for each control.

    You can check the server-side settings of a particular RadControl by inspecting this $create() statement. Note that if you make any changes on the client-side this will not affect the $create() statement of the control. I have created a short video here demonstrating that. This can help in debugging scenarios in order to investigate whether the control changes its behavior on the client-side or on server-side.

    Regards,
    Danail Vasilev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top