Hello,
In my FormCreated method in the code behind, I am trying to set the visibility of the 'Options' button in the InlineInsertTemplate to false in the manner below:
This code does not work however, as the FindControl method isn't finding the button. I.e, I get the following error: "Object reference not set to an instance of an object."
I only want this to happen for the InlineInsert form, so using the RadScheduler property below:
... is no good for me as this affects the Options button for both the InlineEdit and InlineInsert templates.
Note: I am trying to avoid creating my own template, as the built-in styling over-complicates what I need to do in the time that I have.
I look forward to your response.
In my FormCreated method in the code behind, I am trying to set the visibility of the 'Options' button in the InlineInsertTemplate to false in the manner below:
if (e.Container.Mode == SchedulerFormMode.Insert)
{
LinkButton Options = (LinkButton)e.Container.FindControl("InsertMoreButton");
Options.Visible = false;
}
This code does not work however, as the FindControl method isn't finding the button. I.e, I get the following error: "Object reference not set to an instance of an object."
I only want this to happen for the InlineInsert form, so using the RadScheduler property below:
EnableAdvancedForm="false"
... is no good for me as this affects the Options button for both the InlineEdit and InlineInsert templates.
Note: I am trying to avoid creating my own template, as the built-in styling over-complicates what I need to do in the time that I have.
I look forward to your response.