Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
185 views

Hi everybody,

I've a page where I call one ASCX twice.

This the page code:

<%@ Register TagPrefix="Ricerca" TagName="Anagrafica" Src="~/PopUp/PUucRicercaAnagrafica.ascx" %>
<!-- some controls -->
  
<!-- ascx -->
            <Ricerca:Anagrafica ID="datiContrattoRicercaAnagraficaInsertFornitore" runat="server"
                AllowMultiRowSelect="false" Titolo="Ricerca Fornitore" RadWindowObjectListKey="rwPopUpRicercaAnagraficaFornitore"
                ParentObjectClientId="ClientID" OnInitializeComponentComplete="RicercaAnagrafica_InitializeComponentComplete"
                OnConfermaRicercaClicked="RicercaAnagrafica_ConfermaRicercaClicked" OnConfermaRicercaClicking="RicercaAnagrafica_ConfermaRicercaClicking" />
            <Ricerca:Anagrafica ID="datiContrattoRicercaAnagraficaInsertRichiedente" runat="server"
                AllowMultiRowSelect="false" Titolo="Ricerca Richiedente" RadWindowObjectListKey="rwPopUpRicercaAnagraficaRichiedente"
                OnInitializeComponentComplete="RicercaAnagrafica_InitializeComponentComplete" />

I need to use the same ascx two different purpose, so I call the same ascx using different ID, and this is correct, but when I'm going to use ajax the async postback doesn't work for all ascx, but only for last declared.

In my ascx I've RadAjaxMangerProxy, which refresh the ascx controls.
In my aspx I've RadAjaxManager, when I'm going to do a postback from usercontrol, the radajaxmanager doesn't intercept the postback, so the page totally refreshes.

Perhaps the problem is the name of the controls into ascx, when the radajaxmanager register the control override all control with the same ID (server ID), but is not functionally, because it's possible declare different ascx control in the same page, e.g. template.

How can I solve this?

Thanks

Antonio Stoilkov
Telerik team
 answered on 12 Jan 2012
1 answer
78 views
I have a simple SQL table with about 10 fields driving an ajaxed radgrid via a SqlDataSource as follows:

 

 

<asp:SqlDataSource ID="SqlDataSource_gvSalesRep" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"
   SelectCommand="Select * From SalesRep" 
   UpdateCommand="Update SalesRep Set [Phone_No] = @Phone_No Where [Slspsn_No] = @Slspsn_No">
   <UpdateParameters>
      <asp:Parameter Name="Phone_No" />
      <asp:Parameter Name="Slspsn_No" />
   </UpdateParameters>
</asp:SqlDataSource>

I want only 1 of the 10 fields (Phone_No) to be editable on the editform, so I set the other 9 fields to readonly. When I change the phone number on the editform and click update, the change is not made on the database nor on the radgrid.  If I remove readonly from the 9 fields and then change the phone number on the editform and click update, the change occurs on the database and the radgrid.

Why would that be, and what is the solution?

Thanks

Kermit
Top achievements
Rank 1
 answered on 12 Jan 2012
1 answer
211 views
I have a web form that uses several RadComboBoxes - when the form is in "add" mode the comboboxes are enabled to allow user to specify information and the combo boxes all function properly in IE, Firefox, Chrome.  However, when in "edit" mode certain combo boxes are disabled since some of the information cannot be modified - I set the selected value server side based on the information saved when the record was added then I disable the Combo Boxex - in IE and Firefox the selected value shows fine but in Chrome the selected value is either transparent or not being shown - ref the attached files.  The code to bind the combo boxes and set selected value is in code behind and thus never changes so that generally rules that out as the issue.  Anyone else seen this and/or know how to resolve.
Kalina
Telerik team
 answered on 12 Jan 2012
8 answers
972 views
Hello, I am Developing a web application by using ASP.NET 3.5, jQuery and RadAjax Telerik Control. I get Error Messages when page Loading. that is :"Microsoft JScript runtime error: Unable to set value of the property 'control': object is null or undefined"

the 1st Error Image: errormsg1.png
and when I click to Open RadWindow then get same Error Message. and could not open radwindow

2nd Image: errormsg2.png 
 

How can I solved this Error. Help me..



Thanks
Nahid
Chue Shee
Top achievements
Rank 1
 answered on 12 Jan 2012
5 answers
144 views
Hello
I am creating a number of RadTreeView controls at run time:
RadTreeView MyTree = new RadTreeView();

I am struggling to see how to assign the OnNodeExpand event to a code behind event.
With a static declaration this was :
<telerik:RadTreeView  OnNodeExpand="RadPopulateNode">

But I can't see a property at runtime that matches OnNodeExpand.

Please could anyone help me with the answer.

Thankyou
Plamen
Telerik team
 answered on 12 Jan 2012
