Hello,
I currently have RadGrids that I am creating dynamically in Page Load that are embedded in PanelBar Items. The grids create fine and render on the page. They have the initial appearance of drag and drop, but when the row is released into the new grid, the routine tied to the RowDrop event (
Here is a snippet from the code-behind:
Any help is appreciated.
regards,
Steve
I currently have RadGrids that I am creating dynamically in Page Load that are embedded in PanelBar Items. The grids create fine and render on the page. They have the initial appearance of drag and drop, but when the row is released into the new grid, the routine tied to the RowDrop event (
GridRowDrop) does not fire and the Page appears to do a PostBack. I believe this has to do with something with AJAX settings, but not certain.Here is a snippet from the code-behind:
Dim SectionGrid As New RadGrid() With SectionGrid .DataSource = GetData(FCTN_TYPE_CD, CALLING_AGENT) With .MasterTableView .NoMasterRecordsText = "No associates assigned" .Columns.Add(New GridDragDropColumn) End With .Rebind() End With ' Set each grid's properties. With SectionGrid .ID = "SectionGrid_" & FCTN_TYPE_CD .AllowSorting = True .Width = Unit.Percentage(99) .AutoGenerateColumns = False .ShowHeader = False .AllowMultiRowSelection = True .CssClass = "BottomCorners" .Attributes.Add("style", "border:none;") With .ClientSettings .AllowRowsDragDrop = True .Selecting.EnableDragToSelectRows = False .Selecting.AllowRowSelect = True .ClientEvents.OnRowDropping = "onRowDropping" .EnablePostBackOnRowClick = False End With End With With SectionGrid.MasterTableView .Width = Unit.Percentage(100) .DataKeyNames = New String() {"LDAP"} .GetColumn("LDAP").Visible = False End With AssignedGrid.Controls.Add(SectionGrid) With PanelItem .Items.Add(AssignedGrid) .Expanded = True End With If SectionGrid.Items.Count = 0 Then PanelItem.Expanded = False AddHandler SectionGrid.RowDrop, AddressOf GridRowDrop AddHandler SectionGrid.NeedDataSource, AddressOf GridNeedDataSourceAny help is appreciated.
regards,
Steve