In datagrid Itemtemplate column i have placed the textboxes(2 columns are textboxes and rest of the columns are label).Text 1 is amount text2 is percentage.
Using JS calculated the percentage and amount in the onblur event.if user changes the data without saving the data then goes to page 2 then back to page 1 user lost the changes at that i want ask the user to save data then go to page 2.
When the page index is changed, we lost the values of other pages.
When i change the page and then turn back, all the changes have been lost.
while woking with DataGrids on the PageIndexChanged event i want to take a confirmation from the user to continue for the next page or not.
How could i do this?
Regards
Sangeetha
| 'UPDATEPANEL START------------------ |
| Dim upPanel As New Telerik.Web.UI.RadAjaxPanel |
| Dim sw As New IO.StringWriter() |
| Dim tw As New HtmlTextWriter(sw) |
| Dim content As New Literal |
| upPanel.ID = "upCats" |
| upPanel.Page = Me.Page |
| '----------------------------------- |
| ''Filling content here |
| ''Code stripped |
| 'UPDATEPANEL STOP------------------ |
| upPanel.Controls.Add(content) |
| upPanel.RenderControl(tw) 'ERROR COMES HERE |
| strCatsOverview &= sw.ToString() |
| '----------------------------------- |
Private Sub dgStock_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles dgStock.ItemDataBound
If TypeOf e.Item Is GridGroupHeaderItem Then
Dim item As GridGroupHeaderItem = CType(e.Item, GridGroupHeaderItem)
Dim groupDataRow As DataRowView = CType(e.Item.DataItem, DataRowView)
'Clear the present text of the cell
item.DataCell.Text =
""
Dim column As DataColumn
For Each column In groupDataRow.DataView.Table.Columns
'item.DataCell.Text = item.DataCell.Text & " " & column.ColumnName
'Check the condition and add only the field you need
If column.ColumnName = "StockType" Then
item.DataCell.Text = groupDataRow(
"StockType").ToString()
Exit For
End If
Next column
Naturally this method of adding a group header won't let me do what i want to do so I was hoping you could please advise.
thanks