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

Bug in RadGrid, events not firing and work around

3 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 1
Stephan asked on 30 Dec 2010, 03:40 PM
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!

3 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 03 Jan 2011, 08:36 AM
Hello Stephan,

To fix the problem you can try our latest internal build in which it should be fixed. Let us know if you find any problems with it and please excuse us for the caused inconvenience.

Kind regards,
Pavel
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Ali
Top achievements
Rank 1
answered on 23 Sep 2014, 11:50 AM
Link Not available can you please give new link or any other easy solution.
Thank You  
0
Konstantin Dikov
Telerik team
answered on 26 Sep 2014, 05:59 AM
Hi Ali,

The bug discussed in this forum thread is for version 2010.3 1215 of the controls and it is not relevant to versions after it. 

I have noticed that you have a post in another thread, for OnItemCommand event not firing. For both sides convenience I could suggest that we continue the conversation in the other thread, where I have asked for additional information on your current control version, your scenario and anything else that could help us identify the root of the problem. 


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Stephan
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Ali
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or