5 answers
108 views
hi can i Drag and Drop from RadGrid to RadTreeView
if can give me simple example
Bozhidar
Telerik team
 answered on 12 Jan 2012
1 answer
116 views
Hi,
I have a RadTreeView in MasterPage. After login, Landing page will inherit the master page containing the RadTreeView and the RadTreeView is loaded correctly.
Then i will expand the RadTreeView and click on one of the node which will navigate to other page which inherits the same masterpage which contains the RadtreeView. But the problem is entire page is getting resfreshed and RadtreeView will be collapsed as it was when first time.. i want to avoid this.. Can anyone help ?

Any solution for this ?

Regards,
Akki
Plamen
Telerik team
 answered on 12 Jan 2012
1 answer
102 views
Hi,

I am using radscheduler. date binding in page load. start date working fine. but appointment panel not continued to end date. here i attached my code.

i have attached image file also. please check and let me know.

  <telerik:RadScheduler ID="RadScheduler1" runat="server" DataKeyField="ID" DataSubjectField="Subject"
    DataStartField="StartDate" DataEndField="EndDate" SelectedView="MonthView"        
            Reminders-Enabled="true"  RowHeight="30px"
            AppointmentStyleMode="Default">

  </telerik:RadScheduler>

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
      
        If Not IsPostBack Then
            Dim lst As New List(Of MyScedule)()
            Dim obj As New MyScedule()
            obj.ID = 1
            obj.Subject = "my Subject"
            obj.StartDate = Convert.ToDateTime("01-11-2012")
            obj.EndDate = Convert.ToDateTime("01-12-2012")
            lst.Add(obj)          

            RadScheduler1.DataSource = lst

            RadScheduler1.DataBind()
        End If

    End Sub

class file
------------
Public Class MyScedule

    Public Property ID() As Integer
        Get
            Return m_ID
        End Get
        Set(ByVal value As Integer)
            m_ID = value
        End Set
    End Property
    Private m_ID As Integer
    Public Property Subject() As String
        Get
            Return m_Subject
        End Get
        Set(ByVal value As String)
            m_Subject = Value
        End Set
    End Property
    Private m_Subject As String
    Public Property StartDate() As DateTime
        Get
            Return m_StartDate
        End Get
        Set(ByVal value As DateTime)
            m_StartDate = Value
        End Set
    End Property
    Private m_StartDate As DateTime
    Public Property EndDate() As DateTime
        Get
            Return m_EndDate
        End Get
        Set(ByVal value As DateTime)
            m_EndDate = Value
        End Set
    End Property
    Private m_EndDate As DateTime
End Class
Plamen
Telerik team
 answered on 12 Jan 2012
1 answer
90 views
Hi,

I have a problem with Hyperlink Manager in the RadEditor.
Consider looking at the following HTML snippet:
<a href="#test" shape="rect">test1<br /></a>
<a href="#test2" shape="rect">test2</a>

If you open properties of the second link (test2), make some changes and press OK, then Hyperlink Manager removes previous link (i.e. test1), and you receive the following HTML markup:
test1<br />
<a href="#test2" shape="rect" target="_blank">test2</a>

This problem is reproducible only in Microsoft Internet Explorer 8 and 9 in Compatibility Mode. Google Chrome and Mozilla Firefox work just fine.
We are using Telerik.Web.UI version 2010.2.826.35.

Could you please propose a workaround for this issue?

Thank you in advance,
Yuriy Bogomolov

Rumen
Telerik team
 answered on 12 Jan 2012
12 answers
186 views
In the menu below, the Support Menu is double-column. When the vertical height of the screen is 
reduced (not necessarily even reduced so far as to prevent the whole menu showing), the items in the 
double-column menu disappear. They do not just disappear visually--nothing happens when you click where 
they should be, either. Even if you make the screen bigger again, they do not reappear.

We are using the Q3 .NET 4 DLLs. We are in IE8, but I verified this also occurs in a current Chrome.

Any fix?

----------------------------------------------------------------

<%@ Page Language="C#" AutoEventWireup="false" %>
 
<%@ 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">
 
