Rank: Member Groups: Member
Joined: 2/6/2012 Posts: 13
|
Hello,
I sent a message some time ago pertaining to the fact that with some browsers the Grid doesn't show inserted items. I have the grid ScrollBars="None" (as I do not want scroll bars), BorderStyle="Solid" BorderColor="Transparent" BorderWidth="1px", I have given the Grid a width and height.
In the code behind I simply do (as a test):-
EO.Web.GridItem gitemRecentEvents = this.GridRecentEvents.CreateItem();
// Fill
gitemRecentEvents.Cells["Time"].Value = (string)"11:11:00"; gitemRecentEvents.Cells["Date"].Value = (string)"27/06/2012"; gitemRecentEvents.Cells["Camera"].Value = (string)"Camera 1"; gitemRecentEvents.Cells["Plate"].Value = (string)"ABC123"; gitemRecentEvents.Cells["Speed"].Value = (string)"30"; gitemRecentEvents.Cells["Stay"].Value = (string)"No Stay"; gitemRecentEvents.Cells["Group"].Value = (string)"Group 1"; gitemRecentEvents.Cells["Category"].Value = (string)"Category 1";
this.GridRecentEvents.Items.Insert(0, gitemRecentEvents);
However this does not show the columns header nor the inserted item when using Google chrome or Safari (on a Windows PC) browsers but all works fine on IE7, IE8, IE9 & Firefox.
If I set the BorderColor to say red then all I get is a red pixel in the top left hand edge of the grid with those 2 browsers but everything appears OK on IE7, 8, 9 & Firefox.
If I set the grid ScrollBars="Auto" or Vertical or Horizontal then the header & item appears across all browsers. I have tried EO.Web.dll versions 9.0.37.2, 9.0.45.2, 9.0.48.2 and the latest 2012 version to no avail.
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi Steve,
This is a known issue that we do not have a solution yet. Please use ScrollBars="Auto" and give the Grid a fixed size. Since one of the primary functionality of our Grid is scrolling, internally it is extensively optimized as scrolling based on fixed size instead of automatically grow based on content size; So it does not work well when scrolling is turned off. If you do not want any scroll bar at all, a standard ASP.NET GridView will work better than our Grid. So we would suggest you to go to that route if you do not want any scroll bars.
Thanks!
|
Rank: Member Groups: Member
Joined: 2/6/2012 Posts: 13
|
Hi,
I can however get over the problem by setting the EO grid Paging = true but not use paging at all, but I need to hide the pager elements in the footer I have done the following:-
aspx:- <FooterStyle CssText="height:0px;color:transparent;display:none" />
and Code behind:-
this.GridAlertsAndOffences.PageButtonFormat = "<span style='color:transparent'>{0}</span>"; this.GridRecentEvents.PageButtonFormat = "<span style='display:none'>{0}</span>"; this.GridRecentEvents.PagerLabelTemplate = "<span style='display:none'>{0}</span>"; Now this hides all the pager elements in the footer except "[1]"
However if I try in code behind this.GridRecentEvents.CurrentPageButtonFormat = "<span style='display:none'>{0}</span>";
or anything like that I get an exception (as reported by someone in your forum from sometime ago) of:- System.InvalidCastException: Specified cast is not valid.
Please please tell me how to hide that [1] element.
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We have confirmed this to be a bug and posted a new build that should fix it. Please see your private message for the download location.
Thanks!
|