Hello,We've got an WebTextEdit in a cell of an UltraWebGrid. The value of the field contains special characers as 'ä', 'ö' or 'ü'. When the user now edits the field, for example the 'ü' changes in 'ü'. The record also can't be updated in the database. How can we achieve that the 'ü' character is displayed correctly (if it is a correct 'ü' value in the field, the database update works). Thanks in advance for your help.
Stefan
Hi Stefan,
I tested following:
protected void Page_Load(object sender, EventArgs e){ if(!this.IsPostBack) this.UltraWebGrid1.Rows[0].Cells[0].Value = "äöü"; object txt = this.UltraWebGrid1.Rows[0].Cells[0].Value; this.TextBox1.Text += this.UltraWebGrid1.Rows[0].Cells[0].Value;}
<igtxt:WebTextEdit ID="WebTextEdit1" runat="server" BackColor="Red"></igtxt:WebTextEdit><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server"> <Rows> <igtbl:UltraGridRow> <Cells> <igtbl:UltraGridCell></igtbl:UltraGridCell><igtbl:UltraGridCell></igtbl:UltraGridCell><igtbl:UltraGridCell></igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> </Rows> <Bands> <igtbl:UltraGridBand> <Columns> <igtbl:UltraGridColumn EditorControlID="WebTextEdit1" Type="Custom"></igtbl:UltraGridColumn> <igtbl:UltraGridColumn></igtbl:UltraGridColumn> <igtbl:UltraGridColumn></igtbl:UltraGridColumn> </Columns> </igtbl:UltraGridBand> </Bands> <DisplayLayout AllowUpdateDefault="Yes" RowHeightDefault="20px"> <FrameStyle Height="80px" Width="325px"></FrameStyle> </DisplayLayout></igtbl:UltraWebGrid><asp:Button ID="Button1" runat="server" Text="Button" />
When I ran page and edit value is first cell, then it appeared in editor same as in grid: 'äöü'. After that I tried to enter few special characters in WebTextEditor: Alt+137 (numpad) and Alt+129 produces: "ëü". After button click output TextBox showed special characters, but not html equivalents.
In debugger the this.UltraWebGrid1.Rows[0].Cells[0].Value also showed characters, but not html flags.
Hi Viktor,
you're example is running as long as we do not set the property 'Browser' to 'XML'. Due to the fact, that we want our grid to be AJAX enabled, 'Browser' will automatically be set to XML. What would you advise me to do?
Greetings,