Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views

 

Hi,

I am using a user control in a radwindow manager. I using a simple requiredfiled validator on my user control, But if I add ny validator the rad window doesn't get open at all. Below is code on my page.

<
telerik:RadWindowManager runat="server" RestrictionZoneID="offsetElement" KeepInScreenBounds="True"

 

 

Modal="True" Animation="Fade" ID="RadWindowManager1" EnableShadow="false" ShowOnTopWhenMaximized="false"

 

 

Width="425" Height="525" DestroyOnClose="True" Behavior="Default" InitialBehavior="None"

 

 

OnClientClose="OnClientClose">

 

 

<Windows>

 


 

<telerik:RadWindow ID="RadWindowContactEditor" runat="server" Width="430" Height="350">

 

 

<ContentTemplate>

 

 

<uc7:ucCustomerContactEdit ID="ucCustomerContactEdit1" runat="server" />

 

 

</ContentTemplate>

 

 

</telerik:RadWindow>

 


 

</Windows>

 

 

</telerik:RadWindowManager>

 


Thanks
Marin Bratanov
Telerik team
 answered on 13 Apr 2011
5 answers
149 views
Hi there,

Having a problem with RadWindow - I have used the code outlined in your KB article http://www.telerik.com/support/kb/article/b454K-tgh-b454T-cee-b454c-cee.aspx (VB.net code) to open a radwindow to show upload progress. This control is tied in to an asp.net Create User Wizard to upload an image, which works fine.

However, when I then complete the account creation of the User Wizard control, the RadWindow fires again, showing upload progress for the image previously uploaded - what am I doing wrong?

thanks for any help anyone can provide!
GP
Top achievements
Rank 1
 answered on 13 Apr 2011
1 answer
94 views
Hi,

I have a radcombobox in a form page:
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <asp:Button ID="Button1" runat="server" Text="Button" />
        <telerik:RadComboBox ID="cbxProva" runat="server">
        </telerik:RadComboBox>
    </div>
    </form>
</body>
</html>

VB code:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        cbxProva = CaricaComuni("LE")
    End Sub

 i want to populate the control with external module

this is the code in the module:
Public Function CaricaComuni(ByVal Provincia As String) As RadComboBox
       CaricaComuni = New RadComboBox
       Try
           Dim sql As String
 
           sql = "SELECT IdComune, Comune FROM Sys_Comuni WHERE Provincia = @Provincia AND RecordEliminato = 0 ORDER BY Comune"
 
           Dim adapter As New SqlDataAdapter(sql, connStr)
           adapter.SelectCommand.Parameters.Add("@Provincia", SqlDbType.Char).Value = Provincia
           Dim dt As New DataTable()
           adapter.Fill(dt)
 
           CaricaComuni.DataSource = dt
           CaricaComuni.DataTextField = "Comune"
           CaricaComuni.DataValueField = "IdComune"
           CaricaComuni.DataBind()
           CaricaComuni.Items.Insert(0, New RadComboBoxItem("", ""))
 
       Catch ex As Exception
           'MessageBox(ex.Message, ex.StackTrace.Substring(ex.StackTrace.LastIndexOf("\") + 1))
       End Try
   End Function

When i press the button the debug is good, if i control in debug mode the combox response correctly populate:

?cbxProva.Items(1).Text
"ACQUARICA DEL CAPO"

But the combobox in the page is empty...

Why?

Dimitar Terziev
Telerik team
 answered on 13 Apr 2011
4 answers
63 views
I had problems with telerik controls in the browser 9, how to perform some validationahy explore 9?

ALBERT
Top achievements
Rank 1
 answered on 13 Apr 2011
1 answer
106 views
How can I drag/drop nodes within a treeview, but block the drop (or change the destination index) for some locations.

I have a treeview which is used to manage job scheduling set up with the level 0 nodes being foremen and level 1 nodes as jobs.
The job nodes at the top of the list for each foreman have a custom attribute on them to denote that it is started and they are not draggable.  I need to either block dropping the unstarted jobs in the middle of the started ones or change the destination index to the first one after the last started job.

Kate
Telerik team
 answered on 13 Apr 2011
16 answers
338 views
hi,
    we are using RadMenu in one of our application.but one of our client (government agency-US client) he tested our application using WAT tool for testing the section 508 (version:2008-01-30). in this tool he reported the frames issue, if i check that option then it is showing the below message

Frame Information

  • IFRAME-1
    • Name not specified
    • Longdesc not specified
    • Title not specified
    • Src="javascript:'';"
  • IFRAME-2
    • Name not specified
    • Longdesc not specified
    • Title not specified
    • Src="javascript:'';"
  • IFRAME-3
    • Name not specified
    • Longdesc not specified
    • Title not specified
    • Src="javascript:'';"

