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

Controlling Row size with rsLastSpacingWrapper

3 Answers 85 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jeff Nafe
Top achievements
Rank 1
Jeff Nafe asked on 24 Nov 2008, 07:26 PM
Before moving to the 2008 Q3 release, we had been using the rsLastSpacingWrapper class to minimize the vertical padding placed within each row/resource. Our css looked like the following:

div.RadScheduler .rsTimelineView .rsAllDayRow td .rsLastSpacingWrapper
{
    height: 5px;
    _height: 5px;
}

This worked properly. Now, with Q3, we are experiencing an issue in which this only resizes the first row/resource displayed. The cause is that only that first row/resource gets the rsLastSpacingWrapper placed on it. Specifically, this is what a td of the first row compared to the second row appear as:

First Row: <TD class="  rsEmptyTimeSlot rsAptCreate"><DIV class="rsWrap rsLastSpacingWrapper" style="HEIGHT: 25px"><!-- --></DIV></TD>

Second Row: <TD class="  rsEmptyTimeSlot rsAptCreate"><DIV class=rsWrap style="HEIGHT: 25px"><!-- --></DIV></TD>

This appears to be a bug, and it's keeping us from being able to size our schedule appropriately.

Also, a related question (though a smaller issue). How is the "Height: 25px" getting rendered to that div? I am having to add "!important" to my css to override this. I'm not sure if we have control over that style attribute or not.

Thanks in advance for a quick response!

Jeff

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Nov 2008, 04:00 PM
Hello Jeff,

The rsLastSpacingWrapper class is applied to the last row which is always empty. Please, try the following css selector and let us know if this helps:

 .rsTimelineView .rsAllDayRow .rsLastSpacingWrapper     
    {     
        height5px !important;     
    }    


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff Nafe
Top achievements
Rank 1
answered on 25 Nov 2008, 04:18 PM
Thanks for the reply Peter.

But, my issue is that class is being added to the last row (in each timeslot) for only the first listed resource. So, if I have 10 resources displayed in the Scheduler, the first one will get it's padding shrunk appropriately, while the rest of the resource "rows" don't contain the rsLastSpacingWrapper class, so they're not affected.

This can even be seen within your example at http://demos.telerik.com/ASPNET/Prometheus/Scheduler/Examples/TimelineView/DefaultCS.aspx

The cell containing History 201 contains that class, while the cell containing Piano Recital does not.

Thanks,

Jeff
0
Peter
Telerik team
answered on 25 Nov 2008, 05:36 PM
Hi Jeff,

Thanks for elaborating. You are right - this is indeed a bug with RadScheduler. Please, open a support ticket so we can send you a hotfix as soon as we resolve the problem.



Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Jeff Nafe
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jeff Nafe
Top achievements
Rank 1
Share this question
or