Completed
Last Updated: 17 Oct 2019 09:43 by ADMIN
ADMIN
Stefan
Created on: 07 Jan 2011 08:20
Category: GridView
Type: Bug Report
1
FIX. RadGridView can not change the current column in the CurrentColumnChanged event.
RadGridView can not change the current column (by using the IsCurrent of the desired column) in the CurrentColumnChanged event.
10 comments
ADMIN
Dimitar
Posted on: 17 Oct 2019 09:43

Hello Reyhane,

I am glad that you have found a solution to this. Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
reyhane
Posted on: 16 Oct 2019 14:28
It fixed. this happened because a column with IsVisible=false is after my ReadOnly Column. when I removed it this problem was solved.   
ADMIN
Dimitar
Posted on: 16 Oct 2019 13:05

Hi Reyhane,

Have you tested this with my test project? Does it work with it? Would it be possible to update it so it reproduces this and send it back to me? 

I am looking forward to your reply.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
reyhane
Posted on: 16 Oct 2019 11:33

I tested it at runTime and it dosn' work.

have you any other solution for this purpose?

ADMIN
Dimitar
Posted on: 16 Oct 2019 11:21

Hi Reyhane,

In this case, you cannot see the change until the column is changed internally and the event is fired on more time. Can you test this at runtime and see if it works?

I am looking forward to your reply.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
reyhane
Posted on: 16 Oct 2019 06:53

hi. you can see in this image I set index 6 for the current column.  

but in the second image, you see current column index is 5

I call this method in radGridView1_CurrentColumnChanged event.

ADMIN
Dimitar
Posted on: 14 Oct 2019 10:28

Hello Reyhane,

I have tested this with version 2018.2.515.40 and it seems to work on my side. I have attached my test project. Could you please check it and let me know how it differs from your real setup?

I am looking forward to your reply.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files:
reyhane
Posted on: 12 Oct 2019 13:15

Hi Dimitar

I'm using version 18.2.515.0

in

               

 private void radGridView1_CurrentColumnChanged(object sender, CurrentColumnChangedEventArgs e)
        {


            try
            {
                if (e.NewColumn.ReadOnly )
                {
                    int nextIndex = e.NewColumn.Index + 1;
                    if (nextIndex >= this.radGridView1.Columns.Count)
                    {
                        nextIndex = 0;
                    }

                   radGridView1.CurrentColumn = radGridView1.Columns[nextIndex];
                    if (!radGridView1.CurrentColumn.ReadOnly)
                    {
                        radGridView1.CurrentRow.Cells[radGridView1.CurrentCell.ColumnIndex].BeginEdit();
                    }
                }


            }
            catch
            {

            }


        }

 

when my First Column be ReadOnly                      radGridView1.CurrentColumn = radGridView1.Columns[nextIndex];   don't work.

 

ADMIN
Dimitar
Posted on: 09 Oct 2019 07:58

Hello Reyhane,

This issue is resolved, it is a very old issue and I cannot find the exact release where it was fixed. Which version of the suite are you currently using? What are your exact goals in this case as well? 

I am looking forward to your reply.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
reyhane
Posted on: 09 Oct 2019 07:04
Hi Is this problem solved? Do you have a solution?