ShowRowHeaders not honored in dynamically created control

2 posts, 1 answers
  1. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 16 Jun 2009 Link to this post

    2009.1.527.35   Even though HTML shows that ShowRowHeaders is false, RadCalendar still displays the week column.

        Private Sub CreateRadDatePicker(ByVal strLabel As String, ByVal myDateID As String, ByVal myDateValue As String)
            Dim cntrl As New RadDatePicker
            With cntrl
                .Attributes("runat") = "server"
                .Attributes("ShowRowHeaders") = "false"
                .Attributes("UseColumnHeadersAsSelectors") = "false"
                .Attributes("UseRowHeadersAsSelectors") = "false"
                .ID = myDateID
                .EnableViewState = True
            End With

        End Sub
  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 17 Jun 2009 Link to this post

    Hello Lenny,

    Try the following code snippet for dynamically creating RadDatePicker control.

    Private Sub CreateRadDatePicker(ByVal strLabel As StringByVal myDateID As StringByVal myDateValue As String)  
        Dim cntrl As New RadDatePicker()  
        If True Then 
            cntrl.Attributes("runat") = "server" 
            cntrl.Calendar.UseColumnHeadersAsSelectors = False 
            cntrl.Calendar.UseRowHeadersAsSelectors = False 
            cntrl.ID = myDateID  
            cntrl.Calendar.ShowRowHeaders = False 
            cntrl.EnableViewState = True 
        End If 
    End Sub 

Back to Top