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

Having a problem in focusing KendoGrid cell

5 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
aruna
Top achievements
Rank 1
aruna asked on 28 Feb 2015, 05:43 AM
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?...

5 Answers, 1 is accepted

Sort by
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.
0
Ivaylo
Telerik team
answered on 05 Mar 2015, 07:39 AM
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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
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
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
0
Ivaylo
Telerik team
answered on 10 Mar 2015, 07:11 AM
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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
aruna
Top achievements
Rank 1
Answers by
aruna
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or