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

Row hiding not working properly?

3 Answers 85 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Veteran
Iron
Philip asked on 20 Apr 2021, 12:25 AM

Hi,

 

I see the following sample code where it uses the hideFilteredRows() function but it seems the row is still there even after the user is unselected.

 

For example, in the preview, if I unselect the user Alex in the top bar the events for Alex would be gone but the row for the Alex user is still there. How do I completely remove the Alex row if the user Alex is unselected?

https://docs.telerik.com/kendo-ui/knowledge-base/scheduler-show-hide-grouped-resources-with-multiselect

 

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 22 Apr 2021, 12:52 PM

Hello, Philip,

Here you will find the modified example as per your requirement.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

0
Philip
Top achievements
Rank 1
Veteran
Iron
answered on 22 Apr 2021, 05:46 PM

Thank you Martin for providing the sample code.

Is there any way we can keep the position of the grid when a user is selected and unselected?

For example, please select the view to be "Timeline Week" and then scroll the horizontal scrollbar to the right. Select or unselect a user and you will see the scheduler grid reset the horizontal scrollbar back to the left hand side. What would be the solution to maintaining the scheduler view (both horizontally and vertically) so that it will not "reset" back to the default scroll position when a user is selected or unselected?

0
Martin
Telerik team
answered on 27 Apr 2021, 11:15 AM

Hello, Philip,

The behavior occurs because when you change the resources displayed, the Scheduler rebinds to its data and is re-rendered. The widget does not provide a built-in functionality to preserve the scroll position. A possible approach would be to implement custom logic that gets the scroll position in the MultiSelect's select event, and then to manually scroll to that position in the Scheduler dataBound event.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Scheduler
Asked by
Philip
Top achievements
Rank 1
Veteran
Iron
Answers by
Martin
Telerik team
Philip
Top achievements
Rank 1
Veteran
Iron
Share this question
or