<head runat="server">
    <title></title>
    <style type="text/css">
        .ItemWithWrap
        {
            white-space: normal;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    <telerik:RadMenu ID="OasisMenu" runat="server" Flow="Horizontal" Skin="Office2010Silver"
        Width="100%" EnableAutoScroll="True">
        <Items>
            <telerik:RadMenuItem Text="Home" ToolTip="Home" Value="" NavigateUrl="" />
            <telerik:RadMenuItem Text="Overseas Posts" ToolTip="Overseas Posts" NavigateUrl="" />
            <telerik:RadMenuItem Text="Personnel" ToolTip="Personnel" Value="" NavigateUrl="">
                <Items>
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="Support Tables" ToolTip="Support Tables" Value="" NavigateUrl="">
                <GroupSettings RepeatColumns="2" RepeatDirection="Vertical" Width="210" />
                <Items>
                    <telerik:RadMenuItem Text="Address Type" ToolTip="Address Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Agency" ToolTip="Agency" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Approvers List" ToolTip="Approvers List" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Authorization Status" ToolTip="Authorization Status" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Budget Category" ToolTip="Budget Category" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Building Type" ToolTip="Building Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Contract Type" ToolTip="Contract Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Country" ToolTip="Country" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Funding Source Type" ToolTip="Funding Source Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Location Type" ToolTip="Location Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Object Class" ToolTip="Object Class" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Ownership Type" ToolTip="Ownership Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Personal Travel Type" ToolTip="Personal Travel Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Post Communication Type" ToolTip="Post Communication Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Post Office Standards" ToolTip="Post Office Standards" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Post Type" ToolTip="Post Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Region" ToolTip="Region" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Relationship Type" ToolTip="Relationship Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Residence Assign Type" ToolTip="Residence Assign Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Residence Feature Type" ToolTip="Residence Feature Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Room Type" ToolTip="Room Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Shipping Vendor" ToolTip="Shipping Vendor" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Storage Vendor" ToolTip="Storage Vendor" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Title Type" ToolTip="Title Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle Acquisition Location" ToolTip="Vehicle Acquisition Location" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle Color Type" ToolTip="Vehicle Color Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle Condition" ToolTip="Vehicle Condition" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle Disposal Method" ToolTip="Vehicle Disposal Method" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle Fuel Type" ToolTip="Vehicle Fuel Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle Make Type" ToolTip="Vehicle Make Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle Model Type" ToolTip="Vehicle Model Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle Style Type" ToolTip="Vehicle Style Type" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Web Keyword" ToolTip="Web Keyword" NavigateUrl="" />
                    <telerik:RadMenuItem IsSeparator="true" />
                    <telerik:RadMenuItem Text="Vehicle Size, Composition, and Annual Cost" ToolTip="Vehicle Size, Composition, and Annual Cost" NavigateUrl=""
                        CssClass="ItemWithWrap" />
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="Reports" ToolTip="Reports" Value="" NavigateUrl="">
                <GroupSettings Width="280" />
                <Items>
                    <telerik:RadMenuItem Text="Home-Cell Phone Contact List" ToolTip="Home-Cell Phone Contact List" NavigateUrl="" />
                    <telerik:RadMenuItem Text="FAS Available Pool" ToolTip="FAS Available Pool" NavigateUrl="" />
                    <telerik:RadMenuItem Text="FAS – Employee Promotion" ToolTip="FAS – Employee Promotion" NavigateUrl="" />
                    <telerik:RadMenuItem Text="FAS – Foreign Service Report" ToolTip="FAS – Foreign Service Report" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Projected Vacancies" ToolTip="Projected Vacancies" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle/Fleet Master" ToolTip="Vehicle/Fleet Master" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Vehicle/Size, Composition and Annual Cost" ToolTip="Vehicle/Size, Composition and Annual Cost" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Financial Plan Post Summary" ToolTip="Financial Plan Post Summary" NavigateUrl="" />
                    <telerik:RadMenuItem Text="OASIS Summary" ToolTip="OASIS Summary" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Overseas Assignments" ToolTip="Overseas Assignments" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Download Data for CRM" ToolTip="Download Data for CRM" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Overseas Staffing Roster" ToolTip="Overseas Staffing Roster" NavigateUrl="" />
                    <telerik:RadMenuItem Text="FTSS Communications" ToolTip="FTSS Communications" NavigateUrl="" />
                </Items>
            </telerik:RadMenuItem>
 
            <telerik:RadMenuItem Text="Help" ToolTip="Help" Value="" NavigateUrl="">
                <Items>
                    <telerik:RadMenuItem Text="About"
                        ToolTip="About" Value="" NavigateUrl="" />
                    <telerik:RadMenuItem Text="Samples" ToolTip="Samples">
                        <Items>
                            <telerik:RadMenuItem Text="Dropdowns Sample"
                                ToolTip="Dropdowns Sample" Value="" NavigateUrl="" />
                            <telerik:RadMenuItem Text="Data Access Sample"
                                ToolTip="Data Access Sample" Value="" NavigateUrl="" />
                            <telerik:RadMenuItem Text="JQuery Sample"
                                ToolTip="JQuery Sample" Value="" NavigateUrl="" />
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Tests" ToolTip="Tests">
                        <Items>
                            <telerik:RadMenuItem Text="Test Report - Posts"
                                ToolTip="Test Report - Posts" NavigateUrl="" />
                            <telerik:RadMenuItem Text="Test RadGrid"
                                ToolTip="Test RadGrid" NavigateUrl="" />
                        </Items>
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>
    </div>
    </form>
</body>
</html>
Velma
Top achievements
Rank 1
 answered on 12 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?