This is a migrated thread and some comments may be shown as answers.

Resource control width/height

3 Answers 104 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
zx10r
Top achievements
Rank 1
zx10r asked on 01 Aug 2016, 09:01 PM

Hi,

How can i control the width of the resource in the advanced form view. Because of the data i am loading it does not expand and the text is long.

 

<telerik:ResourceType DataSourceID="Patients" Name="Patient" TextField="PatientName" KeyField="PatientId" 
                    ForeignKeyField="AppPatientId"/>

 

Thanks

3 Answers, 1 is accepted

Sort by
0
zx10r
Top achievements
Rank 1
answered on 01 Aug 2016, 11:02 PM

By the way, i have tried the bellow but it is not finding the control and errors out:

 

protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
        {
            if (e.Container.Mode == SchedulerFormMode.AdvancedEdit || e.Container.Mode == SchedulerFormMode.AdvancedInsert)
            {
                RadComboBox x = (RadComboBox)e.Container.FindControl("ResPatient");
            }
        }

0
zx10r
Top achievements
Rank 1
answered on 02 Aug 2016, 06:50 PM
Found the problem. So it seems that the ResourceType in the scheduler by default implements a DropDownList rather then the ComboBox. Is this the expected behavior and can it be changed?
0
Ivan Danchev
Telerik team
answered on 03 Aug 2016, 12:24 PM
Hello Almira,

I replied to your inquiry in the support thread you started with the same subject. In order to avoid thread duplication, I would suggest we continue the discussion in it if you have other questions on this matter.

The approach that has to be used is shown in the Customizing Advanced Insert and Edit Forms demo. The DropDownList that is used for displaying resources can be changed to ComboBox in the ResourceControlCS.ascx, respectively DropDownListItem to RadComboBoxItem in ResourceControlCS.ascx.cs.

Regards,
Ivan Danchev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Scheduler
Asked by
zx10r
Top achievements
Rank 1
Answers by
zx10r
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or