

telerik
:GridClientSelectColumn] is unchecked. and ViceVersa
-Thanks
Nhilesh
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <telerik:RadAjaxManager ID="AppRadAjaxManager" runat="server"> |
| </telerik:RadAjaxManager> |
| <telerik:RadWindowManager ID="AppRadWindowManager" runat="server" Width="400px"> |
| </telerik:RadWindowManager> |
| Dim Updated As Integer = Applications_DataAccess.UpdateApplicantInfo(record, first_name, last_name) |
| If Updated > 0 Then |
| 'does absolutely nothing |
| DisplayMessage("Application Record Has Been Updated Successfully.", "Update SUCCESS") |
| 'works fine |
| 'MsgBox("Application Record Has Been Updated Successfully.", MsgBoxStyle.Exclamation, "Update SUCCESS") |
| End If |
| Private Sub DisplayMessage(ByVal text As String, ByVal title As String) |
| AppRadAjaxManager.ResponseScripts.Add("Sys.Application.add_load(function(){radalert('" & text & "', 330, 210, '" & title & "');})") |
| End Sub |
protected
void BtnSearch_Click(object sender, ImageClickEventArgs e)
{
soHelper =
new SmartOfficeHelper();
DataTable dtContact = soHelper.SearchSmartOffice(RadTextBoxName.Text);
ViewState[
"dtContact"] = dtContact;
RadGridContact.DataSource = dtContact;
RadGridContact.Rebind();
if (dtContact.Rows.Count > 0)
{
RadGridContact.Visible =
true;
}
}
protected
void RadGridContact_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
if (e.RebindReason == GridRebindReason.InitialLoad)
{
DataTable emptyTable = new DataTable();
RadGridContact.DataSource = emptyTable;
}
else if (e.RebindReason == GridRebindReason.PostBackEvent)
{
soHelper =
new SmartOfficeHelper();
DataTable dtContact = soHelper.SearchSmartOffice(RadTextBoxName.Text);
RadGridContact.DataSource = dtContact;
}
}