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
With latest fix, webgrid shows error on refresh. Testing scenario as follows:
I put a webgrid7(ver 401) and WebCombo(ver 219) together in a page. After that am able to run page and view both webgrid and combo, however am not able to perform any grouping or whatever operations available on webgrid as after a refresh webgrid throws error. If i remove webcombo from my testpage, the grid works fine. Since i updated the dll, all pages in my project where combo and webgrid are put together are showing this error on every client operations on webgrid. I updated the dll and corresponding scripts.
Hi Xedem,
After further investigation, the problem is, we have set the WebGrid 's width to be 100% and also set the AutoFitcolumn to true as well. So after I removed the width of WebGrid (100%), it fixes the issue. When we used AutoFitColumn to true, we do not need to set the WebGrid to be 100% anymore. It will give us a same behaviour.
I also attached you a running sample and screenshot of it in both browser. I hope it helps. Thank you and have a nice day.
Best Regards,
Andi Santoso
Sorry, but I am nor able to replicate the issue. Perhaps, I am missing something. Could you attach me a running sample that will replicate the issue for me to investigate it. Thank you and have a nice day.
Hi,
Here in my post you would find attachment. http://intersoftpt.com/Community/WebGrid/Is-there-any-problem-with-Multiline-columns-in-Firefox/
Take the latest one and just add one webcombo along with that...No further changes...Its your own sample using Accessdatasource as the datsource for webgrid...and use that one for webcombo...No further modifications needed. I will list the the dll with version am using. Am attaching a picture, which shows the dll am using...Pls check. Please reply ASAP as am running out of time due to release of my project.
Am attaching a running sample reproducing the issue. Please give an option to upload 7zip files here. Coz size of upload could be reduced by large when 7zip is used instead of RAR. Hope u get the error running my sample, as it includes the minimal dll as well. Reply ASAP.
I am still unable to replicate the issue. Here is the link of my video showing of what the WebGrid is capable to. The grouping and sorting seems to be working just fine. I am wondering where was I missing, perhaps you can show me on how to reproduce the issue.
I hope it helps. Thank you and have a nice day.
I checked the video. Wonder what happens on my side. One Question:Did you run my sample directly? I mean did you replace any dll files bin? Coz am still getting error. I cant do any of the operations you are doing in the recorded video. Am getting the error in both IE and Firefox. So could you list me the possiblities of why am getting the error?
No, I do not replace any dll files bin, I just run your sample directly. May I know what is the error that you have got ?
Thank you and hav a nice day.
The error is webgrid generated popup error. To help the cause let me say, i used to get the javascript error 'null is null' in most of the webgrid pages. If i remove all webgrid from my page, the erorr vanishes and no problems at all. The error sucks really. The error is coming for each and every webgrid in the asp.net page. Say if i ve got 4 webgrid in one page, the javascript error pops up 4 times. After taking website in firefox i found that the error is pointing to the file Corejs...Hope this helps... And of course again, the same solution run by you(send by me) is causing error still in my computer...Thats y i am saying abt the javascript error...coz i think both may have a connection?!.
I am sorry but I cannot help you solve the issue if I cannot replicate them. Firstly, at your sample, I encounter an error but I am not sure what was the message. But it is occured because the column's width was just too small. Have you tried to resize the column width to a bigger size?
I was just asking to pinpoint the reasons. The causes by which the same project runs in one machine and not in another machine, while just replacing it to old dll working fine. If you cant atleast pinpoint the possible reasons, fine. Thanks for the support!.
First of all, forgive me if I have said something wide of the mark. However, after further investigation, I think we have figured out what may cause the problem here. If I see through your project, it seems that you used our SmartWebResources and also using CommonLibrary Folder. Also, I noticed that you have change the path for the script directory in web.config file. Here, I attached your modified sample that I created. I removed the Common Library folder and delete the line which change the path of the script in web.config. The error message “null is null” that you have got, it probably happens because the column width of your WebGrid it too small. After I do resize the column to a bigger width, it runs nicely.
Ok. that helped. Now that the problem of null is null is removed and the problem of sorting and thereby resulting in exception is also removed. However now the problems are as follows.
I ve got the error Failed to map the path '/CommonLibrary/WebGrid/V7_0_7200/Localization/'. when i first run the sample u ve sent. This was due to the fact that, we are using text settings as follows, <TextSettings Language="UseCulture" UseWebResources="false"> </TextSettings>. By putting UseWebResources="true", no more errors. But i think i cant do such a thing as i have seperate customisation for language in webgrid, so i cant enable it for text settings. What would i do?
Glad to hear that parts of your problems are solved. Anyway, does the error occur on the page load before you change anything ? If you see my attachment, my text settings are also same as yours and it runs nicely. Correct me if I am wrong, but I assume you want to change the language of the WebGrid? If you want to do so, you can simply change it from our Localization Manager. You can see the Language.png screenshot for this. By this way, you will not need to use the CommonLibrary folder since all the language is also included in our SmartWebResources.
Hi
The error is shown in aspx error page with the statement as i told in the post. Now i didnt modify anything at all. I just run the sample directly as a project. No changes at all. Now i have to use commonlibrary as i am using my own customised messages by editing the language files. So using the smartwebresources is not a smart way for me in the case of textsettings. That means atleast in the case of textsettings i need to put webresourses=false. But thats not working here while no commonLibrary is available.
Could you kindly try to run my new attached sample? In here, I removed the Common Library and used the SmartWebResources. It should be running nicely. I hope it helps. Thank you and have a nice day.
Could you please re-attach your zip file coz its damaged. I tried downloading twice...But on extraction showing error.
Yes, of course. I hope it helps. Thank you and have a nice day.
Could you please rezip your file and then attach. Coz its still not working.The file is a damaged one.So re attaching itself dont help the cause. So please do a rezip of the content and then attach. Am waiting....
Attached is a new rezip of the content. I hope it works this time. Thank you and have a nice day.
Ah!...this is irritating...3rd time...Am attaching the screenshot.I cant still open the archive with any unzip utility available.....
Sorry for the inconveniences. Here, try to download the file from here. I have tried and it should be working. Thank you and have a nice day.
Well, now i cant refresh the grid on your sample. Its showing error. And on page refresh it says a message context menu disabled as smartwebresources is turned off.!!!
When you run the project, does it say "Context menu feature is disabled because menu runtime system can't beloaded. Ensure you have registered SmarWebResources in this web application."? If so, this is occurred because I did not include all the .Resources.dll in the bin folder because of the limitation size in uploading the file. If I include all the .dll files, the file's size will be too big to upload.
You can try to re-register the SmartWebResources again by right click on it and choose "Register SmartWebResources". It will fix the problem.
Server Error in '/New_WebGrid' Application. Specified argument was out of the range of valid values.Parameter name: value/
This is what am getting after registering smartwebresources and then doing a refresh on grid. The context menu error is not there as webresources is now registered. In short the sample is a fail for me...
It is weird. The sample works just nice in my end. Could you ensure that the build of the WebGrid in your project bin folder is the same with the one in your GAC. I am using WebGrid 7 build 401 and FrameWork build 752. If not, do you mind if I do remote desktop to your PC? We can use TeamViewer to do. May I know your email address? I will send my msn account for you.
currenlty i put the latest hotfix and all in the project and tried to register smartwebresources and found that its not registering well...So am doing something wrong but i cant figure out what exactly. For 402 ver webgrid dll, when i register the smartwebresource, the corresponding resource dll is of ver 400. However i replaced all those resources with the new ones as well, like 400 with 402 etc...Still my project is giving me error. I mean the same sample you have send after modifying with the new versions of dlls. So something to do with the GAC. Am attaching two pics of which one showing the versions of dll before registering and the other showing the versions of dll after registering. Hope this would help you to get an idea of what went wrong on my side. All resource dll are changing to its older versions after registering.
This is weird. Usually, when we had a different version in GAC and our bin project folder, we cannot open the WebGrid's designer. In your case, could you kindly just replace all of the WebGrid components that are needed with the latest hotfix, also ensure to update your GAC as well and see if it might work.
I updated all the dll in my current project with the new ones with no use. Could you explain me with the procedure of updating GAC. I usually drag and drop the dll to the assembly folder to update the dll.Is that enough?.
For updating the GAC, you can go to "C:\Windows\assembly" and try to uninstall the "ISNet.dll, ISNet.WebUI.Design.dll, ISNet.WebUI.dll, ISNetWebUI.Editor.dll, ISNEt.WebUI.Editor.v4.dll, ISNet.WebUI.Resources.dll, and ISNet.WebUI.Silverlight.dll" by right click on those files and choose Uninstall. After that, you can drag those files again from hotfix to that particular folder again.
After that, you can try to update the .dll files in your bin project folder by dragging all the WebGrid's .dll files from hotfix into your bin folder. If we copied all the .dll including the ISNet.WebUI.WebGrid.Resources.dll, we do not need to Register our SmartWebResources again, because, by Registering our SmartWebResources, basically it will generate the "ISNet.WebUI.WebGrid.Resources.dll" into our bin folder.
ok...I did as per what you ve said. Now after updating GAC and when i opened the program in vs IDE am getting 'Unrecognized tag prefix or device filter' error...The error is not preventing the program from running but causes the intellisence of the webgrid stop. And more over the structure of the webgrid shown after running is collapsed as well..See the attached screenshot. See the error as well...The error is getting after doing 2 to 4 sorting of the webgrid. The project dll version of the resources completeky matches that in GAC. FYI there is no script file at all...So the error is coming from the files generated.
As my colleague assists you in live chat, I assume that the GAC and dll problem should be fixed by now. So, I was wondering if the sample that I gave to you is working or not. Since all the dll and GAC are fine, you can try just to download the .aspx and .aspx.cs files that I attached in here and put it in your new project and try to run them.
The "Unrecognized tag prefix or device filter" usually happens when we do not have the same tag prefix when we cast the WebGrid component. If the issue is still persisted, it would be a better and faster way if I can remote desktop to you.
You can give me your email and I will send you my msn email address. Then, we can arrange a suit available time of yours. Our office our is from Monday to Friday from 08.00am to 17.00pm GMT plus 7
Thank you and have a nice day.
Ok, Firefox runs the sample without any problem, but not IE8
With IE8, if i start to sort any column, there happens a display error; There comes a small gap between the columns. With your sample there is no 'null is null' error.Now i will try to generate my previous error based on your sample and get back to you.
The error is still there; but strangely, the javascript error is only present in Firefox and not in IE8. Please run the sample yourself with the above zip you attached with all the new dll... then i hope you can see it yourself as well. Check the error console of firefox after loading the page. Please reply ASAP.
I didnt get the meaning of this line:-> The "Unrecognized tag prefix or device filter" usually happens when we do not have the same tag prefix when we cast the WebGrid component.
What you mean by the casting?The error is coming in the source view of the webpage though it wont result in compile time error.
And about remote desktop, i dont think thats a good practical idea. After doing a msshared view session with Yudhiy, i came to know that you have a limited connection, and it consumed a lot of time of me..And 4 disconnections from session as well.
For the IE issue, by removing the "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> on the top of your code will fix the gap between field problem. When you view in browser, perhaps you will see that the WebGrid is in the middle of the page. That happens because you set the height 100% for table. Usually, we do not recommend our customer to use percentage in our WebGrid. By removing the height=100%, it will set the WebGrid on the top of the page again.
However, for the issue on the Mozilla browser, I am not able to replicate them. I have tried to run them using Mozilla 3.5.8 and using the latest hot fix, it runs nicely. May I know what was the error message that you have got ?
Am getting 'The return value is undefined' error in mozilla. Am only using the page u have given along with the dll and datasource...No extra files...And the gap problem is solved by removing the line as you ve said; But i think in the documentation, it is said that Full xhtml support for webgrid. So why its still giving the display problem?
Now there is a problem. Change the webgrid width to 100%. And apply the column structure as follows.
<Columns> <ISWebGrid:WebGridColumn AllowMultiLine="True" Caption="ID" DataMember="ID" Name="ID" isAutoWidth="false" Width="100px"> <CellStyle HorizontalAlign="Justify" VerticalAlign="top"> </CellStyle> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Multiline1" DataMember="Multiline1" Name="Multiline1" Width="250px" AllowMultiLine="True" isAutoWidth="false"> <CellStyle HorizontalAlign="Justify" VerticalAlign="top"> </CellStyle> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Multiline2" DataMember="Multiline2" Name="Multiline2" AllowMultiLine="True" Width="100%" isautowidth="true"> <CellStyle HorizontalAlign="Justify" VerticalAlign="top"> </CellStyle> </ISWebGrid:WebGridColumn> </Columns>
Then mozilla display breaks while IE works fine. See that too.
Yes, sorry for the inconvenience. About the XHTMl, I have forwarded to our developer team and I will inform you as soon as I get a information from our developer team.
I was wondering, when you run the page, How can you include the .dll files that I attached to you ? From the last attachment that I attached, I am pretty sure that I did not include the .dll files. Could you kindly try to open a new project and add the aspx file from the last attachment. Or, perhaps you can try to create a new WebGrid and use a same setting like the last one.
Did you try with the code i pasted in the above post?
And ' when you run the page, How can you include the .dll files that I attached to you ? From the last attachment that I attached, I am pretty sure that I did not include the .dll files' . What is mean by that? I didnt get you at all.I think you misunderstood me.By 'along with the dll' i meant the webui dll available in my test project. Anyway you are right, you didnt sent me any dll file. You sent me the aspx only, which i have put along the project, which Yudhiy was working with me. Hope you get me.
Forgive me, it must be missed by me to try the code that you have provided and also forgive me, if I make you confused. Okay, now I understand the situation. I have tried you snippet and the result is not quite good in the width of each column. The problem is you have set IsAutoWidth for more than one column. As you might see on our WebGrid documentation at "ms-help://ISNet.WebUI.WebGrid.V7/ISNet.WebUI.WebGrid/ISNet.WebUI.WebGrid~ISNet.WebUI.WebGrid.WebGridColumn~IsAutoWidth.html", it stated that only one column can only behave as IsAutoWidth per table.
To be clearer, let say we have three columns, the total width of WebGrid is 1000px. One column has 200px width and the other has another 200px width. If we set the last column to be a IsAutoWidth column, it will resize the its width to 600px without changing the other columns’ width.
The other issue is, when we used WebGrid inside a <table>, we will need to set the table-layout as fixed, so that it will not override the WebGrid style. Here, I attached you a new sample that using all the same setting with the previous sample that we had. I have tested them and it runs well, in both browser, IE and Mozilla.
Could you kindly try to run them and let me know if the issue is still persisted? Thank you and have a nice day.
ok..I ll reply soon, though the making of only the last column width as auto with fixed width never worked before for me, Anyway i ll try with your sample
Ok. I tried your sample. Your sample works fine and the first and last columns take the exact width as specified. Now comes the funny part. Remove isautowidth from the second column and add to the third column. Now the design collapses. So its buggy!!!. Correct me if am wrong. I only tested the project with Mozilla. To be more specific if you remove the isautowidth property from 2nd column to 1st or last column, it is not working at all!!. Now i will paste the modified column structure from the above sample code you ve put. Again correct me if am wrong.
<Columns> <ISWebGrid:WebGridColumn AllowMultiLine="True" Caption="ID" DataMember="ID" Name="ID" Width="100px" > <CellStyle HorizontalAlign="Justify" VerticalAlign="top"> </CellStyle> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Multiline1" DataMember="Multiline1" Name="Multiline1" Width="250px" AllowMultiLine="True" > <CellStyle HorizontalAlign="Justify" VerticalAlign="top"> </CellStyle> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Multiline2" DataMember="Multiline2" Name="Multiline2" AllowMultiLine="True" Width="100px" IsAutoWidth="true"> <CellStyle HorizontalAlign="Justify" VerticalAlign="top"> </CellStyle> </ISWebGrid:WebGridColumn> </Columns>
Yes, I am able to replicate the issue as well. I have forwarded this to our developer team and will inform you as soon as I have some news from them. This issue occurred because of the page is under XHTML. I have tried it under HTML and it works fine. You can try them by removing these,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
What?!!. Thats strange. Though i used the last sample i have given, i wasnt using xhtml, which removed to avoid the display problem in sorting(though i cant remove xhtml from my project else my project will collapse). Now i again checked and strangely with or without xhtml the width bug! is still there no difference at all. I wonder which browser you ve checked?!.
ok. Now i checked the page in IE8, which works fine without xhtml. However mozilla behaves the same in both cases with the awkward display.And please read my post fully before u complete your testing. check the line ' I only tested the project with Mozilla' in my prev post. So atleast you have checked for the functionality in mozilla. Anyway hope your team come sooner with a good result.
I have tried them in both browsers, IE8 and Mozilla 3.5.8. I attached you a screen shot of them as well.
Could you also remove these following line code as well to make sure that it runs under HTML page?
xmlns="http://www.w3.org/1999/xhtml
If the issue is still persisted, until we have news from our Developer team, could you use a workaround by using a fixed pixel instead of using 100% and set the AutoWidth ="false" ?
If that is fine, you can still keep using XHTMl page and continue your project. Meanwhile, I will keep follow our Developer team up with this issue as a high priority and will inform you as soon as I get news from them.
After investigating, the problem is occured because of the table in our sample. There are some settings that are needed to be done in order to use XHTML with this scenario. We will need to set:
- Width at table level. <table style="table-layout:fixed; width:100%;">
- Width at each cell <td style="width:100%">
- Width at Grid level <ISWebGrid:WebGrid Width:"100%">
To clarify this, I also attached a sample that successfully run in my end and a screenshot of each browser. I have tested them in both browser, IE 8 and Mozilla 3.5.8. I hope it helps. Thank you and have a nice day.
Check your screenshot for Mozilla, and see the scrollbar is hiding some 3 or 4 words behind it!. And i wil give a detailed reply tomorrow as soon as i get into the office.
One more thing after the update, WebCombo height shrinked!. It was of default height...
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