This is a migrated thread and some comments may be shown as answers.

Inline insering and editing for radgrid when databinded from serverside codebehind

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mahesh
Top achievements
Rank 1
mahesh asked on 25 Aug 2011, 03:10 PM

Hi,
In my application i am creating a new grid where i am trying to implement inline inserting and editing for radgrid where data is being binded from serverside code behind , I am trying to adopt the logic implemented in the following article
 http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
The problem i am facing is in this article its shown for data being from clientside ,please  can i get any other article or sample working project where inline inline inserting and editing for radgrid is being implemented.


Thanks,
Mahesh

1 Answer, 1 is accepted

Sort by
0
Elliott
Top achievements
Rank 2
answered on 25 Aug 2011, 05:59 PM
the easiest way is to put a grid NeedDataSource
event handler in your code
then set the grid DataSource property to a collection (datatable,dataset,list, etc)
Protected Sub rgStores_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgStores.NeedDataSource
    Dim ds As DataSet = Nothing
    Dim dt As DataTable = Nothing
    Dim ws As New CommonFunctions
 
    ds = ws.GetStores
    If ds.Tables.Count > 0 Then
        dt = ds.Tables(0)
    End If
    rgStores.DataSource = dt
    ws = Nothing
End Sub
Tags
Grid
Asked by
mahesh
Top achievements
Rank 1
Answers by
Elliott
Top achievements
Rank 2
Share this question
or