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

[Solved] Ajaxifying checkboxlist

3 Answers 194 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Joselito
Top achievements
Rank 1
Joselito asked on 17 Apr 2008, 08:26 PM
I have a checkboxlist but I only want to apply ajax on one item in the list and the  item in checkbox list is populated when the pageload in c# code behind.
Im using a radajaxmanager and set the checkbox to ajaxified the panel but every time check one of the checkbox it always apply the ajax in the panel which i dont need I only want to happen when a particular item in the checkbox to ajaxified the panel.

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 18 Apr 2008, 07:05 AM
Hi Joselito,

Basically each control performing a postback will do AJAX updates if you ajaxify it. That's how the RadAjax framework works.

Do you mean you want to perform AJAX update only if a new item is checked? The easiest way to achieve that is through RadioButtonList instead of CheckBoxList. Otherwise, you can use a couple of check boxes and ajaxify those, you need only. You can set only a couple of check boxes with AutoPostBack="true" so that those will trigger AJAX updates only.

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joselito
Top achievements
Rank 1
answered on 18 Apr 2008, 10:13 PM
i did programatically and it works but panelTypeTop gets rendered at the bottom of the page and panelType show up in the right place.

protected

void CbxListType_SelectedIndexChanged(object sender, EventArgs e)
{
RadAjaxManager1.AjaxSettings.AddAjaxSetting(cbxlType, panelTypeTop, AjaxLoadingPanel1);
panelType.Visible =
true;
}

<asp:Panel id=panelTypeTop>
    <asp:panel id=panelType>
    </asp:Panel>
</asp:Panel>

0
Maria Ilieva
Telerik team
answered on 21 Apr 2008, 04:02 PM
Hi Joselito,

Will it be convenient for you to open a regular support ticket and provide us with sample runnable application? We will test it locally and research on the described behaviour.

All the best,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Joselito
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Joselito
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or