|
Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
Hi Sirs;
when I set FixedTopItemCount=0, Grid databinding is OK. But when I set FixedTopItemCount > 0 then, I got an error: Microsoft JScript runtime error: 'aazt' is null or not an object
would you please help.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Please try to isolate the problem into a test project and then send it to us. Our sample also uses data binding and it works fine.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
I know where cause the problem: If you change the rwo_cnt from 20 to 30, then the error occur Please see the following code. you can try it, just put in the ASPX page: Thanks
Imports System Imports System.Data Imports LIMS.common Imports System.Configuration Imports System.Web Imports System.Web.Services Imports System.Web.Security Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Data.OleDb Imports System.Web.UI.WebControls.WebParts Imports System.Web.UI.HtmlControls Imports System.Web.UI.DataVisualization.Charting Imports System.Math
Public Class WebForm1 Inherits System.Web.UI.Page Public dsptb As New DataTable() Public Col As New EO.Web.StaticColumn Public Coltxt As New EO.Web.TextBoxColumn
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then
End If End Sub
Private Sub vdsp_accept_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles vdsp_accept.Click Dim row_cnt As Integer = 20 Try Grid1_pw.Columns.Clear() Coltxt.HeaderText = Nothing For i = 0 To 10 dsptb.Columns.Add(i) Grid1_pw.Columns.Add(Coltxt) Next For i = 0 To row_cnt dsptb.Rows.Add(New Object() {" "}) Next Grid1_pw.AllowPaging = False Grid1_pw.FixedTopItemCount = 3 Grid1_pw.DataSource = dsptb Grid1_pw.DataBind() Catch ex As Exception MsgBox(ex.ToString) End Try End Sub End Class
**** <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="LIMS.WebForm1" %> <%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:Button ID="vdsp_accept" runat="server" Text="Accept" Width="55" Tabstop="False" Height="21px" style="margin-left: 3px; margin-top: 1px" Font-Names="times new roman" Font-Size="9pt" BackColor="#CC9900" BorderColor="White" ForeColor="White"></asp:Button> <eo:Grid ID="Grid1_pw" runat="server" AllowPaging="True" BackColor="White" BorderColor="#7F9DB9" BorderWidth="0px" ColumnHeaderAscImage="00050104" ColumnHeaderDescImage="00050105" ColumnHeaderDividerImage="00050103" FixedColumnCount="1" Font-Bold="False" Font-Italic="False" Font-Names="Times new roman" Font-Overline="False" Font-Size="7.75pt" Font-Strikeout="False" Font-Underline="False" FullRowMode="False" GoToBoxVisible="True" GridLineColor="220, 223, 228" GridLines="Both" Height="165px" left="1px" top="39px" Width="680px"> <FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" /> <FixedTopItemStyle CssText="background-color:#ffcc66;" /> <ItemStyles> <eo:GridItemStyleSet> <ItemStyle CssText="background-color: white" /> <ItemHoverStyle CssText="background-color: whitesmoke" /> <SelectedStyle CssText="background-color: #316ac5; color: white" /> <FixedColumnCellStyle CssText="border-right: #d6d2c2 1px solid; padding-right: 10px; border-top: #faf9f4 1px solid; border-left: #faf9f4 1px solid; border-bottom: #d6d2c2 1px solid; background-color: #ebeadb; text-align: right; color: black;" /> <CellStyle CssText="padding-left:8px;padding-top:2px;white-space:nowrap;" /> </eo:GridItemStyleSet> </ItemStyles> <ColumnTemplates> <eo:TextBoxColumn> <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" /> </eo:TextBoxColumn> <eo:DateTimeColumn> <DatePicker ControlSkinID="None" DayCellHeight="16" DayCellWidth="19" DayHeaderFormat="FirstLetter" DisabledDates="" OtherMonthDayVisible="True" SelectedDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL" TitleRightArrowImageUrl="DefaultSubMenuIcon"> <TodayStyle CssText="font-family: tahoma; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid" /> <SelectedDayStyle CssText="font-family: tahoma; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" /> <DisabledDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" /> <PickerStyle CssText="border-bottom-color:#7f9db9;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#7f9db9;border-left-style:solid;border-left-width:1px;border-right-color:#7f9db9;border-right-style:solid;border-right-width:1px;border-top-color:#7f9db9;border-top-style:solid;border-top-width:1px;font-family:Courier New;font-size:8pt;margin-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" /> <CalendarStyle CssText="background-color: white; border-right: #7f9db9 1px solid; padding-right: 4px; border-top: #7f9db9 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #7f9db9 1px solid; padding-top: 4px; border-bottom: #7f9db9 1px solid; font-family: tahoma" /> <TitleArrowStyle CssText="cursor:hand" /> <DayHoverStyle CssText="font-family: tahoma; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid" /> <MonthStyle CssText="font-family: tahoma; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px" /> <TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;" /> <OtherMonthDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" /> <DayHeaderStyle CssText="font-family: tahoma; font-size: 12px; border-bottom: #aca899 1px solid" /> <DayStyle CssText="font-family: tahoma; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" /> </DatePicker> </eo:DateTimeColumn> <eo:MaskedEditColumn> <MaskedEdit ControlSkinID="None" TextBoxStyle-CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; font-family:Courier New;font-size:8pt;"> </MaskedEdit> </eo:MaskedEditColumn> </ColumnTemplates> <ContentPaneStyle CssText="border-bottom-color:#7f9db9;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#7f9db9;border-left-style:solid;border-left-width:1px;border-right-color:#7f9db9;border-right-style:solid;border-right-width:1px;border-top-color:#7f9db9;border-top-style:solid;border-top-width:1px;" /> <GoToBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; BORDER-TOP: #7f9db9 1px solid; BORDER-LEFT: #7f9db9 1px solid; WIDTH: 40px; BORDER-BOTTOM: #7f9db9 1px solid" /> <Columns> <eo:RowNumberColumn Visible="False" Width="35"> </eo:RowNumberColumn> <eo:TextBoxColumn> <CellStyle CssText="" /> </eo:TextBoxColumn> <eo:TextBoxColumn> </eo:TextBoxColumn> </Columns> <ColumnHeaderStyle CssText="background-image:url('00050101');padding-left:8px;padding-top:3px;" /> </eo:Grid> </div> </form> </body> </html>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We still cannot reproduce the problem. We cannot run your code as is because it relies on other elements in your code. We modified it slightly and created a Grid with 30 rows and it works fine.
Please try to create a standalone test app with the latest build (2010.0.60) and send the test project to us if the problem continues. We will PM you as to where to send the test code.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
Thank you, I will send it you next Monday
|
|
Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
I remove everything and just run the same code that I send to you. but the problem is still happened. I can send you the entire project. would you tell me how to send it.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have already sent the instruction to you through private message. You can click "inbox" on the top of the forum to view the message.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have released EO.Web Controls 2011 that should address this issue. You will need to go to your license key page to download a new license file for the new version.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
Thank you very much, It's worked.
|
|