Hi,
When I am focusing the KendoGrid cell, I got error like
" System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)"
To focusing the grid cell, Iam used below mentioned coding,
int i=0,j=1;
KendoGrid grid = ActiveBrowser.Find.ById<KendoGrid>("grdVerifyDataIPIV101000010005");
grid.MouseHover();
grid.ScrollToVisible();
grid.DataItems[i].Cells[j].Focus();
grid.DataItems[i].Cells[j].MouseHover();
I got error in " grid.DataItems[i].Cells[j].Focus();" this line.
In this where I did Mistake?...
When I am focusing the KendoGrid cell, I got error like
" System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)"
To focusing the grid cell, Iam used below mentioned coding,
int i=0,j=1;
KendoGrid grid = ActiveBrowser.Find.ById<KendoGrid>("grdVerifyDataIPIV101000010005");
grid.MouseHover();
grid.ScrollToVisible();
grid.DataItems[i].Cells[j].Focus();
grid.DataItems[i].Cells[j].MouseHover();
I got error in " grid.DataItems[i].Cells[j].Focus();" this line.
In this where I did Mistake?...
5 Answers, 1 is accepted
0
aruna
Top achievements
Rank 1
answered on 04 Mar 2015, 06:27 AM
Hi
For your more reference, I have attached the grid image and the coding. Kindly Verify it.
For your more reference, I have attached the grid image and the coding. Kindly Verify it.
0
Hello Aruna,
Using your code with the following demo we are not able to reproduce this behavior. Refer to the screenshot attached.
You can try to add a small delay after ScrollToVisible line or completely remove it and see if there will be any difference in the execution.
If the problem you are experiencing is due to some specifics in your application we will need access so we can reproduce and investigate further.
Regards,
Ivaylo
Telerik
Using your code with the following demo we are not able to reproduce this behavior. Refer to the screenshot attached.
You can try to add a small delay after ScrollToVisible line or completely remove it and see if there will be any difference in the execution.
If the problem you are experiencing is due to some specifics in your application we will need access so we can reproduce and investigate further.
Regards,
Ivaylo
Telerik
0
aruna
Top achievements
Rank 1
answered on 05 Mar 2015, 01:27 PM
Hi Ivaylo,
Thanks...
I will try this method, and get back to you.
Regards,
Aruna
Thanks...
I will try this method, and get back to you.
Regards,
Aruna
0
aruna
Top achievements
Rank 1
answered on 06 Mar 2015, 12:50 PM
Hello Ivaylo,
Sorry, I tried with some delay in those steps, but again I got the same error like "System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection".
Regards,
Aruna
Sorry, I tried with some delay in those steps, but again I got the same error like "System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection".
Regards,
Aruna
0
Hello Aruna,
As I already noticed we will need access to the application in order to assist you further.
Furthermore I've notice that your account is no longer entitled for support. Do you have another account that has active support so you can submit a ticket with valuable information in order to remain private?
Regards,
Ivaylo
Telerik
As I already noticed we will need access to the application in order to assist you further.
Furthermore I've notice that your account is no longer entitled for support. Do you have another account that has active support so you can submit a ticket with valuable information in order to remain private?
Regards,
Ivaylo
Telerik