Hi,
I have rad scheduler in my page. I have dynamically added a 'more' link in appointments template with appointments id. i have set the target control id as more link id.
if i pass value while setting target control its not even firing.. if i remove value and pass only id, isClient id flag then its throwing
System.ArgumentNullException: Value cannot be null.
Parameter name: Cannot find a server control with ID=36822c37-d8ca-4b29-a31f-b315fb68a4a3. If you need to specify a client-side element ID, please set IsClientID to true.
how to resolve this.. ?
thx
I have rad scheduler in my page. I have dynamically added a 'more' link in appointments template with appointments id. i have set the target control id as more link id.
protected
void
RadScheduler1_AppointmentCreated(
object
sender, AppointmentCreatedEventArgs e)
{
LinkButton lnkPermitName = (LinkButton)e.Container.FindControl(
"lblDisplayPermitName"
);
Label labelPermitName = (Label)e.Container.FindControl(
"labelPermitName"
);
if
(!IsEditable)
{
lnkPermitName.Visible =
false
;
labelPermitName.Visible =
true
;
}
else
{
lnkPermitName.Visible =
true
;
labelPermitName.Visible =
false
;
}
LinkButton lnkButtonMore =
new
LinkButton();
lnkButtonMore.ID = e.Appointment.ID.ToString();
lnkButtonMore.Text =
"More"
;
RadToolTipManager1.TargetControls.Add(lnkButtonMore.ClientID, e.Appointment.ID.ToString(),
true
);
//RadToolTipManager1.TargetControls.Add(lnkButtonMore.ID, e.Appointment.ID.ToString(), false);
if
(e.Appointment.CssClass == UIConfigurationConstant.DARKBLUE)
lnkButtonMore.Style.Add(HtmlTextWriterStyle.Color,
"white"
);
e.Container.Controls.Add(lnkButtonMore);
//LinkButton lnkButtonMore = new LinkButton();
}
if i pass value while setting target control its not even firing.. if i remove value and pass only id, isClient id flag then its throwing
System.ArgumentNullException: Value cannot be null.
Parameter name: Cannot find a server control with ID=36822c37-d8ca-4b29-a31f-b315fb68a4a3. If you need to specify a client-side element ID, please set IsClientID to true.
how to resolve this.. ?
thx