use session in ResourceStyleMapping

2 posts, 0 answers
  1. Mohamad Javad
    Mohamad Javad avatar
    39 posts
    Member since:
    Jul 2014

    Posted 05 Apr 2015 Link to this post

    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.

  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 07 Apr 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top