Hi,
I found some post of RadAjax & UserControl but I think that is not exactelly want I would like.
I have a UserControl VERY simple :
public partial class Marge : System.Web.UI.UserControl
{
public string titre { get; set; }
public string marge { get; set; }
public string heures { get; set; }
public string achats { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
TabRoundHaut1.titre = titre;
LabelMarge.Text = marge;
LabelHeures.Text = heures;
LabelAchats.Text = achats;
}
}
So, there is just 4 label...
I put this UserControl on a page.
When I update the RadGrid1 I want to refresh my simple UserControl.
So I have this :
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel"/>
<telerik:AjaxUpdatedControl ControlID="UserControl1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
And :
protected void RadGridAchatsManuel_ItemCreated(object sender, GridItemEventArgs e)
{
UserControl1. titre = "Toto";
}
protected void Page_Load(object sender, EventArgs e)
{
UserControl1. titre = "Tata";
}
So when I load my page the user control display Tata in the 'titre' it is great.
But, when I create an item in the grid... the UserControl.titre display nothing !
Thank you for your help