а

How to open lightbox in year view


#1

Hello,
I have followed the documentation and examples for year view.
Everything is working but in ‘Year’ view when I click on the ‘details’ icon inside the tooltip to open lightbox, it does not open.
I am using the following code.

public DHXScheduler Scheduler { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Scheduler = new DHXScheduler();
        Scheduler.Views.Clear();
        Scheduler.Views.Add(new DayView());
        Scheduler.Views.Add(new WeekView());
        Scheduler.Views.Add(new MonthView());
        var yearView = new YearView();
        Scheduler.Views.Add(yearView);

        Scheduler.InitialDate = DateTime.Now;
        Scheduler.Config.first_hour = 0;
        Scheduler.Config.last_hour = 24;
        Scheduler.Config.time_step = 30;
        Scheduler.Config.limit_time_select = true;
        Scheduler.Config.isReadonly = false;
        Scheduler.Config.readonly_form = false;
        Scheduler.Config.year_x = 4;
        Scheduler.Config.year_y = 3;

        Scheduler.DataAction = this.ResolveUrl("~/order/Data.ashx");
        Scheduler.SaveAction = this.ResolveUrl("~/order/Save.ashx");
        Scheduler.LoadData = true;
        Scheduler.EnableDataprocessor = true;

        var box = Scheduler.Lightbox.SetExternalLightboxForm("PromotionLightBox.aspx", 750, 456);
        Scheduler.Skin = DHXScheduler.Skins.Glossy;

        //grid view
        var grid = new DHTMLX.Scheduler.Controls.GridView("grid");//initializes the view
        grid.Columns.Clear();
        grid.Columns.Add(
           new GridViewColumn("text", "Promotion Name")
           {              
               Sorting = GridViewColumn.Sort.String            
           });

        grid.Columns.Add(
           new GridViewColumn("start_date", "Start Date")
           {
               Template = "{start_date:date(%d-%m-%Y %H:%i)}"
               ,
               Sorting = GridViewColumn.Sort.Date               
           });
        grid.Columns.Add(
           new GridViewColumn("end_date", "End Date")
           {
               Template = "{end_date:date(%d-%m-%Y %H:%i)}"
               ,
               Sorting = GridViewColumn.Sort.Date               
           });        

        Scheduler.Views.Add(grid);        
        Scheduler.InitialView = grid.Name; 
    }

#2

Hi,
sorry for such delayed reply. We’ve reproduced the issue with custom lightbox Year view. We’ll try to provide an update in the nearest days


#3

I have the same problem, and i dont know why i cant open double clicking in the details icon my lightbox.


#4

Hi,

I tried to reproduce the issue in the sample https://docs.dhtmlx.com/scheduler/samples/03_extensions/04_year_view.html
and the lightbox opens as expected. Does it work for you in the sample?


#5

nvm, i resolved the issue.

Thank you anyways :smiley: