Hi,
I would like to achieve this Grid - Automatic Operations but I don't want to use Item Template. I would like to have the edit options so the data could be edited by user. Please guide. Below are my codes:
Thank you in advance
I would like to achieve this Grid - Automatic Operations but I don't want to use Item Template. I would like to have the edit options so the data could be edited by user. Please guide. Below are my codes:
1.<telerik:RadGrid ID="dgvSummary" runat="server" AllowPaging="true" AllowSorting="true" CellSpacing="0" PageSize="7" Skin="Hay" Width="100%" GridLines="None">2. <MasterTableView />3.</telerik:RadGrid>
01.Private Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click02. Me.dgvSummary.DataSource = Me._PopulatedgvSummary()03. 04. If Me.dgvSummary.DataSource IsNot Nothing Then05. Me.dgvSummary.DataBind()06. Me.pnlSummary.Visible = True07. Else08. Me.pnlSummary.Visible = False09. End If10. End Sub01.Private Function _PopulatedgvSummary()02. Dim tblData As DataTable = Me._GenerateTableShema03. Dim intIndex As Integer = 104. Dim strEdit As String = String.Empty05. 06. For Each objView_EvalSummaryRow As DSHREval.HREvalRow In HREvalDALC.GetEvalSummary(Me.radDepartment.SelectedValue, Me.radPosition.SelectedValue, Me.txtStarYear.Text, Me.cboStarTerm.SelectedValue)07. 08. strEdit = "<a id=""popup"" href=""" & SharedCommon.GenerateLink(Request, SharedCommon.EditEvaSummary) & "?" & SharedCommon.ID & "=" & objView_EvalSummaryRow.ID.ToString & """>" & "Edit" & "</a>"09. tblData.Rows.Add(New Object() {intIndex, objView_EvalSummaryRow.EmpID, objView_EvalSummaryRow.EmpName, objView_EvalSummaryRow.PropertyCode, _10. objView_EvalSummaryRow.Department, objView_EvalSummaryRow.PresentPosition, _11. objView_EvalSummaryRow.Average, objView_EvalSummaryRow.FinalAverage, strEdit})12. 13. intIndex += 114. Next15. 16. If tblData.Rows.Count = 0 Then17. tblData = Nothing18. End If19. 20. Return tblData21. End Function01.Private Function _GenerateTableShema() As DataTable02. Dim tblData As New DataTable03. 04. With tblData.Columns05. .Add("Num.")06. .Add("Staff ID")07. .Add("Name")08. .Add("Property")09. .Add("Department")10. .Add("Position")11. .Add("Average Mark")12. .Add("Final Mark")13. .Add(" ")14. End With15. 16. Return tblData17. End FunctionThank you in advance