iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
To Reproduce the issue:
Message: Object required Line: 7 Char: 24063 Code: 0 URI: http://localhost:4933/ISRes.axd?G/WebGrid_Edit.js/707200431
WebGrid's version: 7.0.7200.431
WebInput's version: 4.0.7200.29
Thanks and Regards,
Fung
Below is the Code for reproducing the error.
ASPX Code:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="NewTest.WebForm1" %> <%@ Register Assembly="NewTest" Namespace="NewTest" TagPrefix="cc1" %> <%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls" TagPrefix="ISWebInput" %> <%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %> <html> <head runat="server"> <title></title> <script type="text/javascript"> function testRefresh() { var wg = ISGetObject("WebGrid1"); wg.RefreshAll(); } </script> </head> <body> <form id="form1" runat="server"> <div> <input type="button" id="btn" onclick="testRefresh()" value="Refresh" /> <ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="500px" Width="500px" UseDefaultStyle="True" DefaultStyleMode="Standard"> <LayoutSettings AllowEdit="Yes" AllowBatchUpdate="True" AutoHeight="true" AutoWidth="true" > <BatchUpdateSettings AllowReviewChanges="True" /> </LayoutSettings> </ISWebGrid:WebGrid> <ISWebInput:WebInput ID="WebInput1" runat="server" style="margin-bottom: 0px"> <HighLight IsEnabled="True" Type="Phrase"/> <EditFormat Format="dd MMM yyyy" IsEnabled="true" Type="DateTime" > <MaskInfo MaskExpression="00 LLL 0000"> </MaskInfo> </EditFormat> <DisplayFormat Format="dd MMM yyyy" IsEnabled="false" IsValidateOnChange="false"> <ErrorWindowInfo IsEnabled="False"> </ErrorWindowInfo> </DisplayFormat> <DateTimeEditor DateInputLink="" IsEnabled="false"> <DropDownYearFrameStyle BackColor="#FFFFFF" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"> </DropDownYearFrameStyle> <DropDownMonthFrameStyle BackColor="#FFFFFF" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"> </DropDownMonthFrameStyle> </DateTimeEditor> <CultureInfo CultureName="en-US"> </CultureInfo> </ISWebInput:WebInput> <ISWebInput:WebInput ID="WebInput2" runat="server"> <HighLight IsEnabled="True" Type="Phrase" /> <EditFormat Format="dd MMM yyyy" IsEnabled="true" Type="DateTime" IsValidateOnChange="false"> <MaskInfo MaskExpression="00 LLL 0000"> </MaskInfo> </EditFormat> <DisplayFormat Format="dd MMM yyyy" IsEnabled="true" IsValidateOnChange="false"> <ErrorWindowInfo IsEnabled="False"> </ErrorWindowInfo> </DisplayFormat> <DateTimeEditor DateInputLink="" IsEnabled="true" EditValueByEditorOnly="True"> <DropDownYearFrameStyle BackColor="#FFFFFF" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"> </DropDownYearFrameStyle> <DropDownMonthFrameStyle BackColor="#FFFFFF" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"> </DropDownMonthFrameStyle> </DateTimeEditor> <CultureInfo CultureName="en-US"> </CultureInfo> </ISWebInput:WebInput> </div> </form> </body> </html>
VB Code:
Imports ISNet.WebUI.WebGrid Public Class WebForm1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Public Function GetDiffData() As DataTable Dim dt As New DataTable dt.Columns.Add("Str", GetType(String)) dt.Columns.Add("Int", GetType(Integer)) dt.Columns.Add("DateTime", GetType(Date)) dt.Columns.Add("strDate", GetType(String)) dt.Columns.Add("DatePicker", GetType(Date)) dt.Columns.Add("strDatePicker", GetType(String)) For i As Integer = 1 To 100 dt.Rows.Add(i & "_" & i, i, Now.AddDays(i).Date, Now.AddDays(i).ToString("dd MMM yyyy"), Now.AddDays(-i).Date, Now.AddDays(-i).Date.ToString("dd MMM yyyy")) Next Return dt End Function Private Sub WebGrid1_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.InitializeDataSource e.DataSource = GetDiffData() End Sub Private Sub WebGrid1_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.PrepareDataBinding Me.WebInput2.UseDefaultStyle = True Dim wg As WebGrid = sender wg.RetrieveStructure() wg.RootTable.DataKeyField = "Str" For Each wgcol As WebGridColumn In wg.RootTable.Columns Select Case wgcol.Name.ToLower Case "datetime", "strdate" wgcol.EditType = EditType.Custom wgcol.DataFormatString = "dd MMM yyyy" wgcol.CustomEditorName = "WebInputNET" wgcol.CustomEditorServerId = "WebInput1" Case "datepicker", "strdatepicker" wgcol.EditType = EditType.Custom wgcol.DataFormatString = "dd MMM yyyy" wgcol.CustomEditorName = "WebInputNET" wgcol.CustomEditorServerId = "WebInput2" End Select Next End Sub End Class
This issue has been solved in WebGrid 8 Build 251. You can try our hotfix and please let us know if there's another issue in your local end. Hope this helps.
Regards,Bernard
I can replicate the issue in here. The issue only happens when using RefreshAll(). I will report this bug to our developer teams and will let you know when the fix is ready.
I had look into the javascript's error and found that the error is related to a missing object.
The javascript error is caused by below snippet:
with(vb3598.style)
the above function is called by :
function wgDispObjGeneric(v9b147, v95951, v01860, vcd931, v04925, v46570, v7fa21, v4e033) { wg5ce7.m49b17(v9b147, v95951, v01860, vcd931, v04925, v46570, v7fa21, v4e033); }
The highlighted object is the "Object required" (which is stated by IE's javascript error)
Since we need to call RefreshAll() in some of the work flow, is there any work around for this issue?
Thanks,
Hi There,
Im having a similar issue, is there a fix already ?
Cheers
Hi Dennis,
Sorry for the late responses. Actually I can replicate your issue in your local end. This problem might be happen because WebGrid RefreshAll() function reload the data and structure inside WebGrid. When I using Refresh(), this issue doesn't happen. I've made this as Urgent Work Item #1289. I'll let you know anything regarding this Work Item #1289.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname