hi
i have a grid in a nested view template with a GridDateTimeColumn in it , but on insert/edit mode the datepicker does not show , it simply seems to go to the top of the screen when the picker button is clicked ,
the column is created as follows :-
private GridDateTimeColumn CreateDateGridColumn(XmlAttribute xAtt, XmlNode xControl, RadAjaxPanel PlaceHolder1) |
{ |
System.Web.UI.Control Test = Builder.FindControl(PlaceHolder1.Controls, xAtt.Name + "Editor"); |
if (Test.ID == null) |
{ |
GridDateTimeColumnEditor DTE = new GridDateTimeColumnEditor(); |
DTE.ID = xAtt.Name + "Editor"; |
PlaceHolder1.Controls.Add(DTE); |
} |
GridDateTimeColumn DT = new GridDateTimeColumn(); |
DT.UniqueName = xAtt.Name; |
DT.HeaderText = xControl.Attributes["Caption"].Value; |
DT.PickerType = GridDateTimeColumnPickerType.DatePicker; |
DT.DataFormatString = "{0:MM/dd/yyyy}"; |
DT.ColumnEditorID = xAtt.Name + "Editor"; |
DT.DataField = xAtt.Name; |
DT.SortExpression = xAtt.Name; |
DT.ItemStyle.Width = Unit.Pixel(120); |
DT.FilterControlWidth = Unit.Pixel(50); |
DT.DataType = System.DateTime; |
DT.EmptyDataText = " "; |
return DT; |
} |
the grid is created in the Page_init function, i am also using the latest version of the telerik controls.
can anyone suggest a reason why the picker would not be popping up ?
Peter.