4 Answers, 1 is accepted
0
Accepted
Hi Nikola,
Plamen
the Telerik team
Here is the database structure that we recommend for RadScheduler. Please review it and if you still have questions please elaborate a little bit what exactly are you trying to change it because it is not quite clear from the explanation provided.
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Nikola
Top achievements
Rank 2
answered on 13 Nov 2012, 12:15 PM
heey
thanks for help that helps^^
but know i have some strange errors when im trying to save the userid
Error 1 'HolidayTracker.Data.Model.HtUser.GetUserIdByLogin(string, HolidayTracker.Data.Model.HolidayTrackerEntities, string)': not all code paths return a value C:\Development\Projects\Vs2012\HolidayTracker\HolidayTrackerData\Model\HtUser.cs 265 27 HolidayTrackerData
Error 10 'HolidayTracker.Data.Model.HtUser' does not contain a definition for 'GetUserIdByLogin' C:\Development\Projects\Vs2012\HolidayTracker\HolidayTracker\User\UserScheduler.aspx.cs 66 33 HolidayTracker
why is here a error ?
thanks for help
thanks for help that helps^^
but know i have some strange errors when im trying to save the userid
public
static
int
GetUserIdByLogin(
string
p, HolidayTrackerEntities ctx, String login)
{
HtUser retUser =
null
;
int
backslashIndex = login.IndexOf(
"\\"
);
String domain = backslashIndex >= 0 ? login.Substring(0, backslashIndex) :
""
;
String username = backslashIndex >= 0 ? login.Substring(backslashIndex + 1, login.Length - backslashIndex - 1) : login;
retUser = ctx.HtUsers.Where(au => au.UserName.ToLower() == username.ToLower()).Single();
}
protected
void
RadScheduler1_AppointmentInsert(
object
sender, SchedulerCancelEventArgs e)
{
if
(ExceedsLimit(e.Appointment))
{
e.Cancel =
true
;
RegisterScript();
}
else
{
int
id = HtUser.GetUserIdByLogin(Page.User.Identity.Name);
e.Appointment.Attributes.Add(
"UserId"
,
"1"
);
}
}
thanks for help
0
Hello Nikola,
Plamen
the Telerik team
I have inspected the code shared and the error observed but it does not seems to be connected with RadControls but rather to your custom implementation. Please let me know if I am missing something.
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Nikola
Top achievements
Rank 2
answered on 13 Nov 2012, 01:41 PM
heey
nope it was my error but thanks for your time !!
nope it was my error but thanks for your time !!