Hi everyone,
In this other question of mine, I am facing a different problem than the previous one.
I currently have a grid, inside a radtabstrip inside a grid. In order to makes this easier, here is the name of the items.
Parent grid : grdChauffeurs
Tabstrip : RadTabStrip2
Inner grid : grdOrdre
Here is what I would like to achieve.
When I drop a row in grdDriver, I want the row to be added in the grid grdOrdre.
In my rowdrop event I have the following code :
I am a new developper and I'm a bit confused with how all the hierarchy works in the radgrid.
Thank you in advance for you most appreciated help
Max
In this other question of mine, I am facing a different problem than the previous one.
I currently have a grid, inside a radtabstrip inside a grid. In order to makes this easier, here is the name of the items.
Parent grid : grdChauffeurs
Tabstrip : RadTabStrip2
Inner grid : grdOrdre
Here is what I would like to achieve.
When I drop a row in grdDriver, I want the row to be added in the grid grdOrdre.
In my rowdrop event I have the following code :
Protected
Sub
grdListeCommande_RowDrop(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridDragDropEventArgs)
Handles
grdListeCommande.RowDrop
Dim
RowDragged
As
GridDataItem
Dim
RowIndexDestin
As
Integer
Dim
intChfNRI
As
Integer
Dim
intAtcNRI
As
Integer
Dim
tabstrip
As
RadTabStrip
Dim
grille
As
RadGrid =
Nothing
For
Each
item
As
GridNestedViewItem
In
grdChauffeurs.MasterTableView.GetItems(GridItemType.NestedView)
tabstrip = item.FindControl(
"RadTabStrip2"
)
grille = tabstrip.MultiPage.FindControl(
"grdOrdre"
)
Next
RowDragged = e.DraggedItems.FirstOrDefault()
If
(e.DestDataItem IsNot
Nothing
)
Then
If
(e.DestDataItem.OwnerGridID = grdChauffeurs.ClientID)
Then
Me
.RowIndex = e.DestDataItem.ItemIndex
intAtcNRI =
CInt
(RowDragged(
"ATCNRI"
).Text)
intChfNRI =
Me
.DataTableChauffeur.Rows(
Me
.RowIndex).Item(
"NRI"
)
End
If
Select
Case
False
Case
intChfNRI <>
Nothing
Case
intAtcNRI <>
Nothing
Case
pfblnGetRoadSheet(intChfNRI, intAtcNRI)
Case
Else
e.DestDataItem.Expanded =
False
e.DestDataItem.Expanded =
True
grille.DataSource =
Me
.DataTableMouvement
End
Select
End
If
End
Sub
I am a new developper and I'm a bit confused with how all the hierarchy works in the radgrid.
Thank you in advance for you most appreciated help
Max