Problem with the Kendo grid

2 posts, 0 answers
  1. Poonam
    Poonam avatar
    1 posts
    Member since:
    Aug 2013

    Posted 27 Aug 2013 Link to this post

    Hi,

     I am trying to automate a kendo grid from the site  http://demos.kendoui.com/web/grid/editing.html. I am trying to change a value into cell but it is not able to change. After I come out of the cell, it is getting its old value.
    Code snipplet is -

    int i = 1;

     

     

    foreach (KendoGridDataItem row in kgrid.grid.DataItems)

    {

     

    if (row.Cells[0].TextContent == "Northwoods Cranberry Sauce")

    {

    row.Cells[1].Click(); 

     

    HtmlInputText text = ActiveBrowser.Find.ByName<HtmlInputText>("UnitPrice");

    row.Cells[1].Click();

     

     text.Text = "243344";

    string TextVal = kgrid.grid.DataItems[i-1][1].TextContent;

    row.Cells[1].Click();

     

    break;

    }

    i++;

    }

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 30 Aug 2013 Link to this post

    Hello Poonam,

    Since you are refreshing the page after each iteration this is expected behavior.

    If you just set the text in a single iteration the value is saved.

    If I am missing something please elaborate a bit more on your scenario.

    Regards,
    Boyan Boev
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top