or

| Protected Sub RadToolBar1_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles RadToolBar1.ButtonClick |
| Case "search" |
| RadGrid1.Rebind() |
| RadGrid1.MasterTableView.CurrentPageIndex = 0 |
| End Select |
| End Sub |
| Protected Sub ldsLocality_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.LinqDataSourceSelectEventArgs) Handles ldsLocality.Selecting |
| Dim myLocalities = From loc In dc.Localities Order By loc.Customer.Name, loc.Name Select loc |
| 'Search |
| Dim serachString As String = String.Empty |
| Dim searchTextBox As RadTextBox = CType(CType(RadToolBar1.FindButtonByCommandName("searchText"), RadToolBarButton).FindControl("txtSearch"), RadTextBox) |
| If searchTextBox IsNot Nothing AndAlso searchTextBox.Text <> String.Empty Then |
| myLocalities = myLocalities.Where(Function(q) _ |
| q.CustomerID.ToString.Contains(searchTextBox.Text.Trim) Or _ |
| q.Comment.Contains(searchTextBox.Text.Trim) Or _ |
| q.Comment2.Contains(searchTextBox.Text.Trim) Or _ |
| q.Name.Contains(searchTextBox.Text.Trim)) |
| End If |
| e.Result = myLocalities |
| End Sub |
| <telerik:RadComboBox ID="cmbUC" runat="server" Height="230px" Width="230px" |
| DropDownWidth="215px" EmptyMessage="Select an UC" HighlightTemplatedItems="true" |
| EnableLoadOnDemand="true" OnItemsRequested="cmbUC_ItemsRequested" ShowWhileLoading="true"> |
| <HeaderTemplate> |
| <table style="width: 200px" cellspacing="0" cellpadding="0"> |
| <tr> |
| <td style="width: 40px;"> |
| Plates</td> |
| <td style="width: 160px;"> |
| UC</td> |
| </tr> |
| </table> |
| </HeaderTemplate> |
| <ItemTemplate> |
| <table style="width: 200px" cellspacing="0" cellpadding="0"> |
| <tr> |
| <td style="width: 40px;"> |
| <%# DataBinder.Eval(Container, "Text")%> |
| </td> |
| <td style="width: 160px;"> |
| <%# DataBinder.Eval(Container, "Attributes['uc']")%> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| </telerik:RadComboBox> |
| <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="cmbUC" |
| ErrorMessage="!" CssClass="validator"> |
| </asp:RequiredFieldValidator> |
| protected void cmbUC_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) |
| { |
| Tbl01UCCollection _uccollection = new Tbl01UCCollection(); |
| _uccollection = cTbl01UC.UnidadCargaCollectionLoadFilter(Convert.ToInt32(Session["sesCompany"]), e.Text); |
| foreach (Tbl01UC _uc in _uccollection) |
| { |
| RadComboBoxItem item = new RadComboBoxItem(); |
| item.Text = _uc.Plates; |
| item.Value = _uc.Rowid.ToString(); |
| item.Attributes.Add("uc", _uc.Descripcion); |
| cmbUCItems.Add(item); |
| item.DataBind(); |
| } |
| } |
I am using a RadWindow to show a wizard style dialog. On the page I have a RadMultiPage and on each pageview I have the controls and navigation buttons.
The first pageview contains two RadListBoxes. The first one has autopostback set to true and on the Check event I populate the second listbox. I have these ajaxified as follows:
| <telerik:AjaxSetting AjaxControlID="rlbList1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="rlbList1" /> |
| <telerik:AjaxUpdatedControl ControlID="rlbList2" /> |
| <telerik:AjaxUpdatedControl ControlID="lblErrorText" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="btnNext"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="btnNext" LoadingPanelID="rlpDisable" /> |
| <telerik:AjaxUpdatedControl ControlID="btnCancel" LoadingPanelID="rlpDisable" /> |
| <telerik:AjaxUpdatedControl ControlID="rlbList1" /> |
| <telerik:AjaxUpdatedControl ControlID="rlbList2" /> |
| <telerik:AjaxUpdatedControl ControlID="rmpMain" /> |
| <telerik:AjaxUpdatedControl ControlID="lblPage1ErrorText" /> |
| <telerik:AjaxUpdatedControl ControlID="lblPage2ErrorText" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| if (rlbList2.CheckedItems.Count == 0) |
| { |
| lblErrorText.Text = "At least one item must be selected."; |
| } |
| else |
| { |
| //Populate items on the second page using selected items on first page |
| _PopulateListOnPage2(rlbList2.CheckedItems.Select(p => p.Value).ToArray()); |
| rmpMain.SelectedIndex = 1; |
| } |
radalert("Saved Successfully.", 400, 150,
"Title");
window.location.href =
"Common.aspx";
Here the problem is before i click on OK button shown in Radalert, it is getting redirected to Common.aspx.
How to avoid this? I want to remain in the same page till i click on OK.
Note: This doesnt happen in default alert.
Thank You.
| <ul> |
| <li> |
| <div style="text-align: left;"> |
| BLAH BLAH BLAH BLAH<span style="font-family: arial; font-size: 10px;">6 |
| <div> |
| </div> |
| <li> |
| <div style="text-align: left;"> |
| </div> |
| </li> |
| </span> |
| </div> |
| </li> |
| </ul> |

