I am having 4 RadAjaxPanels with radhtmlchart controls. And I want to update/control individually each paneI with different skins.
I have two drop down list boxes for Panel No and Color and when user clicks 'Update' button, I am calling function to invoke ajaxRequestwithTarget, with arguments(panel no and color selected).
and on the server side I am having the following logic
protected void RadAjaxPanel_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
string argument = (e.Argument);
String[] argArray = argument.Split(",".ToCharArray());
switch (argArray[0])
{
case "1":
RadSkinManager1.ApplySkin(RadHtmlChart1, argArray[1]);
lblChart1.Text = argArray[1];
break;
case "2":
RadSkinManager1.ApplySkin(RadHtmlChart2, argArray[1]);
lblChart2.Text = argArray[1];
break;
case "3":
RadSkinManager1.ApplySkin(RadHtmlChart3, argArray[1]);
lblChart3.Text = argArray[1];
break;
case "4":
RadSkinManager1.ApplySkin(RadHtmlChart4, argArray[1]);
lblChart4.Text = argArray[1];
break;
default:
break;
}
The logic works fine the first time, able to apply different skins to all the four panels..But it doens't work when I want to reapply another skin on them. Can we apply Skin only once to the controls. I am unable to understand what would be the reason.
Thank you,
Madhavi
I have two drop down list boxes for Panel No and Color and when user clicks 'Update' button, I am calling function to invoke ajaxRequestwithTarget, with arguments(panel no and color selected).
and on the server side I am having the following logic
protected void RadAjaxPanel_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
string argument = (e.Argument);
String[] argArray = argument.Split(",".ToCharArray());
switch (argArray[0])
{
case "1":
RadSkinManager1.ApplySkin(RadHtmlChart1, argArray[1]);
lblChart1.Text = argArray[1];
break;
case "2":
RadSkinManager1.ApplySkin(RadHtmlChart2, argArray[1]);
lblChart2.Text = argArray[1];
break;
case "3":
RadSkinManager1.ApplySkin(RadHtmlChart3, argArray[1]);
lblChart3.Text = argArray[1];
break;
case "4":
RadSkinManager1.ApplySkin(RadHtmlChart4, argArray[1]);
lblChart4.Text = argArray[1];
break;
default:
break;
}
The logic works fine the first time, able to apply different skins to all the four panels..But it doens't work when I want to reapply another skin on them. Can we apply Skin only once to the controls. I am unable to understand what would be the reason.
Thank you,
Madhavi