Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
67 views
Hi,

I have a RadSlidingPane which can be docked by the user. I would like this sliding pane to be open and docked when the page is loaded first time. After that the user can choose to undock and collapse it.

How would I do that? Atm, the pane is always collapsed first time the page is loaded...

Kind Regards
IT Support
Top achievements
Rank 1
 answered on 16 Apr 2010
5 answers
194 views
hi,

i followed the nice example from
http://www.telerik.com/demos/aspnet/prometheus/ToolTip/Examples/RadToolTipManagerClientAPI/DefaultCS.aspx
and all works like a charm.

One little problem i have is the following: ShowDelay on the server for the radtooltipmanager is set to 3000, but it does not seem to work for the tooltip, it shows immediatly.

Is this due the reason i have the tooltip.show() at the client in the mouseover?
Or am i doing something wrong?

Thanks in advance!
Svetlina Anati
Telerik team
 answered on 16 Apr 2010
3 answers
158 views
Hello Sir,
I Want to display Time As 7:00, 7:30, 7:45, 8:00 On Scheduler Control Left Side.

want to Display Schedule time Frame Like as below :-

7:00am

7:15am

7:45am

8:00am

8:15am

And So on.

Currently Scheduler Display Time Frame As Below:-

7:00

8:00

9:00

10:00

But i want to display Upper Format. So Please Help Me.

Thanks
Chandan Kuamr


Veronica
Telerik team
 answered on 16 Apr 2010
5 answers
381 views
Hello,

I am using the Q3 2009 of a RadMaskedTextBox and could not find the OnKeyUp clientside event. It looks like earlier versions of the radinput controls do support this event because it is discussed in this forum.
The OnValueChanging and OnValueChanged events are triggered when the control loses focus so that is to late for my purpose. So is there any way to handle an event right after a user changes the input by a key press in the latest version?

Kind regards,

Jeroen Houba
Maria Ilieva
Telerik team
 answered on 16 Apr 2010
1 answer
50 views
I have a strange one here.  I'm using a combobox which is dynamically created on the server and added to my form.  I'm using loadondemand.  I check the length of a text field for one of the items I added server side prior to the call to the remote method and the length of my text value is 7 characters.  After I click on the dropdown and it goes out to retrieve more items and returns to my OnitemsRequested javascript routine, I check the length of the same item and it is now 8 characters.  So essentially a space is being added to the end of the string.  My remote method does not alter existing items in the combobox and only adds new items.  Any known issues?
Kalina
Telerik team
 answered on 16 Apr 2010
1 answer
104 views
Hello,

I have a radGrid inside an AjaxPanel,
if i select for example rows 2 and 3, and use the command item to delete the selected items, it does delete the 2nd and 3rd rows, but when it gets back, i get rows 4 and 5 selected instead!!!!!

i tried clearing selection but to no avail, if i disable view state of the AjaxPanel, i cannot use the selectedItems collection.

Please help

Pavel
Telerik team
 answered on 16 Apr 2010
5 answers
287 views
Hello Telerik and Everyone Else!

I've tried very hard to look for a similar question that has already been answered but unfortunately I couldn't find one. So please bear with me.

As you know there is demo about ajaxifying the timer here: 
http://demos.telerik.com/aspnet-ajax/ajax/examples/common/ajaxifytimer/defaultvb.aspx

This demo updates the whole RadGrid every interval of the timer.

What if instead of updating the whole RadGrid every interval of the timer, each of the datagrid row gets updated at different times - say the 1st row get's updated every 5 seconds, the 2nd row at 10 seconds, the 3rd row at 8 seconds, the 4th row at 30 seconds, and so on and so forth.

I guess what I want is that each datagrid row will have its own separate dynamically created timer running at different intervals. How can RadAjaxManager handle that kind of a scenario? Below are some code snippets of my failed attempt:

Public Class TCSTimer  
    Inherits System.Timers.Timer  
 
    Private mstrTag As Object 
    Private mstrName As String 
 
    Public Property Tag() As Object 
        Get 
            Return mstrTag  
        End Get 
        Set(ByVal value As Object)  
            mstrTag = value  
        End Set 
    End Property 
 
    Public Property Name() As String 
        Get 
            Return mstrName  
        End Get 
        Set(ByVal value As String)  
            mstrName = value  
        End Set 
    End Property 
 
    Public Sub New()  
        MyBase.New()  
    End Sub 
 
    Public Sub New(ByRef sTag As Object, ByVal sName As String)  
        mstrTag = sTag  
        mstrName = sName  
    End Sub 
End Class 
 
