Hi Folks,
I was using webhtmleditor inside Ajax > TabContainer > detailsview > webhtmlEditor in my previous versions of project. but now i upgraded the framework and all its components. And i am stuck with this problem from last few days.
Webhtmleditor is not initialising inside detailsview. any ideas?
Jag
Hello Jag,
It is hard to tell without seeing the ASPX / code-behind first. Are you getting any specific Javascript error? Which version of the AJAX control toolkit are you using (I assume TabContainer is from there).
By the way, I digress, but just a suggestion - is it possible for you to use our own TabStrip component? Maybe this will lead to better results? Also, switiching between different AJAX containers like UpdatePanel and our own WebAsyncRefreshPanel (WARP) may lead to better results.
Still, these are just suggestions. If you paste the complete ASPX so we can reproduce the problem, we will surely be able to provide additional clues.
i get javascript error in the statusbar with icon.
line : 85490622
char 1
error object expected
code 0
i created a test and its doing the same. not working. its not initialising the control.
code behind code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ConStr.ConnectionString = "Data Source=JAGJOT_WS1;Initial Catalog=IMTicketing;Integrated Security=True"
SqlDataSource1.ConnectionString = ConStr.ConnectionString
End Sub
html code
<%@ Register Assembly="Infragistics35.WebUI.UltraWebTab.v8.3, Version=8.3.20083.1009, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
<%@ Register Assembly="Infragistics35.WebUI.WebHtmlEditor.v8.3, Version=8.3.20083.1009, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.WebUI.WebHtmlEditor" TagPrefix="ighedit" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
</head>
<body>
<form id="form1" runat="server">
<div>
<igtab:UltraWebTab ID="UltraWebTab1" runat="server">
<Tabs>
<igtab:Tab Text="tab 1">
<ContentTemplate>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" SelectCommand="SELECT * FROM [dbo].[Tickets] WHERE ([TicketNo] = @parTicketNo)"
UpdateCommand="UPDATE [dbo].[Tickets] SET [Request] = @parRequest WHERE [TicketNo] = @parTicketNo">
<SelectParameters>
<asp:SessionParameter Name="parTicketNo" SessionField="ticID" Type="Int64" />
</SelectParameters>
<UpdateParameters>
<asp:SessionParameter Name="parRequest" SessionField="requests" Type="String" />
</UpdateParameters>
</asp:SqlDataSource>
<asp:DetailsView ID="dvCustomerDetail" runat="server" DataSourceID="SqlDataSource1"
GridLines="None" DefaultMode="Edit" AutoGenerateRows="False" CssClass="htmlEditordetailgrid"
Width="100%">
<Fields>
<asp:BoundField HeaderText="Ticket No" DataField="TicketNo" ReadOnly="True">
<ItemStyle Font-Bold="True" />
</asp:BoundField>
<asp:TemplateField HeaderText="Request">
<EditItemTemplate>
<ighedit:WebHtmlEditor ID="WebHtmlEditor1" runat="server" Text="sdadasds">
</ighedit:WebHtmlEditor>
</EditItemTemplate>
</asp:TemplateField>
</Fields>
</asp:DetailsView>
</ContentTemplate>
</igtab:Tab>
<igtab:TabSeparator>
</igtab:TabSeparator>
<igtab:Tab Text="tab 2">
</Tabs>
</igtab:UltraWebTab>
</div>
</body>
</html>