Resource control width/height

4 posts, 0 answers
  1. zx10r
    zx10r avatar
    9 posts
    Member since:
    Jul 2016

    Posted 01 Aug Link to this post

    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

  2. zx10r
    zx10r avatar
    9 posts
    Member since:
    Jul 2016

    Posted 01 Aug Link to this post

    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");
                }
            }

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. zx10r
    zx10r avatar
    9 posts
    Member since:
    Jul 2016

    Posted 02 Aug in reply to zx10r Link to this post

    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?
  5. Ivan Danchev
    Admin
    Ivan Danchev avatar
    829 posts

    Posted 03 Aug Link to this post

    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.
Back to Top