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

Problem with the Kendo grid

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Poonam
Top achievements
Rank 1
Poonam asked on 28 Aug 2013, 04:50 AM
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++;

}

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 30 Aug 2013, 11:26 AM
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
Tags
General Discussions
Asked by
Poonam
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or