Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
220 views
Hi, 
 

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

  

Veselin Vasilev
Telerik team
 answered on 04 Jan 2010
11 answers
311 views
Hi - I see references here in the forum to making image thumbnails, but I cannot for the life of me find a way to enable this functionality.

Here's what I want:

  1. User hits the image manager button in the toolbar, gets the image manager dialog. 
  2. User chooses image
  3. User either hits Image Editor button or some other "make thumbnail" button (doesn't matter to me)
  4. Thumbnail is created
  5. Image is placed as thumbnail with appropriate <a> tags to link to full-sized version

Step 5 is where I'm getting hung-up - I don't see any means of creating the link, short of hitting the link manager and manually entering the URL for the full-size image - that's too complicated for my end-users, I need an automatic or visual method. Seems like this is supposed to be a feature of the image manager. (At the very least, it should be.)

How do I do this?

Thank you!!
Daniel Mettler
Top achievements
Rank 2
Iron
 answered on 04 Jan 2010
2 answers
108 views
In RadEditor 2009.1.1311 Image Manager doesn't contain the options "Link to original" and "Open original in new window" for thumbnails anymore.

Did you remove this feature? If so, what's the reason and will it get re-implemented soon?
Daniel Mettler
Top achievements
Rank 2
Iron
 answered on 04 Jan 2010
1 answer
60 views
I am attempting to recreate the demo Grid / Window Editing and have run into a problem on the protected sub:

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

 

Princy
Top achievements
Rank 2
 answered on 04 Jan 2010
3 answers
156 views
The following tabstrip was created in the order of Notes, Contact Mechanisms, Relationships.  Recently, we changed the order as shown below.  The content in each tab is correct as per markup below.   However, no matter which order I change the RadTab controls, the tab headers appear in the original order that each was created.  Why is this happening and how can I fix it?

I put this markup on a new page and replace each RadMultiPage content with just a label ... it works fine.  I thought maybe the code-behind was accessing some part of this control, so I changed the name of all IDs expecting to get a compilation error.  However, as expected, the code-behind is not accessing any part of this control.

 

<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>

 

Gary
Top achievements
Rank 2
 answered on 04 Jan 2010
1 answer
170 views
Hi

I have build a grid with a formtemplate. I want to set the label text through a button click. The problem is that it cant find the reference to the label. What to do?

reg
D

<%@ 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 ObjectByVal 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 ObjectByVal e As EventArgs) 
        Dim lb As Label = RadGrid1.FindControl("lb1"
        lb.Text = "hi" 
    End Sub 
End Class 
 
Shinu
Top achievements
Rank 2
 answered on 04 Jan 2010
2 answers
232 views
Hi,

I want to hide columns in a RadGrid when the selected tab of a TaStrip, in another area of the page isn't the first (based on your wizzard code demo).

I have configured the ajax manager to do it, enabled the post back on the tabstrip and added the following event:

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

shanker bangari
Top achievements
Rank 1
 answered on 04 Jan 2010
1 answer
110 views
Hi,

I am trying to modify the auto generated EditForm becouse I need to use list for example rether then using a text box.
***** I have tried the WebUsercontrol and I get this message: 

Value cannot be null.
Parameter name: virtualPath





**** If I want use the templete, How to create the action button for editing and cancel, 
And, Is there any way to modify the auto generated form to do avoid more work?

best regards, 
Princy
Top achievements
Rank 2
 answered on 04 Jan 2010
1 answer
102 views
I am trying to find a way to configure the editor to show no toolbars what-so-ever. I have tried removing all buttons, but there is still an empty toolbar displayed. Can anyway help?
Shinu
Top achievements
Rank 2
 answered on 04 Jan 2010
1 answer
862 views
Hi

I am trying to push the go button in the edit mode and get a reference to the label lb1 but then get an error:
Unable to cast object of type 'Telerik.Web.UI.GridDataItem' to type 'Telerik.Web.UI.GridEditFormItem'

this is the code:
<%@ 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 ObjectByVal 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 
 


any suggestions?
thanks
D
Shinu
Top achievements
Rank 2
 answered on 04 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?