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

Form refresh when using RadComboBox with checkbox inside

1 Answer 48 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
johnson lim
Top achievements
Rank 1
johnson lim asked on 06 Jun 2012, 04:03 AM
Hi,
I have a RadComboBox with 5 checkbox inside.When user click on the checkbox, my program will perform some business logic checking and feedback to user.

However the problem i face is, everytime user click on the checkbox, the whole page will refresh and all the gui need to reload again.
Even I have set not to refresh the whole page when user click on the checkbox. Below is my code.
<ajax:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server">
      <ClientEvents OnRequestStart="onRequestStart" />
      <AjaxSettings>
       <ajax:AjaxSetting AjaxControlID="chkPoCat">
             <UpdatedControls>
              <ajax:AjaxUpdatedControl ControlID="DdlPoCat" />                   
              </UpdatedControls>
       </ajax:AjaxSetting>
 
 <ajax:AjaxSetting AjaxControlID="DdlPoCat">
             <UpdatedControls>
                  <ajax:AjaxUpdatedControl ControlID="DdlPoCat" />
              </UpdatedControls>
       </ajax:AjaxSetting>
 
      </AjaxSettings>
  </ajax:RadAjaxManager>
          
  <ajax:RadComboBox ID="DdlPoCat" runat="server" Width="240px"  AllowCustomText="false"  EnableVirtualScrolling="true"  EnableLoadOnDemand="True" Text=" " OnClientKeyPressing="clickButton">                        
                          <ItemTemplate>
                              <asp:CheckBox runat="server" ID="chkPoCat"  oncheckedchanged="chk_CheckedChangedPoCat" AutoPostBack="True" Text='<%#Eval("ParamDesc")%>' />
                          </ItemTemplate>
                      </ajax:RadComboBox>

Can anyone help? I have search online for few days but no solution on this. HELP PLEASE !!

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 08 Jun 2012, 11:43 AM
Hello Johnson,

Have you tired using the RadComboBox's CheckBoxes built-in feature? Using the CheckBox functionality you could still define templates while at the same time you could take advantage of the ItemChecked events on the server as well as on the client.

I hope this will help.

Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ComboBox
Asked by
johnson lim
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or