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

use session in ResourceStyleMapping

1 Answer 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mohamad Javad
Top achievements
Rank 1
Iron
Mohamad Javad asked on 05 Apr 2015, 07:54 AM

hi 

I need use session in ResourceStyleMapping Scheduler

I use below code but don't work correctly :

         <ResourceStyles>
                <telerik:ResourceStyleMapping Type="User" Key= '<%= Session["user_Id"] %>' BackColor="Aqua"></telerik:ResourceStyleMapping>
                <telerik:ResourceStyleMapping Type="User" Key="1" BackColor="Aqua"></telerik:ResourceStyleMapping>
</ResourceStyles>

 

please help me.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 07 Apr 2015, 05:01 AM
Hi Mohamad,

If you want to use session we recommend setting the styles in the code behind in the AppointmentDataBound event as it is explained in this help topic.

Hope this will help you solve the issue.

Regards,
Plamen
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Scheduler
Asked by
Mohamad Javad
Top achievements
Rank 1
Iron
Answers by
Plamen
Telerik team
Share this question
or