It seems like I keep running into problems when I Ajaxify controls.
Does someone have some concrete examples and how-to's on how to use Ajaxify controls correctly?
The current problem I am having is that I have the following
<telerik:AjaxSetting AjaxControlID="gvMessageList"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="gvMessageList" LoadingPanelID="ajaxLoadingPanel" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="ddlProperty" EventName="OnSelectedIndexChanged"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="gvMessageList" LoadingPanelID="ajaxLoadingPanel" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="btnSearch"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="gvMessageList" LoadingPanelID="ajaxLoadingPanel" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="messagePanel"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="lblPropertySmsText" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
To me it should be straight forward: gvMessageList is a RadGrid and it should be updated when
- it does something itself (pages, sort, etc)
- when the drop down list is changed
- when a search button is clicked
For some reason AFTER I use the drop down list to make a selection problems occur. If I click the search button (or expand the grid) the SelectedIndexChanged event for the drop down list fires AS WELL AS the event for the button.
Can someone explain what I am missing on how to Ajaxify correctly?
Thanks.