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

[Solved] client side grouping/filtering

5 Answers 170 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Pedro Cordero
Top achievements
Rank 1
Pedro Cordero asked on 08 Jan 2010, 09:19 PM
Hi,

I'm working on implementing a scheduler/clock in&out system.

I'm binding client side through web services to a scheduler grouped by Users (so I have multiple columns one for each employee and in those columns I'm displaying their clock in and outs).

I want to implement a filter so you can view 1,2,3,4 etc users at a time instead of all of them.  I have a multi-select combobox above the scheduler which I grab the values from client side then do a client side rebind and capture the OnClientAppointmentsPopulating event then override the SchedulerInfo class to pass an extra parameter (the users which I want to view) and then store that in the session and access it in the controller.

This is all working fine and when I do the filter I can see that only the data for the particular users is returned and the appointments for the other users disappear from the calendar BUT the columns for each user (resource) are still there just empty with no appointments since I filtered those out.  Is it possible to hide those empty columns as well so those users do not show? Is this possible client side?  Not even sure I think I may be asking for too much...

I attached a  picture to clarify what I'm looking for...each user has their own column...I want to be able to filter the data (got this part working) and only show 1-2 columns at a time (not working after I get filtered data all columns stay just appointments disappear)

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Jan 2010, 02:56 PM
Hi Pedro,

There is a kb article on How to implement Resource paging which you can use for this case. You need to
set ResourcePopulationMode="ServerSide" to be able to use this approach.

<WebServiceSettings 
        Path="../../SchedulerWebService.asmx" 
        ResourcePopulationMode="ServerSide" />


Greetings,
Peter
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.
0
Pedro Cordero
Top achievements
Rank 1
answered on 11 Jan 2010, 10:44 PM
Hi,

Thanks!  I was able to achieve this functionality by doing an ajax postback on "filter" button which pulls me down a new blank "template" with the correct group columns then fills those through a web service call (with insert/edit/delete/changing days working through client side binding still).

I'm guessing there is no way to achieve this without a postback to recreate the resources?  This is what I was originally going for but this solution works well enough.  Thanks!
0
Peter
Telerik team
answered on 14 Jan 2010, 11:09 AM
Hello Pedro,

That's a good question, but currently it is not possible to implement this scenario without postback.


Regards,
Peter
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.
0
Paige Cook
Top achievements
Rank 2
answered on 05 Mar 2010, 01:24 PM
Are there any plans to enable client side resource grouping in an upcoming release of the RadScheduler?

Thanks.
0
T. Tsonev
Telerik team
answered on 10 Mar 2010, 02:26 PM
Hi Paige,

We eventually want to remove the dependency on server-side rendering for the grouped views, but this is still not planned for implementation. The cost in terms of effort and time will be pretty high while the gain is negligible in most scenarios.

That said, we can experiment with implementing it for one or two view types. Can you please give us more details on the problems that you're having with the current, "mixed" rendering, model? Maybe we can offer another solution as well.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Pedro Cordero
Top achievements
Rank 1
Answers by
Peter
Telerik team
Pedro Cordero
Top achievements
Rank 1
Paige Cook
Top achievements
Rank 2
T. Tsonev
Telerik team
Share this question
or