OnSelectedDateChanged event of RadTimePicker not firing from within a grid

6 posts, 0 answers
  1. Alice Julia
    Alice Julia avatar
    9 posts
    Member since:
    Sep 2009

    Posted 18 Mar 2010 Link to this post

    I have a RadTimePicker as one of the template columns in RadGrid. When i call the OnSelectedDateChanged event of the RadTimePicker it is not fired. I have set AutoPostBack also to true. But its not fired.

    Any suggestions? Am i missing something?


  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 18 Mar 2010 Link to this post

    How are you attaching the event to the RadDateTimePicker control? In the code-behind or in the control?

    If you are setting it in the code-behind, I would suggest to set the event handler in the control's declaration like:

    <telerik:RadTimePicker id="RadTimePicker1" runat="server" OnSelectedDateChanged="RadTimePicker_OnSelectedDateChanged" />
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alice Julia
    Alice Julia avatar
    9 posts
    Member since:
    Sep 2009

    Posted 19 Mar 2010 Link to this post

    I have added the event handler to the control's declaration only. Still it doesn't work. The control is inside the grid. So is there any other way to handle this?

    My code:

            <EditItemTemplate >
                <telerik:RadTimePicker ID="txtStartTime" runat="server" OnSelectedDateChanged ="CheckDuration" AutoPostBack ="true" >
                </telerik:RadTimePicker>
            </EditItemTemplate>

        Protected Sub CheckDuration(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs)

        End Sub





  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 23 Mar 2010 Link to this post

    Hello Alice,

    I followed your description and prepared a sample project attached to this post. However the SelectedDateChanged event of the RadTimePicker is fired properly on my side. Can you check it on your end and let me know how it goes and what differs in your case?

    Sincerely yours,
    Iana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Alice Julia
    Alice Julia avatar
    9 posts
    Member since:
    Sep 2009

    Posted 05 May 2010 Link to this post

    This is strange. I followed all the steps but still i am not getting that event fired. Please help.

            <telerik:RadTimePicker ID="rtpEndTime" runat ="server" OnSelectedDateChanged ="rtpEndTime_SelectedDateChanged" AutoPostBack ="true" ></telerik:RadTimePicker>

        Protected Sub rtpEndTime_SelectedDateChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs)
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "asd", "alert('fired');", True)
        End Sub



  7. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 10 May 2010 Link to this post

    Hi Alice,

    I modified the sample so it runs in VB and the event is fired on my side. Try it on your end and let me know if it works and what differs in your case.

    Greetings,
    Iana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017