NOFRAMES

No "NOFRAMES" Element Found!;


in order to trace this issue i gone through the view source of this particular page but i did not find those iframes in my view source. after a lot of struggle i came to know that they are coming for RadMenu (from my code i removed entire RadMenu after that i checked, then i observed the above issue does not reported, so i concluded that the above issue is because of Radmenu)

along with the above one he had reported one more issue with respect to tables if i click on the tables option in the WAT tool then i am getting the following message (no th element found) which i am adding an attachment.
so, how can we fix it.
Thanks,
Burepalli V S Rao.

Rumen
Telerik team
 answered on 13 Apr 2011
1 answer
145 views

Hi
I'm creating a composite control (say name MyTextBox) which will contains child controls as RadMasked TextBox or Asp.Net TextBox and Button . And then I placed this control in a Demp Page called Defaul.aspx. And I would like to access the text entered in the  MytextBox through javascript as

 

 

document.getElementById(

 

'<%=MyTextBox1.ClientID %>').value.
which is not working because When a compiste control renders, child controls will be wrapped by SPAN element by-default. So How can I access 'value' property from javascript.

 

Maria Ilieva
Telerik team
 answered on 13 Apr 2011
1 answer
51 views
At the moment I am implementing my own behaviour whereby a user clicks on a recurring appointment, and can then choose from a context menu to "Delete all Future Appointments".

This works by parsing the existing Recurrence Rule associated with the appointment, setting the Range.RecursUntil property of the rule to a date/time, and then saving this.

This works, but if you are setting the date/time to part-way through a day, e.g. 14.30 - this is not reflected in the Advanced Form when the user comes to manually edit the Recurrence again.

This is because on the Advanced Form, the "End By" only has a date picker - it doesn't have a time picker as well.

Is there a time-picker available for the "End By" date available?  Or will I have to set the Range.RecursUntil to a "midnight" value all the time? If you are dealing with appointments that recur hourly, then this might cause issues for a few people.

Thanks in advance for your help.
Nikolay Tsenkov
Telerik team
 answered on 13 Apr 2011
3 answers
163 views
Hi All,

The example of  ToolTip  / RadToolTip for RadCalendar  can display the appointment details in the tooltip. And it displays only one appointment for the day that has appointments.  Now I'm working on a RadCalendar with RadToolTip and I need the ToolTip to display all events of that day. 

I passed Start as parameter, my code is:
 
    Private Function IsDayRegisteredForTooltip(ByVal [date] As DateTime) As DateTime 
 
        Dim connectionString As String = ConfigurationManager.ConnectionStrings("eCalendarConnectionString").ConnectionString 
        Dim con As New SqlConnection(connectionString) 
 
        Dim cmd As New SqlCommand("SELECT   Start FROM tblActivities WHERE convert( varchar(10), Start, 101 ) = convert( varchar(10), @Start, 101 )", con) 
        cmd.Parameters.Add(New SqlParameter("@Start", [date])) 
       
        Using con 
 
            con.Open() 
            Dim result As Object = cmd.ExecuteScalar() 
            Return result 
 
        End Using 
 
    End Function 
 
    Protected Sub RadCalendar1_DayRender(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs) 
 
        Dim returnedStartDate As DateTime = IsDayRegisteredForTooltip(e.Day.[Date]) 
        Dim cell As TableCell = e.Cell 
                 
        cell.Attributes.Add("onmouseover", "ShowToolTip(this);") 
        cell.Attributes.Add("id", "Calendar1_" + e.Day.Date.ToString()) 
          
        cell.Attributes.Add("startDate", returnedStartDate.ToString()) 
         
    End Sub 

Then I got error "SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM."
I don't know how to do with this. Please help. Thanks !

Svetlina Anati
Telerik team
 answered on 13 Apr 2011
3 answers
144 views
Hi all,

Just wondering if there is a way to add some custom data (in this case an ID) against a RibbonBarMenuItem?

Basically what I am doing is creating the menu from items in a database table - what I want to be able to do is grab the ID in the MenuItemClick event and then execute the correct code accordingly. 

Obviously I could do a lookup on the text itself but this is not ideal and there could potentially be items with the same text so not really an option. I guess I could inherit from the RibbonBarMenuItem and create a custom control with an ID field - would this be the correct solution? or am I missing something obvious?

Any help would be appreciated.

Regards
Kevin       
Nikolay Tsenkov
Telerik team
 answered on 13 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?