Hi,
I am using following code to set the properties of the ultrawebgrid, When tried to select a row in the grid for IE 9.x, It is selecting for the first time, but from second time, it is not getting selected ( highlighting) the row.
dg.Width = Unit.Percentage(100); dg.BorderStyle = BorderStyle.None; dg.DisplayLayout.HeaderStyleDefault.BorderDetails.StyleLeft = BorderStyle.None; dg.DisplayLayout.HeaderStyleDefault.BorderDetails.StyleTop = BorderStyle.None; dg.DisplayLayout.HeaderStyleDefault.BorderDetails.StyleRight = BorderStyle.Solid; dg.DisplayLayout.HeaderStyleDefault.BorderDetails.ColorRight = Color.FromArgb(246,244,236); dg.DisplayLayout.HeaderStyleDefault.CssClass = "GridHeader"; dg.DisplayLayout.RowStyleDefault.BorderStyle = BorderStyle.None; dg.DisplayLayout.RowStyleDefault.CssClass = "GridRow"; dg.DisplayLayout.RowAlternateStyleDefault.CssClass = "GridAltRow"; dg.DisplayLayout.Pager.Style.CssClass = "PageRow"; dg.DisplayLayout.FooterStyleDefault.CssClass = "GridFooter";
dg.DisplayLayout.CellClickActionDefault = clickAction; dg.DisplayLayout.ActivationObject.BorderStyle = BorderStyle.Solid; dg.DisplayLayout.ActivationObject.BorderColor = Color.FromArgb(212,195,102); dg.DisplayLayout.ActivationObject.AllowActivation = true;
dg.DisplayLayout.SelectedRowStyleDefault.CssClass = "GridSelectedRow"; dg.DisplayLayout.SelectTypeRowDefault = selectType; dg.DisplayLayout.StationaryMargins = StationaryMargins.HeaderAndFooter; dg.DisplayLayout.ColFootersVisibleDefault = showFooter ? ShowMarginInfo.Yes : ShowMarginInfo.No; //dg.DisplayLayout.AutoGenerateColumns = false; dg.DisplayLayout.AllowSortingDefault = AllowSorting.Yes; dg.DisplayLayout.AllowColSizingDefault = AllowSizing.Fixed; dg.DisplayLayout.RowSizingDefault = AllowSizing.Fixed; dg.DisplayLayout.RowHeightDefault = Unit.Pixel(20); dg.DisplayLayout.HeaderClickActionDefault = HeaderClickAction.SortMulti; dg.DisplayLayout.RowSelectorsDefault = RowSelectors.No; dg.DisplayLayout.TableLayout = TableLayout.Fixed;
Please let me the solution.
Hello Paul,
Thank you for contacting Infragistics!
I'm not sure what you are trying to achieve. If you want to select a row in code, please have a look at these articles, explaining how to do this:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=2798
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=2802
Hope this helps.
Row selection/highlight code is working fine in IE 8, When it is accessed in IE 9 , the same code is not working.
After page load
1) Select a row --> Row is getting highlighted.
2a) use Grid scrollbar - Scroll down , Select a row --> Row is not getting highlighted.
OR
2b) Select another row --> Row is not getting highlighted.
Please let me know if you need more details.