CheckBox click event?

2 posts, 0 answers
  1. fred williams
    fred williams avatar
    55 posts
    Member since:
    Feb 2010

    Posted 02 Aug 2016 Link to this post

    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">
                            <telerik:AjaxUpdatedControl ControlID="grid1" LoadingPanelID="RadAjaxLoadingPanel1"/>


    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?

  2. Peter Milchev
    Peter Milchev avatar
    290 posts

    Posted 05 Aug 2016 Link to this post

    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.

    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.
Back to Top