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

CheckBox click event?

1 Answer 103 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
fred williams
Top achievements
Rank 1
fred williams asked on 02 Aug 2016, 07:49 PM

I have some custom filtering on a grid I'm doingwith comboboxes and AJAX. Each combobox is linked to the grid the the rad ajaxmanager like so:

 

                    <telerik:AjaxSetting AjaxControlID="ddlXXX">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grid1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>

 

I'm calling a GetDate() method that returns a data table to bind the grid to the data source in the page_prerender event.  All works well, except for when I uncheck a checkbox in the combobox. If I check a checkbox it causes the post back and the GetData() method is called, but if I uncheck a checkbox the GetData() method is never called and the filtering isnt refreshed. Am I missing something in the Page LifeCycle? Why wouldn't the Page_PreRender event be called when I uncheck a checkbox inside a combobox? Should the DataBind be called at another point in the page's lifecycle?

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 05 Aug 2016, 12:52 PM
Hello Fred,

The Page_PreRender event is called every time a checkbox is checked or unchecked when the OnItemClick event is set and the AutoPostBack property is set to true.

It seems that the problem is caused by some custom logic or other controls. That is why I would like to ask you to provide us a very simplified implementation of a ComboBox updating a Grid with dummy data that reproduces the described problem.

Regards,
Peter Milchev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
ComboBox
Asked by
fred williams
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or