Grid Rebinding + Q3 sp2

14 posts, 0 answers
  1. brian26
    brian26 avatar
    17 posts
    Member since:
    Jan 2007

    Posted 29 Feb 2008 Link to this post

    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

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 Mar 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. brian26
    brian26 avatar
    17 posts
    Member since:
    Jan 2007

    Posted 04 Mar 2008 Link to this post

    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.
  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 04 Mar 2008 Link to this post

    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
  6. Tommy
    Tommy avatar
    27 posts
    Member since:
    Feb 2008

    Posted 02 Apr 2008 Link to this post

    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.
  7. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 03 Apr 2008 Link to this post

    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
  8. Tommy
    Tommy avatar
    27 posts
    Member since:
    Feb 2008

    Posted 03 Apr 2008 Link to this post

    Hi Konstantin,

    ok, but I'm talking about the RadGrid from the RadControls Prometheus package. I'm using the RadGrid from this package.

    Tommy
  9. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 03 Apr 2008 Link to this post

    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
  10. Thomas
    Thomas avatar
    2 posts
    Member since:
    Apr 2008

    Posted 09 Apr 2008 Link to this post

    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. :-)
  11. Thomas
    Thomas avatar
    2 posts
    Member since:
    Apr 2008

    Posted 09 Apr 2008 Link to this post

    I thought, this would solve the puzzle for me:

    RadGrid1.MasterTableView.ClearEditItems();
    RadGrid1.Rebind();

    But no luck, the insert window just happen to have a bad wish to stay open.
  12. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 11 Apr 2008 Link to this post

    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
  13. Tim
    Tim avatar
    79 posts
    Member since:
    Feb 2008

    Posted 20 Aug 2008 Link to this post

    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!
  14. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 22 Aug 2008 Link to this post

    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
  15. Tim
    Tim avatar
    79 posts
    Member since:
    Feb 2008

    Posted 22 Aug 2008 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017