or


function selectAll(){ var masterTable = $find('<%= gUnbilledOrders.ClientID%>').get_masterTableView(); masterTable.selectAllItems();}function clearAll(){ var masterTable = $find('<%= gUnbilledOrders.ClientID%>').get_masterTableView(); masterTable.clearSelectedItems();}function selectAll(){ var masterTable = $find('wSaveOptions_C_gUnbilledOrders').get_masterTableView(); masterTable.selectAllItems();}function clearAll(){ var masterTable = $find('wSaveOptions_C_gUnbilledOrders').get_masterTableView(); masterTable.clearSelectedItems();}
I wonder would it be possible when a listveiw is rendered as a list of checkboxes, add an option to display Select/Deselect All checkbox at the top of the list? It could separated by a horizontal line.
E.g.
Select/Deselect All
---------------------
Checkbox 1
Checkbox 2
Checkbox 3
Checkbox 4
...


Heely Guys
Story: I have a strange error when I try to save something I got this error message ( An entity object cannot be referenced by multiple instances of IEntityChangeTracker.)
I really don’t know what that is and why is it appear, it appears only when I try to save something my insert and update is working, only when I try to save something in db from my grid
if (this.annualVacationList != null) { List<AnnualVacation> vacationToSave = this.annualVacationList; IEnumerable<AnnualVacation> existing = paramUser.AnnualVacations; foreach (AnnualVacation toSave in vacationToSave) { AnnualVacation existingItem = existing.Where(x => x.AnnualVacationId == toSave.AnnualVacationId).SingleOrDefault(); if (existingItem == null) { ctx.AddToAnnualVacations(toSave); } else { existingItem.FromDate = toSave.FromDate; existingItem.ToDate = toSave.ToDate; existingItem.WorkingTime = toSave.WorkingTime; existingItem.VacationDays = toSave.VacationDays; } } } ctx.SaveChanges(); }public void AddToAnnualVacations(AnnualVacation annualVacation) { base.AddObject("AnnualVacations", annualVacation); }