Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
Questionhelp in datagride view CellLeave Pin
aahamdan21-May-15 21:00
aahamdan21-May-15 21:00 
AnswerRe: help in datagride view CellLeave Pin
Sascha Lefèvre22-May-15 0:01
professionalSascha Lefèvre22-May-15 0:01 
AnswerRe: help in datagride view CellLeave Pin
Muhammad Waqas Aziz22-May-15 0:35
Muhammad Waqas Aziz22-May-15 0:35 
GeneralRe: help in datagride view CellLeave Pin
aahamdan26-May-15 13:02
aahamdan26-May-15 13:02 
QuestionControls Pin
Member 1136270921-May-15 20:22
Member 1136270921-May-15 20:22 
AnswerRe: Controls Pin
OriginalGriff21-May-15 22:25
mveOriginalGriff21-May-15 22:25 
AnswerRe: Controls Pin
Eddy Vluggen22-May-15 2:17
professionalEddy Vluggen22-May-15 2:17 
QuestionDayPilot Calendar cannot Update clientState If i Navigate... Pin
Victor Ebe21-May-15 6:11
Victor Ebe21-May-15 6:11 
Hi, If change EmployeeName in dropdownlist I can Get clientState value have empId in mvc DayPilot Calendar Current control.It will work. If i navigate to Day or Month view then DayPilot control cannot update Event of Employee and Client state is 0.

Here my Coding

In Jquery...


$(#ddlProviderSched).change(function () {

var ProviderId = $(this).val();
if (ProviderId != null) {
switcher.active.control.clientState.ddlProviderSched = ProviderId;
switcher.active.control.commandCallBack(refresh);
}
})

in C# MVC Controller Page....


protected override void OnCommand(DayPilot.Web.Mvc.Events.Month.CommandArgs e)
{
switch (e.Command)
{
case "navigate":
StartDate = (DateTime)e.Data["day"];
Update(CallBackUpdateType.Full);
break;
case "refresh":
Update(CallBackUpdateType.EventsOnly);
break;
case "delete":
new EventModel().EventDelete((string)e.Data["e"]["id"]);
Update(CallBackUpdateType.EventsOnly);
break;
//case "filter":
// string Provider1 = (string)e.Data["Provi"];
// Events = new EventModel().FilteredData(StartDate, VisibleEnd, Convert.ToInt32(Provider1)).AsEnumerable();
// Update(CallBackUpdateType.Full);
// break;
}
}

protected override void OnFinish()
{
if (UpdateType == CallBackUpdateType.None)
{
return;
}



//Events = from e in dc.TimesheetRecords where e.EmployeeId == employee select e;

int Provider = SelectedEmployee();

Events = new EventModel().FilteredData(VisibleStart, VisibleEnd,Provider).AsEnumerable();


DataIdField = "Id";
DataTextField = "Reason";
DataStartField = "eventstart";
DataEndField = "eventend";

}

public int SelectedEmployee()
{
if (ClientState["ddlProviderSched"] != null)
{
var ProId = (string)ClientState["ddlProviderSched"];
return Convert.ToInt32(ProId);
}
else
return 0;
}
AnswerRe: DayPilot Calendar cannot Update clientState If i Navigate... Pin
Ravi Bhavnani21-May-15 8:07
professionalRavi Bhavnani21-May-15 8:07 
QuestionHow to use password protected sqlite database? Pin
DPaul199421-May-15 5:07
DPaul199421-May-15 5:07 
QuestionRe: How to use password protected sqlite database? Pin
Richard MacCutchan21-May-15 5:38
mveRichard MacCutchan21-May-15 5:38 
AnswerRe: How to use password protected sqlite database? Pin
DPaul199421-May-15 6:12
DPaul199421-May-15 6:12 
GeneralRe: How to use password protected sqlite database? Pin
Richard MacCutchan21-May-15 7:48
mveRichard MacCutchan21-May-15 7:48 
GeneralRe: How to use password protected sqlite database? Pin
Eddy Vluggen21-May-15 8:25
professionalEddy Vluggen21-May-15 8:25 
AnswerRe: How to use password protected sqlite database? Pin
OriginalGriff21-May-15 6:05
mveOriginalGriff21-May-15 6:05 
QuestionProgram for an older version than the one in GAC Pin
Member 1124071321-May-15 4:22
Member 1124071321-May-15 4:22 
SuggestionRe: Program for an older version than the one in GAC Pin
Abhipal Singh21-May-15 8:11
professionalAbhipal Singh21-May-15 8:11 
QuestionWant to ask about Memory (private working set) Windows Services Pin
Mercurius8421-May-15 1:54
Mercurius8421-May-15 1:54 
AnswerRe: Want to ask about Memory (private working set) Windows Services Pin
OriginalGriff21-May-15 2:24
mveOriginalGriff21-May-15 2:24 
AnswerRe: Want to ask about Memory (private working set) Windows Services Pin
Dave Kreskowiak21-May-15 2:28
mveDave Kreskowiak21-May-15 2:28 
QuestionHelp this code shows to me what to do?? Pin
abdo.kouta21-May-15 1:45
abdo.kouta21-May-15 1:45 
AnswerRe: Help this code shows to me what to do?? Pin
Pete O'Hanlon21-May-15 2:13
mvePete O'Hanlon21-May-15 2:13 
AnswerRe: Help this code shows to me what to do?? Pin
Dave Kreskowiak21-May-15 2:21
mveDave Kreskowiak21-May-15 2:21 
GeneralRe: Help this code shows to me what to do?? Pin
abdo.kouta21-May-15 2:29
abdo.kouta21-May-15 2:29 
GeneralRe: Help this code shows to me what to do?? Pin
siddartha kopparapu21-May-15 3:12
professionalsiddartha kopparapu21-May-15 3:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.