Localization and sort order of comboboxes

3 posts, 0 answers
  1. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 18 Nov 2009 Link to this post

    I am working on a localization provider for the Radscheduler. 

    I have translated the values of the comboboxes but now the texts in the comboboxes are unsorted. 

    Is it possible to re-sort the comboboxes after applying a localization provider ? 

    Kind Regards,

    Ramius

  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 23 Nov 2009 Link to this post

    Hi Ramius,

    You can create a custom EditAppointmentDialog and use in the place of the default dialog. You can change the default dialog by handing AppointmentEditDialogShowing event. Here is a code snippet which shows how to do it:

    void radScheduler1_AppointmentEditDialogShowing(object sender, Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs e)
            {
                if (this.appointmentEditDialog == null)
                {
                    this.appointmentEditDialog = new CustomAppointmentEditDialog();
                }

                e.AppointmentEditDialog = this.appointmentEditDialog;
            }

    CustomAppointmentEditDialog inherits from EditAppointmentDialog and all the child controls are protected modifiers. This means that you have access to the comboboxes and you can apply sorting.

    Please write me back if you need more information.

    All the best,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 23 Nov 2009 Link to this post

    Hi Boyko,

    thank you for your help. 

    It works fine now.

    Greetings,

    Ramius

Back to Top