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

ComboBox not updated on CallBack

2 Answers 40 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
JustinWong
Top achievements
Rank 1
JustinWong asked on 18 Dec 2008, 08:55 AM
Hi:

I have a RadCombox (ajax) and a RadWindow on a page. The RadWindow allows me to change some database records. When the RadWindow closes, I use AJaxManager to trigger a callback on the combo box.

$find(

"<%= RAJforForm.ClientID %>").ajaxRequest("Rebind_RcbL01");

 


I know the callback is triggered because I've debugged the code and RaisePostBackEventis is triggered as it should.

Now within RaisePostBackEvent event, I basically reload the combobox (RcbL01) right from the database.  From debugging, I can see that the RadComboBox successfully bind to the datatable and RcbL01.Items(1).Text in fact was showing me the NEW field information under debug. 

However, on the screen, the items inside the combo box do not update. They are still the OLD value (even though the server-side debug clearly shows the new values are bind to the combo box).

Any help to resolve this issue is appreciated!

Justin


Aspx:

 

<telerik:RadComboBox ID="RcbL01"

 

 

Skin="WebBlue"

 

 

Width="400px"

 

 

Height="250px"

 

 

Font-Size="8pt"

 

 

DropDownWidth="620px"

 

 

AppendDataBoundItems="true"

 

 

AllowCustomText="false" EnableLoadOnDemand="true"

 

 

OnItemDataBound="RcbL01_ItemDataBound"

 

 

OnItemsRequested="RcbL01_ItemsRequested"

 

 

ItemRequestTimeout="500"

 

 

runat="server">

 

</

 

telerik:RadComboBox>

 


 

<telerik:RadAjaxManager ID="RAJforForm"

 

 

ClientEvents-OnRequestStart="TestAJaxConditionAtStart"

 

 

runat="server">

 

 

<AjaxSettings>

 

 

 

 

<telerik:AjaxSetting AjaxControlID="RcbL01">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RcbLFYr" />

 

 

<telerik:AjaxUpdatedControl ControlID="RcbL01" />

 

 

<telerik:AjaxUpdatedControl ControlID="RdG02" LoadingPanelID="ALP01" />

 

 

<telerik:AjaxUpdatedControl ControlID="RdG03" />

 

 

<telerik:AjaxUpdatedControl ControlID="LblMsg" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 



2 Answers, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 20 Dec 2008, 10:28 AM
Hello JustinWong,

You need to add an additional configuration setting in the RadAjaxManager since it updates the ComboBox:

<telerik:RadAjaxManager ID="RAJforForm" ClientEvents-OnRequestStart="TestAJaxConditionAtStart" runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RcbL01"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RcbLFYr" /> 
                <telerik:AjaxUpdatedControl ControlID="RcbL01" /> 
                <telerik:AjaxUpdatedControl ControlID="RdG02" LoadingPanelID="ALP01" /> 
                <telerik:AjaxUpdatedControl ControlID="RdG03" /> 
                <telerik:AjaxUpdatedControl ControlID="LblMsg" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="RAJforForm"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RcbL01" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 

Regards,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
JustinWong
Top achievements
Rank 1
answered on 20 Dec 2008, 08:58 PM
Thanks Simon. I totally missed that!
Tags
ComboBox
Asked by
JustinWong
Top achievements
Rank 1
Answers by
Simon
Telerik team
JustinWong
Top achievements
Rank 1
Share this question
or