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
Hello,
Thanks in advance for any help,
I have a repeater creating textboxes and i need to have them all spellchecked so i create a spell check button for every text box and programmatically create the Spell Checker, (i'm not aware that i can use one spell checker for more than one control)
Here is my code: .cs ( on the ItemDataBound event of the repeater)
Panel pnl = (Panel)e.Item.FindControl("pnlSpellCheck"); WebSpellChecker wsCheck = new WebSpellChecker { ID = "wsCheck" e.Item.ItemIndex, TargetControlId = txtTextBox.UniqueID, Height = 500, Width = 700, TargetControlIdValue = "value", CssClass = "SpellCheck" }; pnl.Controls.Add(wsCheck); WebButton btn = (WebButton)pnl.FindControl("btnSpellCheck"); btn.OnClientClick = "CheckSpell('" e.Item.ItemIndex "')";
Javascript:
function CheckSpell(id) { var sp = ISGetObject("wsCheck" id); sp.CheckSpell(); return false; }
Markup: (inside a repeater)
<asp:Panel id="pnlSpellCheck" runat="server"> <ISWebDesktop:WebButton ID="btnSpellCheck" runat="server" Height="20px" OnClientClick="CheckSpell" Text="Spell Check" Width="150px"> <ButtonStyle> <Normal CssClass="FPB-Button-N"> </Normal> <Over CssClass="FPB-Button-O"> </Over> <Active CssClass="FPB-Button-A"> </Active> </ButtonStyle> </ISWebDesktop:WebButton> </asp:Panel>
I get a javascript popup:
An error occurred:
<the page source>
I found that the way you bound your repeater data is wrong at your validation. e.gI put ctlBrochure.StartWizard(); ,Repeater1.DataSource = Data;, Repeater1.DataBind();outside your if (!Page.IsPostBack) validation.
I also attached the modified project your sent to show you that it works well.
Regards,Handy
Attached is the sample I used to recreate the scenario you described. We found there is some issue if we try to spellcheck the same textbox more than once in IE8. i have forwarded this issue to our developer and it is being investigated.
However, in other browser I could not replicate the IE8 issue. Is this the issue you mentioned in your thread?
Hi,
There are some things in your code (which works fine on my PC) that is different to mine so i changed mine accordingly, but i still get the error,
apon further inspection i found that it's erroring when it does, a flypostback.
Instead of getting something like this as a response
<isnet.webui.webspellchecker><action>SpellCheckWithDialogBox</action><WebSpellChecker>...</WebSpellChecker><action xmlns="SpellCheckWithDialogBox" /><clientActions><![CDATA[]]></clientActions></isnet.webui.webspellchecker>
I get an incomplete version of my page,
In my code the post sends some params with the post.
There is also a Script Manager in my page, would this conflict with the webspellchecker?
Thanks
I have modified Glenn sample and added script Manager. In fact, it runs well. Could you please help me by modifying my sample so it can replicate the issue?
After copious amounts of fiddling i have been able to strip down my page with the spellchecker in a repeater that is erroring, i'm not sure that it's even the same error but it could be.
Thanks,
Ewoudt
I am missing some namespaces in your sample. Could send me the runable? I need them to analyze which you are missing at because my sample works fine.
Here is a visual studio solution with the files and no external namespaces (other than Intersoft).
Sorry, I just want to confirm about the error. I can run your sample in here now. What is the error you got? For now, it runs fine. Only dictionary is not showed up. I will check this now.
This is the text in the error popup i'm getting, and yes my dictionary doesnt load, the popup shows, the value of my textbox loads but the dictionary doesnt load and the waiting gif stays there.
Error occurred: <!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><title> </title></head> <body> <form name="form1" method="post" action="RepeaterTest.aspx" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTcyNDg4ODI4Ng9kFgICAw9kFgICAQ9kFgJmD2QWAgIBD2QWAgIBD2QWAmYPZBYCAgEPZBYCAgEPZBYEAgcPZBYCAgEPZBYCAgEPEGRkFgBkAg0PEGRkFgBkZNHdcmInaf6Kn8M1QLS7wrei2T0e" /> </div> <div> </div> </form> </body> </html>
Thank you, I will change my code and get back to you soon.
Ok, please let me know the update.
The spellchecker works now, but because i'm rebinding the data on every postback it's not very useful as i can't save the values that are entered...
I have tried working around this by saving and loading the values before and after the rebinding but it causes the spellchecker to not work anymore.
Could you let me know the snippet code or the way you save and load the value? As far i know, default behaviour of binding lifecycle needs to be load at Postback condition.
Also, you have defined the static datatable and datacolumn for your repeater. I think that's why the value is overriden again by those values.
I've ended up using Request.Form values because the SpellChecker requires rebinding every postback to work, i.e. you can't use viewstate values with the spellchecker.
Sorry, I don;t quite understand about your explanation. Could you please let me know more detail.Why did you use Request.Form value and what for?
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