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

“Folder Tree” cannot retrieve data correctly.

2 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ifdev02
Top achievements
Rank 1
Ifdev02 asked on 12 Oct 2010, 06:18 PM
 “Folder Tree” mode.
Private Sub Grid_CellBeginEdit(ByVal sender As Object, ByVal e As GridViewCellCancelEventArgs)
programName = DirectCast(Grid.Rows(e.RowIndex).Cells("program").Value, String)

with code in your example, i could not get the correct cell value because e.rowindex somehow is the wrong row... due to rearranging in tree mode...

It took me few hours to find out that your e.rowindex is reference to the non-tree mode grid... so how can I get user interaction during the tree mode?

Also your support ticket page is 404 error.

Thanks,
J.

2 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 12 Oct 2010, 08:17 PM
Hello Ifdev02,

I'm sorry to tell you this , but there are a series of bugs in Folder Tree, which will be addressed in the next release, until then it will, at best, be a series of patches over patches, please see this thread for more information.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

0
Alexander
Telerik team
answered on 14 Oct 2010, 10:15 AM
Hello Joe,

The RadGridView row indices are recreated when its mode is changed from flat grid to grouped, hierarchical, sorted, etc. It improves the performance while iterating rows in these modes.

The code snippet you provide gives the cell a value of the "program" column which is in the same row with the cell you currently edit. It is equivalent to the code snippet below:
Private Sub Grid_CellBeginEdit(ByVal sender As Object, ByVal e As GridViewCellCancelEventArgs)
programName = DirectCast(Grid.CurrentRow.Cells("program").Value, String)

I would kindly ask you to give us more details about your scenario and explain why you receive data from a wrong row. This will allow me to assist you further.

Best regards,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ifdev02
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or