Hi All,I am having a WebHtmlEditor(NetAdvantage-9.1) inside the WebAsyncRefreshPanel. When the action is done the webhtmleditor is not display the input value. The same logic works in the normal textbox. Please help me what will it take to make WebHtmlEditor work in the WebAsyncRefresPanel. My sample code is given below.
<ig:WebSplitter ID="MessageSplitter" runat="server" Height="385px" Width="690px" Orientation="Horizontal" OnCollapsed="MessageSplitter_Collapsed" OnExpanded="MessageSplitter_Expanded">
<Panes>
<ig:SplitterPane runat="server" Size="43%" CollapsedDirection="NextPane" Locked="True">
<Template>
<igmisc:WebAsyncRefreshPanel runat="server" ID="WebAsyncRefreshPanelGrid"
LinkedRefreshControlID="WebAsyncRefreshPanel">
<igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Width="100%">
</igtbl:UltraWebGrid>
</igmisc:WebAsyncRefreshPanel>
</Template>
</ig:SplitterPane>
<ig:SplitterPane runat="server">
<igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel" runat="server" RefreshTargetIDs="txtMessage" >
<ighedit:WebHtmlEditor ID="txtMessage" name="txtMessage" TabStripDisplay="false" runat="server" >
<Toolbar>
<ighedit:ToolbarImage runat="server" Height="0px" />
</Toolbar>
</ighedit:WebHtmlEditor>
</Panes>
</ig:WebSplitter>
On clicking the grid cell the related value should appear in the htmleditor, but it didnt. The values are passing correctly but it did not display the value.
Thanks in advance.
Sudha
Hi Sudha,
I tested those codes. I removed OnCollapsed and OnExpanded events, because they are probably irrelevant to that issue (and there is no implementation for those handlers).
I do not know what logic used by application to fill WebHtmlEditor from data in grid. So, instead of grid-cell I tested TextBox-Text as source for value in WebHtmlEditor. I replaced grid by Button1 and TextBox1. The Button1_Click handler I implemented by following:
this.txtMessage.Text = this.TextBox1.Text;
When I ran that page, entered some text into TextBox1 and clicked button, then async postback happened and WebHtmlEditor displayed that value.
So, issue is not in combination of WebSplitter+WARP+WebHtmlEditor, but in codes of your application. I suggest you to test separately behavior of grid, WebHtmlEditor and WARPs. Put break points in different events, remove WARPs (disable their async features by BrowserTarget=DownLevel), replace input from grid events by temporary static values, etc.
Finally I do not recommend to mix AJAX controls like WebSplitter with WARP, because ScriptManager is not compatible with CallBackManager used by WARP. The AJAX and WARP controls can be used side by side, but not nested inside of each other. If it works in some applications, then it is rather oddity, but not a rule. I suggest to replace WARP by UpdatePanel.