Hi, I'm is Brazilian and no have inglesh good.
I developer one grid whit scrolling, but the grid no render rigth when chage scroll.
Missing collumns, lines repeat, ...
My grid:
Source:
Afeter binder:
I need for help,
I developer one grid whit scrolling, but the grid no render rigth when chage scroll.
Missing collumns, lines repeat, ...
My grid:
| <telerik:RadGrid ID="gridMapa" runat="server" ForeColor="#333333" CssClass="gridVazia" Skin="" EnableEmbeddedSkins="False" OnItemDataBound="gridMapa_ItemDataBound" OnExcelMLExportRowCreated="gridMapa_ExcelMLExportRowCreated" OnExcelMLExportStylesCreated="gridMapa_ExcelMLExportStylesCreated" Width="95%"> |
| <FooterStyle BackColor="#5D7B9D" ForeColor="White" /> |
| <AlternatingItemStyle BackColor="White" CssClass="Espacamento" ForeColor="#284775" /> |
| <ItemStyle BackColor="#F7F6F3" CssClass="Espacamento" ForeColor="#333333" Wrap="False" /> |
| <PagerStyle BackColor="#284775" ForeColor="White" FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif" NextPageImageUrl="PagingNext.gif" PrevPageImageUrl="PagingPrev.gif"/> |
| <MasterTableView NoDetailRecordsText="" NoMasterRecordsText=""> |
| <RowIndicatorColumn FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif"> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn CollapseImageUrl="SingleMinus.gif" ExpandImageUrl="SinglePlus.gif" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif"> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <EditFormSettings> |
| <EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif" FilterImageUrl="Filter.gif" |
| InsertImageUrl="Update.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif" |
| UpdateImageUrl="Update.gif"> |
| </EditColumn> |
| </EditFormSettings> |
| <CommandItemSettings AddNewRecordImageUrl="AddRecord.gif" RefreshImageUrl="Refresh.gif" /> |
| <PagerStyle FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif" |
| NextPageImageUrl="PagingNext.gif" PrevPageImageUrl="PagingPrev.gif" /> |
| </MasterTableView> |
| <SelectedItemStyle BackColor="#E2DED6" ForeColor="#333333" /> |
| <HeaderStyle CssClass="Espacamento" Wrap="False" BackColor="#5D7B9D" ForeColor="White" /> |
| <EditItemStyle BackColor="#999999" /> |
| <SortingSettings SortToolTip="Clique aqui para ordenar..." /> |
| <StatusBarSettings LoadingText="Carregando..." /> |
| <ExportSettings> |
| <Pdf PageHeight="297mm" PageWidth="210mm" PaperSize="A4" /> |
| </ExportSettings> |
| <FilterMenu EnableEmbeddedSkins="False" EnableTheming="True" Skin=""> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| </telerik:RadGrid> |
Source:
| protected void gridMapa_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) |
| { |
| if (e.Item.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem |
| || e.Item.ItemType == Telerik.Web.UI.GridItemType.Item |
| || e.Item.ItemType == Telerik.Web.UI.GridItemType.Header) |
| { |
| if (e.Item.ItemType != Telerik.Web.UI.GridItemType.Header) |
| { |
| if (isVertical) |
| { |
| e.Item.Cells[2].BackColor = gridMapa.HeaderStyle.BackColor; |
| e.Item.Cells[2].CssClass = gridMapa.HeaderStyle.CssClass; |
| e.Item.Cells[2].ForeColor = gridMapa.HeaderStyle.ForeColor; |
| e.Item.Cells[2].Font.Bold = true; |
| e.Item.Cells[2].Wrap = false;//gridMapa.HeaderStyle.Wrap; |
| } |
| if (isVertical && e.Item.ItemIndex > 0) |
| { |
| for (int i = 3; i <= (e.Item.Cells.Count - 1); i++) |
| { |
| e.Item.Cells[i].Attributes.Add("onMouseOver", "this.style.cursor='pointer'"); |
| if (origem == Origem.email.ToString()) |
| { |
| e.Item.Cells[i].Attributes.Add("onClick", "window.open ('" + ConfigurationManager.AppSettings["caminhoPaginaProcessosAbsoluto"] + "?NrProcesso=" + gridMapa.Items[0].Cells[i].Text + "', 'mapaFollowUP'); return false;"); |
| } |
| else |
| { |
| e.Item.Cells[i].Attributes.Add("onClick", "location.href = 'processos.aspx?NrProcesso=" + gridMapa.Items[0].Cells[i].Text + "'; return false;"); |
| } |
| } |
| } |
| else |
| { |
| e.Item.Attributes.Add("onMouseOver", "this.style.cursor='pointer'"); |
| if (origem == Origem.email.ToString()) |
| { |
| e.Item.Attributes.Add("onClick", "window.open ('" + ConfigurationManager.AppSettings["caminhoPaginaProcessosAbsoluto"] + "?NrProcesso=" + e.Item.Cells[2].Text + "', 'mapaFollowUP'); return false;"); |
| } |
| else |
| { |
| e.Item.Attributes.Add("onClick", "location.href = 'processos.aspx?NrProcesso=" + e.Item.Cells[2].Text + "'; return false;"); |
| } |
| } |
| } |
| else |
| { |
| if (e.Item.Cells[2].Text.ToLower() == "col1") |
| { |
| isVertical = true; |
| //e.Item.Visible = false; |
| gridMapa.MasterTableView.ShowHeader = false; |
| gridMapa.MasterTableView.Caption = "Mapa de Processos"; |
| for (int i = 2; i <= (e.Item.Cells.Count - 1); i++) |
| { |
| e.Item.Cells[i].Text = ""; |
| } |
| } |
| else |
| { |
| isVertical = false; |
| e.Item.Visible = false; |
| gridMapa.MasterTableView.ShowHeader = true; |
| gridMapa.MasterTableView.Caption = ""; |
| } |
| } |
| e.Item.Cells[2].Visible = isVertical; |
| e.Item.ToolTip = "Clique aqui para ver o processo."; |
| } |
| } |
Afeter binder:
| gridMapa.ClientSettings.Scrolling.AllowScroll = true; |
| gridMapa.ClientSettings.Scrolling.UseStaticHeaders = true; |
| gridMapa.ClientSettings.Scrolling.FrozenColumnsCount = 1; |
I need for help,
Thanks.
