Hi,
We're using Telerik RadGrid to display data in our pages.
Existing system: Since this page/grid is in use on multiple places, and due to other reasons during development, this grid is created during runtime (in c#). Also a few checkbox columns on this grid is editable.
Recent requirement: On checking the checkbox in an editable checkbox column of the grid, make another text column of same row in the the grid to be editable. Basically show a textbox for user to enter some notes on why he thinks that checkbox should be checked. Similarly, when unchecked, that row's textbox to be disabled.
Issue: We're unable to get the checkbox check changed event of checkbox column, in the aspx page, to fire. This is the event in which we intend to put code to enable the textbox of that row. Tried to achieve this server side as well as client side, but nothing seems to work.
We have created a checkbox event handler in Item_Created event of grid control. But on checking the checkbox, the Item_Created event does not fire, page does post back. Also, note that we have created the CustomCheckbox class by inheriting "ITemplate" interface. The CustomCheckbox's check changed event does fire but here we do not have any info related to selected row so that we can fetch and enable/disable the cell with textbox.
The examples over the internet have the telerik grid created in design time and it works well for them. So we're guessing that this might be an issue for us since we're creating the grid at runtime. Redeveloping the entire page to create grid design time is out of question since the page is in use on multiple places. Apart from the time required to redevelop/regression test the entire page, many functionalities are in place with runtime grid. We need to fix this issue for grid created at runtime.
We have created a POC application in which we've replicated our exact issue. Unable to attach the zipped source code in this thread since only image files are allowed to be attached. Here is the link to file in dropbox: https://www.dropbox.com/sh/gv5csygr3uxpe2f/AAAaCezrFO2hUXdH6H7CPBaJa?dl=0
Please look into this and let us know a possible solution.
Let me know if any additional details are required.
Thanks,
Blessy.