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

RadGrid created at runtime, checkbox column does not fire event

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Blessy
Top achievements
Rank 1
Blessy asked on 10 May 2017, 07:25 AM

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.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 12 May 2017, 04:32 PM
Hi Blessy,

We have answered your support ticket on this matter and I will advice that we continue the investigation of the case there. Once case is solved, you can feel free to reopen and update this thread with the ticket solution.

Kind regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Blessy
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or