We are using Q1 2007 version controls. We are getting problem with combo box in safari browser.
When we try to write some text in editable combo box, safari browser throws unhandled exception (xp, vista OS) and web application gets hanged. While,in Mac OS, browser gets closed for this same scenario.
Error message is: “Safari Web Browser has encountered a problem and needs to close” Also we are not able to track that where problem is occurring. For other browsers (IE 6/7, Fire fox), its working perfectly fine.
My combo box declaration is like this :
<
radC:RadComboBox ID="ddlUDC1" Skin="Default2006" Height="60px" runat="server" Width="200px" DropDownWidth="187px" meta:resourcekey="ddlUDC1Resource1" SkinsPath="~/RadControls/ComboBox/Skins" MarkFirstMatch="true" >
</radC:RadComboBox>
Please suggest solution for this.
Please note we want to continue with Q1 2007 version only. We do not want to upgrade it.
Any help on this will be appreciated.
Thanks,
Mittal
Protected
Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
I am receiving an "unknown type" error in reference to UI.AjaxRequestEventArgs
I have included all of the imports from the demo, but it seems like one may be missing?
Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports Telerik.Web.UI
<asp:Panel ID="pnlTabStrip" runat="server" Visible="true">
<telerik:RadTabStrip ID="rtsContact" runat="server" SelectedIndex="0" MultiPageID="rmpContact" ReorderTabsOnSelect="true">
<Tabs>
<telerik:RadTab Text="Contact Mechanisms" />
<telerik:RadTab Text="Relationships"/>
<telerik:RadTab Text="Notes" />
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="rmpContact" runat="server" SelectedIndex="0">
<telerik:RadPageView ID="rpvMechanism" runat="server">
<uc1:WucContactMechanism ID="wucContactMechanism" runat="server" />
</telerik:RadPageView>
<telerik:RadPageView ID="rpvRelationships" runat="server">
<uc2:WucAssignedParties ID="wucAssignedParties" runat="server" />
</telerik:RadPageView>
<telerik:RadPageView ID="rpvNotes" runat="server">
<telerik:RadTextBox ID="txtNotes" Runat="server" Rows="15" TextMode="MultiLine" Width="650px" TabIndex="90" BorderColor="LightGray" BorderWidth="1" EnableEmbeddedSkins="false" Skin="IBMS" />
</telerik:RadPageView>
</telerik:RadMultiPage>
</asp:Panel>
| <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Itemcommand.aspx.vb" Inherits="Itemcommand" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!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 runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" |
| AutoGenerateColumns="False" |
| ShowStatusBar="True" DataSourceID="SqlDataSource1"> |
| <MasterTableView CommandItemDisplay="TopAndBottom" GridLines="None" DataKeyNames="EmployeeID" |
| AllowFilteringByColumn="False" AllowSorting="True" DataSourceID="SqlDataSource1"> |
| <Columns> |
| <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"> |
| </telerik:GridEditCommandColumn> |
| <telerik:GridBoundColumn UniqueName="EmployeeID" HeaderText="EmployeeID" DataField="EmployeeID" |
| DataType="System.Int32" ReadOnly="True" SortExpression="EmployeeID"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" |
| UniqueName="City"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Country" HeaderText="Country" SortExpression="Country" |
| UniqueName="Country"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <EditFormSettings EditFormType="Template"> |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| <FormTemplate> |
| <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module"> |
| <tr> |
| <td> |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Country: |
| </td> |
| <td> |
| <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind( "Country" ) %>'> |
| </asp:TextBox> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| City: |
| </td> |
| <td> |
| <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind( "City") %>' TabIndex="1"> |
| </asp:TextBox> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Button ID="btnTest" CommandName="test" text="go" runat="server" /> |
| <asp:Label ID="lb1" runat="server"></asp:Label> |
| </td> |
| </tr> |
| </table> |
| </table> |
| </FormTemplate> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </div> |
| <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:nwindConnectionString %>" |
| ProviderName="<%$ ConnectionStrings:nwindConnectionString.ProviderName %>" SelectCommand="SELECT * FROM [Employees]"> |
| </asp:SqlDataSource> |
| </form> |
| </body> |
| </html> |
| Imports Telerik.Web.UI |
| Partial Class Itemcommand |
| Inherits System.Web.UI.Page |
| Protected Sub RadGrid1_ItemCreated1(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated |
| If e.Item.ItemType = GridItemType.EditFormItem And e.Item.IsInEditMode Then |
| Dim testbut As Button = CType(e.Item.FindControl("btnTest"), Button) |
| Dim lbref As Label = CType(e.Item.FindControl("lb1"), Label) |
| AddHandler testbut.Click, AddressOf testbutclicked |
| End If |
| End Sub |
| Protected Sub testbutclicked(ByVal sender As Object, ByVal e As EventArgs) |
| Dim lb As Label = RadGrid1.FindControl("lb1") |
| lb.Text = "hi" |
| End Sub |
| End Class |
Protected
Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTabStripEventArgs) Handles RadTabStrip1.TabClick
If RadTabStrip1.SelectedTab.Text = "Compte Client" Then
RadGrid1.MasterTableView.GetColumn(
"Delete").Visible = True
RadGrid1.MasterTableView.GetColumn("Edit").Visible = True
Else
RadGrid1.MasterTableView.GetColumn(
"Delete").Visible = False
RadGrid1.MasterTableView.GetColumn("Edit").Visible = False
End If
End Sub
This code works at half in the sense of my column are not visible after any click on any tab (on the first "compte client" too) but they never come back Visible.
I also would like to know how I can modify this when I click on the "next" button of the wizzard example because only an user control is loaded in that case.
Thank you for your help,
Herve
| <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Itemcommand.aspx.vb" Inherits="Itemcommand" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!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 runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" |
| AutoGenerateColumns="False" |
| ShowStatusBar="True" DataSourceID="SqlDataSource1"> |
| <MasterTableView CommandItemDisplay="TopAndBottom" GridLines="None" DataKeyNames="EmployeeID" |
| AllowFilteringByColumn="False" AllowSorting="True" DataSourceID="SqlDataSource1"> |
| <Columns> |
| <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"> |
| </telerik:GridEditCommandColumn> |
| <telerik:GridBoundColumn UniqueName="EmployeeID" HeaderText="EmployeeID" DataField="EmployeeID" |
| DataType="System.Int32" ReadOnly="True" SortExpression="EmployeeID"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" |
| UniqueName="City"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Country" HeaderText="Country" SortExpression="Country" |
| UniqueName="Country"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <EditFormSettings EditFormType="Template"> |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| <FormTemplate> |
| <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module"> |
| <tr> |
| <td> |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Country: |
| </td> |
| <td> |
| <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind( "Country" ) %>'> |
| </asp:TextBox> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| City: |
| </td> |
| <td> |
| <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind( "City") %>' TabIndex="1"> |
| </asp:TextBox> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Button ID="btnTest" CommandName="test" text="go" runat="server" /> |
| <asp:Label ID="lb1" runat="server"></asp:Label> |
| </td> |
| </tr> |
| </table> |
| </table> |
| </FormTemplate> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </div> |
| <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:nwindConnectionString %>" |
| ProviderName="<%$ ConnectionStrings:nwindConnectionString.ProviderName %>" SelectCommand="SELECT * FROM [Employees]"> |
| </asp:SqlDataSource> |
| </form> |
| </body> |
| </html> |
| Imports Telerik.Web.UI |
| Partial Class Itemcommand |
| Inherits System.Web.UI.Page |
| Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand |
| If e.CommandName = "test" Then |
| Dim edititem As GridEditFormItem = CType(e.Item, GridEditFormItem) |
| 'get reference to label lb1 |
| Dim str As Label = edititem.FindControl("lb1") |
| str.Text = "hallo" |
| End If |
| End Sub |
| End Class |