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

SelectedValue/SelectedText Inaccurate in Partial Postback

1 Answer 80 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Online .Net Developers
Top achievements
Rank 1
Online .Net Developers asked on 04 Feb 2009, 07:28 PM
I have a RadCombo that stores a list of user names.  Every time the User selects a new name, an AJAX call is made and a RadGrid is filled with info for that selected User.  Everything is done client-side with no full Postback

In the grid, there is a GridButtonColumn button ("Remove") that uses ClientEvents and a RadScriptBlock to make 2 AJAX calls.

The first one is in the code-behind of the page itself, and the second is on the code-behind of a User Control on the page.

The issue is that between the 2 calls, a partial PostBack takes place and in the Page_Load event, the values for SelectedValue and SelectedText are incorrect.  They are initially null/empty, instead of the currently selected item in the RadCombo. 

This is key because in the Page_Load event, the current user name is used to fill one of the page's properties.  This property is then needed by the User Control code-behind to perform further actions.

Is there a setting to make sure the currently selected values are populated correctly during this sequence?

Thanks.

Chris


1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 09 Feb 2009, 10:09 AM
Hi Online .Net Developers,

Could you provide more details about this partial PostBack which occurs between the two AJAX calls? How it is different than the other two?

Regards,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Online .Net Developers
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or