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
I have webcombo defined on page in a div holder that is used for displaying jquery dialog.
Markup looks like this:
<div class="careerOutlooksHolder"> <table> <tr> <td><textarea class="txtCareerOutlook" id="txtCO1" runat="server"></textarea></td> <td> <iswebcombo:WebCombo ID="cmbRL1" runat="server" AllowWildCardSearch="false" Width="100" Height="20" DataValueField="IdReda" DropDownRows="20" AllowAutoDataCaching="true" ViewStateStorage="PageCache" EnableWebResources="Auto" DataTextField="Naziv" ClientIDMode="Static"> <LayoutSettings ComboMode="MultipleColumns" EnableAnimation="False" AlwaysShowAllRowsOnDropdown="true" EntryMode="AutoComplete" StatusBoxPosition="Top" StatusBoxVisible="true" > <ClientSideEvents OnAfterItemSelected="cmbRL_OnAfterItemSelected" /> </LayoutSettings> <Columns> <iswebcombo:WebComboColumn Name="Naziv" HeaderText="<%$GetString:{%00_pub_Name%}%>" BaseFieldName="Naziv" /> </Columns> </iswebcombo:WebCombo> </td> </tr> .....
careerOutlooksHolder div is turned into jQuery dialog on client-side pageLoad.
When dialog is opened, webcombo crashes on it's drop-down displayed. However if I use the same combo outside of the dialog, it works just fine.
error is as follows:
Type : System.Xml.XmlException, System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : Data at the root level is invalid. Line 1, position 719. Source : System.Xml Help link : LineNumber : 1 LinePosition : 719 SourceUri : Data : System.Collections.ListDictionaryInternal TargetSite : Void Throw(System.Exception) HResult : -2146232000 Stack Trace : at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at ISNet.WebUI.ISNetControl.LoadPostData(String postDataKey, NameValueCollection postCollection) at ISNet.WebUI.WebCombo.WebCombo.LoadPostData(String postDataKey, NameValueCollection values) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
As I said, it works just fine when it's not in dialog control.
Hi Nikola,
I tried to replicate your issue here. Unfortunately, this matter doesn't happen in my sample. Could you let me know any steps or maybe you can change my sample to replicate this issue in you local end? I attach my sample here and I'm looking forward to your feedback. I will gladly help you to resolve this issue.
Regards,Bernard
I don't know how or why but this now works for me too. Could be visual studio or some other problem, but it seems it wasn't really code-related. I restarted my pc yesterday and that obviously helped in some way, but thanks anyway Bernard. Should have listened to my own advice - "If it doesn't work, restart it" :D
Ok, I just checked again, and it seems I jumped to conclusion just a little to fast. This worked when I tried it with one combo, but the fact is I have 7 combos on the page that are not shown in dialog, and now I need to put 6 more that will show in that jquery dialog. Everything works fine when I add just one combo in dialog, but as soon as I add second one, the same problem as I already described, starts to happen. The combos don't have same ID's, so it shouldn't be a problem. The six combos in dialog should all have same datasource, so I figured that could be a problem and tried to change datasource for each of them, didn't work. Then I figured, well maybe there's a limit on how many combos you can have on one page, so I removed one of the 7 combos on page and added one more in dialog, didn't work. It seems when there's more than two combos in dialog, thing crashes.
I have tried to replicate your issue here. Unfortunately, this matter doesn't happen in my sample. As you can see in my sample, this matter doesn't happen even if you multiply the WebCombo inside jQuery Dialog. If this matter still happen in your local end. Could you let me know any steps or simple sample that can replicate this issue in our local end? Look forward to hear any feedback from you so I can help you further.
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