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

RadioButton's Changing To CheckBox's OnBind

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 29 Apr 2011, 02:07 AM

Posted 21 hours ago (permalink)

Hey,

I have a problem where my RadioButton is changing back to a CheckBox in the RadGrid after a Button_Click.

The datasource is done programatically.

Column(0) of the datasource is a Boolean

So when the grid renders it would usually display a checkbox for Column(0).

At the ItemDataBound event I am removing the CheckBox and replacing it with a RadioButton.

This all works great with some javascript making sure only one RadioButton is selected at a time.

However when I try to retrieve the selected row on a Button_Click event the grid rebinds to the datasource and i loose the radiobuttons?

Is there a way to prevent any further binding after I have put my radio buttons?

Any help would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 04 May 2011, 11:25 AM
Hello Mark,

I am sending you a simple example which demonstrates how to achieve the desired functionality. Please check it out and let me know if it helps you.

Looking forward for your reply.

All the best,
Radoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or