Hi,
There is a nasty bug in the RadGrid control leading to Update/Insert events not firing when editing.
See below how you reproduce the problem and how you resolve it.
We did this with the December 15 version of Telerik.
a) Define a skin such as:
<telerik:RadGrid SkinID = "MySkin" AllowPaging="True" PageSize="30" runat="server" AutoGenerateColumns="false">
</telerik:RadGrid>
b) Create a RadGrid with that skin and add events for update/insert commands
<telerik:RadGrid ID="RadGrid1" EnableViewState="true"
runat="server" SkinID="MySkin"
OnNeedDataSource="RadGrid1_NeedDataSource"
OnUpdateCommand="RadGrid1_UpdateCommand"
AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
>
c) Events are not firing!
The solution is this:
Simply add the property to the RadGrid: PageSize = "30" and it works again and the events fire. As soon as you put this PageSize property in the skin definition you get into troubled water...
We spent half a day to track this down. God!
There is a nasty bug in the RadGrid control leading to Update/Insert events not firing when editing.
See below how you reproduce the problem and how you resolve it.
We did this with the December 15 version of Telerik.
a) Define a skin such as:
<telerik:RadGrid SkinID = "MySkin" AllowPaging="True" PageSize="30" runat="server" AutoGenerateColumns="false">
</telerik:RadGrid>
b) Create a RadGrid with that skin and add events for update/insert commands
<telerik:RadGrid ID="RadGrid1" EnableViewState="true"
runat="server" SkinID="MySkin"
OnNeedDataSource="RadGrid1_NeedDataSource"
OnUpdateCommand="RadGrid1_UpdateCommand"
AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
>
The solution is this:
Simply add the property to the RadGrid: PageSize = "30" and it works again and the events fire. As soon as you put this PageSize property in the skin definition you get into troubled water...
We spent half a day to track this down. God!