Grid's binding not working after upgrade. Using commanditem btn with 'UpdateEdited' worked before upgrade. Now grid just collaspes and stays in editmode. Also no rebind after insert or delete. Thanks in advance.
public
void OnUpdateCommand(object source, GridCommandEventArgs e){
GridEditableItem gvRow = e.Item as GridEditableItem;
int
itemID0 = int.Parse(gvRow.GetDataKeyValue("Id").ToString());
Suppliers
obj = new Suppliers();
Suppliers_Details objDetails = new Suppliers_Details();
objDetails.Id = int.Parse(itemID0.ToString());
Retval = obj.UpdateItem(objDetails);
//if error
if (Retval[1] == "0"){
e.Canceled = true;
return;}
//If ok here the grid should close and rebind as before upgrade to Q3 SP2
}
//end sub
13 Answers, 1 is accepted
0
Hi brian26,
I just checked our online example and everything worked fine:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/CommandItem/DefaultCS.aspx
There are no changes in the example.
Regards,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I just checked our online example and everything worked fine:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/CommandItem/DefaultCS.aspx
There are no changes in the example.
Regards,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

brian26
Top achievements
Rank 1
answered on 04 Mar 2008, 03:50 PM
The example you posted uses AllowAutomaticUpdates="true". I need to control it manualy. Just like the example I posted. This worked fine before the upgrade. The code will update the data but the grid will not rebind as before in sp1.It just collapses. Also after doing a insert or a delete the grid doesn't allow me to hover over any rows or selecte any rows.
0
Hi brian26,
We will need a sample which replicates the problem to help you further. Please, submit a regular support ticket and attach a sample we can run locally. We will gladly review it and get back to you with our findings.
Best wishes,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We will need a sample which replicates the problem to help you further. Please, submit a regular support ticket and attach a sample we can run locally. We will gladly review it and get back to you with our findings.
Best wishes,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Tommy
Top achievements
Rank 1
answered on 02 Apr 2008, 04:04 PM
Hi,
is there any solution for this problem.
Since I get the licensed version of the RadControls, I have the same problem. After clicking on the commanditem button "Update" the command "UpdateEdited" fires but after that the grid stays in edit mode. With the trail version it worked fine.
Thank you for your answer.
is there any solution for this problem.
Since I get the licensed version of the RadControls, I have the same problem. After clicking on the commanditem button "Update" the command "UpdateEdited" fires but after that the grid stays in edit mode. With the trail version it worked fine.
Thank you for your answer.
0
Hello Tommy,
The difference could be because of different Grid versions. I remember an issue with the UpdateEdited command but it is resolved in v5.1.2 of RadGrid. Please, make sure you have upgraded the project.
If that does not help, we will need a sample runnable project replicating the issue, which you can send through a regular support ticket. As soon as we can debug that locally, we will get back to you with resolution.
Regards,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The difference could be because of different Grid versions. I remember an issue with the UpdateEdited command but it is resolved in v5.1.2 of RadGrid. Please, make sure you have upgraded the project.
If that does not help, we will need a sample runnable project replicating the issue, which you can send through a regular support ticket. As soon as we can debug that locally, we will get back to you with resolution.
Regards,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Tommy
Top achievements
Rank 1
answered on 03 Apr 2008, 07:25 AM
Hi Konstantin,
ok, but I'm talking about the RadGrid from the RadControls Prometheus package. I'm using the RadGrid from this package.
Tommy
ok, but I'm talking about the RadGrid from the RadControls Prometheus package. I'm using the RadGrid from this package.
Tommy
0
Hi Tommy,
Yes, indeed. Please, excuse me for the omission.
Actually we received a similar report regarding UpdateEdited command with the latest Grid and verified there is indeed a problem on update and the edit form is not closed. We are currently investigating the issue and will get back with resolution.
Please, excuse us for the temporary inconvenience.
Kind regards,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Yes, indeed. Please, excuse me for the omission.
Actually we received a similar report regarding UpdateEdited command with the latest Grid and verified there is indeed a problem on update and the edit form is not closed. We are currently investigating the issue and will get back with resolution.
Please, excuse us for the temporary inconvenience.
Kind regards,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Thomas
Top achievements
Rank 1
answered on 09 Apr 2008, 07:28 PM
Well, now that you are at it, you could fix the close-button on the version history page (5.1.2) ..renders a kinda creepy feeling, that it causes javascript errors ;-)
But basically I want to submit my interest to this thread, as I'm waiting for a fix as well. :-)
But basically I want to submit my interest to this thread, as I'm waiting for a fix as well. :-)
0

Thomas
Top achievements
Rank 1
answered on 09 Apr 2008, 10:35 PM
I thought, this would solve the puzzle for me:
But no luck, the insert window just happen to have a bad wish to stay open.
RadGrid1.MasterTableView.ClearEditItems(); |
RadGrid1.Rebind(); |
But no luck, the insert window just happen to have a bad wish to stay open.
0
Hi Thomas,
We will include fix for this in the upcoming release (next week)
Regards,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We will include fix for this in the upcoming release (next week)
Regards,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Jeff
Top achievements
Rank 1
answered on 20 Aug 2008, 07:58 PM
I just looked over the bug list for 2008.2.723 and did not see an item related to this bug. Did I miss it.
I too have a datagrid where I am using the OnUpdateCommand/OnInsertCommand. I can update my database in these methods, but the radGrid is not bothering to refresh and I can't seem to force it to refresh.
Thanks for the info!
I too have a datagrid where I am using the OnUpdateCommand/OnInsertCommand. I can update my database in these methods, but the radGrid is not bothering to refresh and I can't seem to force it to refresh.
Thanks for the info!
0

Kiara
Top achievements
Rank 1
answered on 22 Aug 2008, 01:52 PM
Tim, I suppose that the issue is resolved because I tested manual editing with RadGrid in one of my projects and it seems to work just fine with the 2008.2.723 release. You may also take a look at these online demos for more details:
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/DataEditing/EditModes/DefaultCS.aspx
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/DataEditing/EditModes/DefaultCS.aspx
I took them as a starting point for my own implementation.
Kiara
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/DataEditing/EditModes/DefaultCS.aspx
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/DataEditing/EditModes/DefaultCS.aspx
I took them as a starting point for my own implementation.
Kiara
0

Jeff
Top achievements
Rank 1
answered on 22 Aug 2008, 02:31 PM
Thanks for the confirmation and links,
..and sorry for the bold type. I copied/pasted the version number and the bold style followed.
I still have the issue, but started a new post at [http://www.telerik.com/community/forums/thread/b311D-bktdkk.aspx]
Hopefully, I'll find my magic bullet soon.
..and sorry for the bold type. I copied/pasted the version number and the bold style followed.
I still have the issue, but started a new post at [http://www.telerik.com/community/forums/thread/b311D-bktdkk.aspx]
Hopefully, I'll find my magic bullet soon.