Hello,
This issue usually occurs when a control is displayed after an AJAX update or the skin is changed upon AJAX update. In this case, set the control’s EnableAjaxSkinRendering property to true on Page_Load and after every postback. For example, if a RadGrid control is shown after a partial postback from a button click the EnableAjaxSkinRendering property of RadGrid should be set to true on button click. Also, keep in mind that if there are controls inside the grid, their EnableAjaxSkinRenderingproperty should also be set to true. The code snippet below demonstrates how to load the skins of RadGrid and RadDateTimePicker control placed in the ItemTemplate of the grid template column after a partial postback.
I hope this helps.
Regards,
Maria Ilieva
Telerik
This issue usually occurs when a control is displayed after an AJAX update or the skin is changed upon AJAX update. In this case, set the control’s EnableAjaxSkinRendering property to true on Page_Load and after every postback. For example, if a RadGrid control is shown after a partial postback from a button click the EnableAjaxSkinRendering property of RadGrid should be set to true on button click. Also, keep in mind that if there are controls inside the grid, their EnableAjaxSkinRenderingproperty should also be set to true. The code snippet below demonstrates how to load the skins of RadGrid and RadDateTimePicker control placed in the ItemTemplate of the grid template column after a partial postback.
protected
void
Button1_Click(
object
sender, EventArgs e)
{
RadGrid1.Visible =
true
;
((RadGrid1.MasterTableView.Items[0]
as
GridDataItem)[
"TemplateColumnUniqueName"
].FindControl(
"RadDateTimePicker1"
)
as
RadDateTimePicker).Calendar.EnableAjaxSkinRendering =
true
;
((RadGrid1.MasterTableView.Items[0]
as
GridDataItem)[
"TemplateColumnUniqueName"
].FindControl(
"RadDateTimePicker1"
)
as
RadDateTimePicker).TimeView.EnableAjaxSkinRendering =
true
;
((RadGrid1.MasterTableView.Items[0]
as
GridDataItem)[
"TemplateColumnUniqueName"
].FindControl(
"RadDateTimePicker1"
)
as
RadDateTimePicker).DateInput.EnableAjaxSkinRendering =
true
;
RadGrid1.EnableAjaxSkinRendering =
true
;
}
I hope this helps.
Regards,
Maria Ilieva
Telerik
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 Feedback Portal
and vote to affect the priority of the items