Hi,
Please note that I am using an older version of Telerik (v: 2009.02.0701.35).
I am creating a simple RadGrid, each record in the grid has 2 values (city and name). For one of those values (city - type string) I want to use a combobox for editing where the user can also type in a custom value. This all works great. I then added AJAX using the AJAX controls and now when I go to edit mode and either click cancel or update the AJAX loading panel stays on the screen. The values have updated but you can only see that if you refresh the page (F5) or if I disable Ajax then everything works as expected. The culprit is the Combo box (if I remove it then everything works) but I am not sure why. What am I missing?
See my attached screen shot of what happens when clicking either Cancel or Update.
Here is my ASPX code (using .NET 4.0 and Visual Studio 2010).
The radComboCity_OnLoad method loads the list into the RadComboBox. If you want to see the code behind let me know and I will paste it but I am not doing anything important there.
Thanks in advance for any help you can provide (with the exception of updating my version because I don't make those decisions in the company).
-Igor
Please note that I am using an older version of Telerik (v: 2009.02.0701.35).
I am creating a simple RadGrid, each record in the grid has 2 values (city and name). For one of those values (city - type string) I want to use a combobox for editing where the user can also type in a custom value. This all works great. I then added AJAX using the AJAX controls and now when I go to edit mode and either click cancel or update the AJAX loading panel stays on the screen. The values have updated but you can only see that if you refresh the page (F5) or if I disable Ajax then everything works as expected. The culprit is the Combo box (if I remove it then everything works) but I am not sure why. What am I missing?
See my attached screen shot of what happens when clicking either Cancel or Update.
Here is my ASPX code (using .NET 4.0 and Visual Studio 2010).
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="radG" %>
<
radG:RadGrid
id
=
"grdParkingLocations"
runat
=
"server"
Width
=
"600px"
enableajax
=
"True"
GridLines
=
"None"
PageSize
=
"999"
AllowMultiRowSelection
=
"False"
ShowStatusBar
=
"true"
AllowPaging
=
"False"
AllowSorting
=
"False"
AutoGenerateColumns
=
"False"
AllowAutomaticDeletes
=
"False"
AllowAutomaticInserts
=
"False"
AllowAutomaticUpdates
=
"False"
OnNeedDataSource
=
"grdParkingLocations_NeedDataSource"
OnItemDataBound
=
"grdParkingLocations_OnItemDataBound"
OnUpdateCommand
=
"grdParkingLocations_UpdateCommand"
OnInsertCommand
=
"grdParkingLocations_InsertCommand"
OnDeleteCommand
=
"grdParkingLocations_DeleteCommand"
>
<
MasterTableView
DataKeyNames
=
"ParkingLocationId"
AutoGenerateColumns
=
"False"
CommandItemDisplay
=
"Top"
InsertItemPageIndexAction
=
"ShowItemOnCurrentPage"
>
<
CommandItemSettings
AddNewRecordText
=
"New location"
/>
<
Columns
>
<
radG:GridEditCommandColumn
ButtonType
=
"ImageButton"
HeaderText
=
"Edit"
/>
<
radG:GridButtonColumn
ConfirmText
=
"Delete this parking location?"
HeaderText
=
"Delete"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Delete"
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
/>
<
radg:GridBoundColumn
UniqueName
=
"Name"
DataField
=
"Name"
HeaderText
=
"Name"
ItemStyle-Width
=
"300px"
/>
<
radG:GridTemplateColumn
UniqueName
=
"City"
DataField
=
"City"
HeaderText
=
"City"
ItemStyle-Width
=
"300px"
>
<
FooterTemplate
>Template footer</
FooterTemplate
>
<
FooterStyle
VerticalAlign
=
"Middle"
HorizontalAlign
=
"Center"
/>
<
ItemTemplate
>
<%#DataBinder.Eval(Container.DataItem, "City")%>
</
ItemTemplate
>
<
EditItemTemplate
>
<
radG:RadComboBox
runat
=
"server"
ID
=
"radComboCity"
AllowCustomText
=
"True"
Height
=
"140px"
Width
=
"220px"
DropDownWidth
=
"420px"
OnLoad
=
"radComboCity_OnLoad"
SelectedValue='<%#Bind("City") %>'/>
</
EditItemTemplate
>
</
radG:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
radG:RadGrid
>
<
radG:RadAjaxLoadingPanel
ID
=
"LoadingPanelParkingLocations"
runat
=
"server"
/>
<
radG:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
EnableAJAX
=
"True"
>
<
AjaxSettings
>
<
radG:AjaxSetting
AjaxControlID
=
"grdParkingLocations"
>
<
UpdatedControls
>
<
radG:AjaxUpdatedControl
ControlID
=
"grdParkingLocations"
LoadingPanelID
=
"LoadingPanelParkingLocations"
/>
</
UpdatedControls
>
</
radG:AjaxSetting
>
</
AjaxSettings
>
</
radG:RadAjaxManager
>
The radComboCity_OnLoad method loads the list into the RadComboBox. If you want to see the code behind let me know and I will paste it but I am not doing anything important there.
Thanks in advance for any help you can provide (with the exception of updating my version because I don't make those decisions in the company).
-Igor