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.
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.