This question is locked. New answers and comments are not allowed.
Hi,
I have a telerik grid in my MVC application. I add rows to it using the following line
var grid = $("#ParentSpecialities").data("tGrid");
var griddata = grid.data;
griddata.push({ SpecialityID: data.Specialities[i].SpecialityID, ServiceName: data.Specialities[i].ServiceName, IsAssociatedSpeciality: data.Specialities[i].IsAssociatedSpeciality, IsCommonDiagnosis: data.Specialities[i].IsCommonDiagnosis });
grid.dataBind(griddata);
This works perfectly. However, I wish to first clear the grid (remove all the rows) and then use griddata.push(...)
Is that possible? I need to do that to avoid duplicate entries. Please advise
Thanks,
Anthony
I have a telerik grid in my MVC application. I add rows to it using the following line
var grid = $("#ParentSpecialities").data("tGrid");
var griddata = grid.data;
griddata.push({ SpecialityID: data.Specialities[i].SpecialityID, ServiceName: data.Specialities[i].ServiceName, IsAssociatedSpeciality: data.Specialities[i].IsAssociatedSpeciality, IsCommonDiagnosis: data.Specialities[i].IsCommonDiagnosis });
grid.dataBind(griddata);
This works perfectly. However, I wish to first clear the grid (remove all the rows) and then use griddata.push(...)
Is that possible? I need to do that to avoid duplicate entries. Please advise
Thanks,
Anthony