This is a migrated thread and some comments may be shown as answers.
ShowRowHeaders not honored in dynamically created control
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 16 Jun 2009, 07:18 PM
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

        Me.myPlaceHolder.Controls.Add(cntrl)
    End Sub

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 17 Jun 2009, 06:25 AM
Hello Lenny,

Try the following code snippet for dynamically creating RadDatePicker control.

VB:
 
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 
    Me.myPlaceHolder.Controls.Add(cntrl)  
End Sub 

Thanks,
Princy.
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 1
Share this question
or