I need to add a RadioButton column to my grid and I adapted the code in this demo to do it:
https://docs.telerik.com/devtools/winforms/knowledge-base/creating-a-radradiobuttoncellelement
The difference is I need a single radio button on each row and they need to be mutually exclusive of one another. This part is now working.
Using some sample credit card data, I have 3 challenges that I can't figure out:
1. How can I start the attached project and set the button for the credit card need selected when the form loads?
2. How can I retrieve the selected credit card id value (if any)?
3. I also seem to have a visual bug whereby when I scroll the grid up and down sometimes the button deselects and sometimes it seems to select a second option.
Could you please examine the attached project and let me know what I'm missing?
Thanks
Carl
Nadya
Thanks for getting back to me..
I like the GridViewSelectColumn feature but we can't use it for 2 reasons: 1. We can't upgrade Telerik at this stage of the QA process and 2. the design team wanted radio buttons and not check boxes since Windows standard is that radio buttons are intended to illustrate mutual exclusivity. That said, I'd like to suggest a new GridViewRadioButtonColumn object that would do just that.
Your advice solved some of my issues. I can set the initial value (#1) and (I think) I have the virtualization issues resolved (#3). My problem is still #2, retrieving the selected credit card id value. In this case, I can't seem to get the buttons to work as a mutually exclusive set. I've attached the latest code in my sample project. Could you please let me know what I'm missing?
Thanks
Carl
Hello, Carl,
I noticed that a support ticket was opened on the same topic after a phone call with our representative.
Your question has already been addressed in the support ticket ID:1679470. Please see our answer there for more information. You can find it in your Telerik account.