Partial Class _Default  
    Inherits System.Web.UI.Page  
 
    Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid1.ItemDataBound  
        If TypeOf e.Item Is GridDataItem Then 
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)  
            Dim item As GridDataItem = TryCast(e.Item, GridDataItem)  
            Dim hlLink As HyperLink = item.FindControl("hlFPP")  
            hlLink.NavigateUrl = "Default.aspx?panel=SubGrid&f=" & dataItem("FPP").Text.Split("-")(0).Trim & "&prog=" & dataItem("FPP").Text.Split("-")(1).Trim & _  
                                 "&prod=" & dataItem("FPP").Text.Split("-")(2).Trim & "&status=" & dataItem("Status").Text & _  
                                 "&message=" & dataItem("Message").Text  
            hlLink.Text = dataItem("FPP").Text  
            Dim lblTC As Label = item.FindControl("lblTC")  
            lblTC.Text = Now().ToLongTimeString  
            Dim lblCtr As Label = item.FindControl("lblCtr")  
            lblCtr.Text = Now().ToLongTimeString  
 
            If "/WP/".Contains("/" & dataItem("Status").Text.Trim.ToUpper & "/") Then 
                item.BackColor = Color.DarkRed  
                item.ForeColor = Color.Yellow  
                hlLink.ForeColor = Color.White  
            End If 
            If "/B/M/".Contains("/" & dataItem("Status").Text.Trim.ToUpper & "/") Then 
                item.BackColor = Color.Yellow  
                item.ForeColor = Color.Blue  
            End If 
 
 
            Dim tmrGridTimer As TCSTimer = New TCSTimer(dataItem, hlLink.Text)  
            tmrGridTimer.Interval = 1000  
            AddHandler tmrGridTimer.Elapsed, AddressOf tmrGridTimer_Elapsed  
            Dim rajaxs As Telerik.Web.UI.AjaxSetting = New Telerik.Web.UI.AjaxSetting  
            rajaxs.AjaxControlID = tmrGridTimer.Name  
            Dim rajaxsupdctrl As Telerik.Web.UI.AjaxUpdatedControl = New Telerik.Web.UI.AjaxUpdatedControl  
            rajaxsupdctrl.ControlID = "RadGrid1" 
            rajaxs.UpdatedControls.Add(rajaxsupdctrl)  
            rajaxsupdctrl.ControlID = lblTaktClock.ID  
            rajaxs.UpdatedControls.Add(rajaxsupdctrl)  
            rajaxsupdctrl.ControlID = lblCounter.ID  
            rajaxs.UpdatedControls.Add(rajaxsupdctrl)  
            rajaxsupdctrl.LoadingPanelID = "LoadingPanel1" 
            rajaxs.UpdatedControls.Add(rajaxsupdctrl)  
            RadAjaxManager1.AjaxSettings.Add(rajaxs)  
            tmrGridTimer.Start()  
 
        End If 
    End Sub 
 
    Public Sub tmrGridTimer_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs)  
        Dim itmTC As Label = CType(CType(sender, TCSTimer).Tag, GridDataItem).FindControl("lblTC")  
        Dim itmCtr As Label = CType(CType(sender, TCSTimer).Tag, GridDataItem).FindControl("lblCtr")  
 
        Dim r As New Random()  
        Dim t1, a1 As Integer 
 
        t1 = r.Next(1, 100)  
        a1 = r.Next(1, 100)  
 
        itmTC.Text = t1  
        itmCtr.Text = a1  
 
        t1 = Nothing 
        a1 = Nothing 
    End Sub 
 
End Class 


Thanks in advance!

Mira
Telerik team
 answered on 16 Apr 2010
1 answer
123 views
Hello,
I have successfully created a grid and it's columns in the code behind and everything is working swimmingly, however now I need to support nullable dates in the pop-up grid editor.  For example:  Start date is required while end date is optional and often will not be populated.  Currently if you edit the grid or want to insert a new record and do not specify a value for the end date, technically the pop-up editor thinks some kind of invalid datetime exception occured.

Now that i have provided the backup, I have two questions that I hope you can help to answer:
  1. How can you create a grid column programatically that accepts null for date values (System.Date...does not work for this) when in edit/insert mode?
  2. How can you use a built-in column editor for date values but have this values formatted as MM/YY when the column is defined programmatically ({0:d} works for 4/1/2010 but {0:MM/yy} in the dataformat for the column does not seem to work)?

 

Thank you!

Martin
Telerik team
 answered on 16 Apr 2010
2 answers
191 views
Hello,

I have always an error when for first time, i choose a file with AsynUpload Control... And the error also occurs from time to time when i have already chosen a file and there's the elements uploaded

Image: error.jpg

The AsynUpload despite try to load the file, but it stay loading file and i cannot know when it has finished!

Image: uploading.jpg

The same error occurs when i'm gonna delete the file

Some ideas???

The code:

<telerik:RadAsyncUpload ID="RadUploadAttachs" runat="server" 
                    InitialFileInputsCount="1" 
                    Localization-Add="<%$ Resources:_Client, UploadPopUp_RadUpload_Add %>" 
                    Localization-Delete="<%$ Resources:_Client, UploadPopUp_RadUpload_Delete %>" 
                    Localization-Remove="<%$ Resources:_Client, UploadPopUp_RadUpload_Remove %>" 
                    Localization-Select="<%$ Resources:_Client, UploadPopUp_RadUpload_Select %>"> 
</telerik:RadAsyncUpload> 


Thanks,
Daniel Botero Correa
Daniel Botero Correa
Top achievements
Rank 1
 answered on 16 Apr 2010
7 answers
123 views
You can localize all of the RadSchedulers in a project but just changing the RadScheduler.Main.resx file.  Is there a similar option for the RadGrid?  I have bunch of grids in a project.
Sebastian
Telerik team
 answered on 16 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?