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 Guys,
I've a WebGrid, using client binding and WebService as DataSource type.
When I've the grid empty with 0 lines, and try to insert a new line, it always give me a Java script error and the grid stops responding after that and the new line doesn't show up , but in the second time if we have at least one line it works ok.
Please let me know how can we fix that?
Thanks,
Maged
Hi Maged,
I have replicated your scenario using WebGrid binding to WebService, and I did encounter the Javascript error when I added a new row in an empty grid.
I have reported this issue to the developer team to be processed. It will consider as a possible bug, but the issue needs to be investigated further.
I will let you know once I get the update from the developer team.
Thank you.
Hello Maged,
For your information, this issue has been fixed by the developer team and it will be available in the next hotfix build. Therefore, you may apply the latest hotfix update using Update Manager when the official hotfix is released.
I tried to get the latest version, and hot fix, currently I hve Intersoft WebUI Studio 2010 R1, and ran the update manager.Now I still have the problem. May I just need to learn how to get all of these updates towards my project, please con you confirm how to get these updates to my project bin directory, and can you als check from your side if the problem is really fixed?Thanks,Maged
The latest build version for WebGrid would be 418. However, the official build hasn't been released yet. It is scheduled to be released by today.
However, here is the link to download a nightly-build hotfix. This hotfix build has been fixed and tested on your issue.http://www.intersoftpt.com/tdn/downloads/WebGridNET7_0_7200_418.zip
You can refer to the following link to update the hotfix manually into your project:http://www.intersoftpt.com/Support/WebUIStudio/Tutorial/Text/Apply-ASPNET-product-hotfix-manually/
Or, you can view the tutorial video on how to use Update Manager:http://www.intersoftpt.com/Support/WebUIStudio/Tutorial/Video/Use-Update-Manager-to-Update-Intersoft-Product/
Hope this helps.
Thanks for your reply.
I followed these instructions, and I still have the same issue!
Can you please confirm how to apply the changes on my application bin directory?
Maged Mikaeel
Have you tried to use Update Manager tool? The latest hotfix build is already available and can be downloaded and installed from Update Manager.
To apply the changes, you simply need to copy the latest assemblies to your bin directory project. You may need to update WebUI Framework as well.
It is much easier if you use Update Manager because the tool will automatically apply the changes on your controls.
The update manager shows nothing to update stating that I'm up to date!
Did you apply the assemblies in your project's bin folder?
Update Manager will only update the assemblies in [Installation Folder]\Intersoft Solutions\WebUI Studio for ASP.NET. Means that you need to apply manually on your project's bin folder.
Here is the step to update WebGrid build version:
You might want to update WebUI Framework build version too:
To ensure that you have used the latest build version, right-click on WebGrid control when you are in Design view on your project and select About. It will show a dialog box that contains information about WebGrid and WebUI Framework build version you are currently using.
I followed all the steps, and still getting the same error!!
The about showing that, the version is: 7.0.7200.481
Well, this still the same, I still haveing the same issue!!
Hello,
I have attached a recorded video showing how the project works on my end using the latest version 7.0.7200.418.
I have uploaded the project sample along with its assemblies file. You can download the link here.
Just let me know whether the project works fine on your end.
Hi, With futher inverstigation, I think you still have the issue not fixed. And here is the root cause: In your sample, you have this definition:<RootTable DataKeyField="FirstName"><ISWebGrid:WebGridColumn Caption="First Name" DataMember="FirstName" Name="FirstName" Width="100px"> </ISWebGrid:WebGridColumn>Ok, try to make small change on your sample, and the problem will apear right a way:<RootTable DataKeyField="ItemID"><ISWebGrid:WebGridColumn Caption="First Name" DataMember="FirstName" Name="FirstName" Width="100px"> </ISWebGrid:WebGridColumn>Now, on your WebGrid_ClientBinding.js , you have this code:vbaa90.KeyValue =v18b39.Cells.GetNamedItem(vc2f92.DataKeyFields).Value;
Hi,
With futher inverstigation, I think you still have the issue not fixed. And here is the root cause:
In your sample, you have this definition:
<RootTable DataKeyField="FirstName">
<ISWebGrid:WebGridColumn Caption="First Name" DataMember="FirstName" Name="FirstName"
Width="100px">
</ISWebGrid:WebGridColumn>
Ok, try to make small change on your sample, and the problem will apear right a way:
<RootTable DataKeyField="ItemID">
This code will only work if you have at least one cell defined with the same name as the DataKeyField.
Again, on your sample if you just removed the first column (firstname), you will have the same issue I have.
Please, if you can send me the fix ASAP that will be great.
Based on Martin sample, there is no field "ItemID" in his database. Also, DataKeyField is necessary to be filled. Otherwise, you will find some issue in insert, update and delete. Please fill DataKeyField properties with your current Primary key in database.
Regards,Handy
I think you didn't get my point here.
In your sample you have <ISWebGrid:WebGridColumn> for FirstName. Try to remove that Column from the grid, and your sample will not work as well. KEEP the DataKeyFielda as it is.
OR
Add on your database ItemID , then make it as your DataKeyField but do NOT add it as <ISWebGrid:WebGridColumn> at all
On your sample, you can replace ClientBindingWebService.aspx code with the next code in order to replicate the issue easier:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClientBindingWebService.aspx.cs" Inherits="ClientBindingWebService" %><%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html><head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> function MyInfo() { this.FirstName = ""; this.LastName = ""; this.Age = ""; } </script></head><body id="body" runat="server" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"> <form id="form1" runat="server"> <div> <ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="250px" UseDefaultStyle="True" Width="500px" BindingOperationMode="ClientBinding"> <LayoutSettings AllowAddNew="Yes" AllowDelete="Yes" AllowEdit="Yes"> </LayoutSettings> <RootTable DataKeyField="FirstName"> <Columns> <ISWebGrid:WebGridColumn Caption="Last Name" DataMember="LastName" Name="LastName" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Age" DataMember="Age" Name="Age" Width="100px"> </ISWebGrid:WebGridColumn> </Columns> </RootTable> <ClientBindingSettings DataSourceType="WebService" ServiceUrl="~/WebService.asmx" ItemTypeName="MyInfo"> <ServiceMethods SelectMethod="GetMyInfo" DeleteMethod="DeleteMyInfo" InsertMethod="InsertMyInfo" UpdateMethod="UpdateMyInfo"></ServiceMethods> </ClientBindingSettings> </ISWebGrid:WebGrid> </div> </form></body></html>
I am sorry that I was not being detail in my previous post. You can change the DataKeyField with ItemID, but you also need to add ItemID in your column. This the one that caused the error.If you don't like to show ItemID column, you can set Visible false properties in that column.When you specify a datakeyfield, It must be need also added into your column. Otherwise, you will face the error.
I already did this work around. But I still see this as a fatal bug, this behaviour is not the same with non client binding mode.
Its also not documented any where that we need to do that only on with the client side bidning!!
Yes, I understand about your point. Even though it runs well in non client binding scenario, but we suggest the same way. Otherwise, some issues can be occured due this settings. I will let us our developer know about this javascript error.
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