hi, i managed to make the CRUD operations work with custom edit form, but the new data is not showing on the grid unless i hit refresh the page.
what am i missing here ?
thanks in advanced.
Are you binding the grid using Advanced Binding techniques? If not, try binding the grid using Advanced binding so that you dont have to DataBind to see the Newly added data. Check out the following help link to understand better on Advanced DataBinding Techniques. Advanced data-binding
thanks princy for reply ,but it is not working, not even with refresh now, as i am using form view to update or insert a record by clicking on a delete button template column i made in the grid which will trigger a form view outside the page to be visible and start editing, the update or insert works fine with the form view and i checked the DB and the records were updated but i cant see the new data in grid , thanks in advanced
DataClasses DB = new DataClasses();
IQueryable<News_section> Query_Sections = from s in DB.News_sections select s;
Grid_Sections.DataSource = Query_Sections.ToList();
}
and aspx code
<telerik:RadGrid ID="Grid_Sections" runat="server" AutoGenerateColumns="False"
GridLines="None"
ondeletecommand="Grid_Sections_DeleteCommand"
onneeddatasource="Grid_Sections_NeedDataSource">