Hello,
I have a dynamically generated page and a RadGrid on it.
The Grid is defined as follows:
When I select an element, a detail is redrawn, everything works fine.
When I click on the selected item again, the postback is called, but no events are fired.
The site draws RadGrid with blank rows, the number of rows corresponds to the original number, but they do not contain any text.
Detail, which is drawn from the events Grid_DataBound, is not rendered because the event is not called.
If I click on the another item, which is not selected, everythings work fine again.
Can someone help?
Best regards
Martin
I have a dynamically generated page and a RadGrid on it.
The Grid is defined as follows:
protected virtual void SetGrid(CustomFormPageHandler form, ASPXListFrameDefinition definition) { selectedID = ((FrameObjects.GetFrameControlId(FrameName) != Definition.ID) ? -9 : FrameObjects.GetFrameObjectID(FrameName)); //Grid.DataSource = OWData; //if (!IsLOV) Grid.SelectedIndexChanged += new EventHandler(SelectedIndexChanged); Grid.DataBinding += new EventHandler(GridDataBinding); Grid.DataBound += new EventHandler(Grid_DataBound); Grid.ItemDataBound += new GridItemEventHandler(GridItemDataBoundEvent); Grid.ColumnCreated += new GridColumnCreatedEventHandler(Grid_ColumnCreated); Grid.DataSourceID = OWData.ClientID; Grid.ID = definition.ID; Grid.AllowPaging = true; Grid.AllowSorting = true; Grid.AllowFilteringByColumn = !definition.HideFilterRow; if (!IsLOV) { Grid.Height = (Unit.Parse(definition.Height)); Grid.Width = (Unit.Parse(definition.Width)); } else { // Grid.Height = new Unit("100%");// (Unit.Parse(definition.Height)); Grid.Width = new Unit("100%"); //(Unit.Parse(definition.Width)); } Grid.ClientSettings.EnableAlternatingItems = true; Grid.ClientSettings.Scrolling.AllowScroll = true; Grid.ClientSettings.EnablePostBackOnRowClick = true; Grid.ClientSettings.Resizing.AllowResizeToFit = true; Grid.ClientSettings.Selecting.AllowRowSelect = true; Grid.AutoGenerateColumns = false; Grid.MasterTableView.AllowMultiColumnSorting = true; Grid.MasterTableView.ShowHeadersWhenNoRecords = true; Grid.MasterTableView.AlternatingItemStyle.BackColor = Color.LightGray; Grid.MasterTableView.DataKeyNames = new string[] { "ID" }; if (definition.Attribute.Count() > 1) { Grid.GroupingEnabled = true; Grid.ShowGroupPanel = true; Grid.ClientSettings.AllowDragToGroup = true; Grid.ClientSettings.Resizing.AllowColumnResize = true; Grid.ClientSettings.Resizing.EnableRealTimeResize = true; Grid.ClientSettings.EnableRowHoverStyle = true; } }When I select an element, a detail is redrawn, everything works fine.
When I click on the selected item again, the postback is called, but no events are fired.
The site draws RadGrid with blank rows, the number of rows corresponds to the original number, but they do not contain any text.
Detail, which is drawn from the events Grid_DataBound, is not rendered because the event is not called.
If I click on the another item, which is not selected, everythings work fine again.
Can someone help?
Best regards
Martin