This is a migrated thread and some comments may be shown as answers.

RadButton Changes checked value

3 Answers 54 Views
Button
This is a migrated thread and some comments may be shown as answers.
John Giblin
Top achievements
Rank 1
John Giblin asked on 11 Mar 2013, 02:22 PM
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?

3 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 14 Mar 2013, 12:39 PM
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.
0
John Giblin
Top achievements
Rank 1
answered on 14 Mar 2013, 03:33 PM
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.
0
Danail Vasilev
Telerik team
answered on 15 Mar 2013, 03:53 PM
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.
Tags
Button
Asked by
John Giblin
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
John Giblin
Top achievements
Rank 1
Share this question
or