or
Hi,
We have Asp.net 4.5 and using Telerik WebUI version 2012.3.1308.45.
Using
telerik:RadScriptManager as our main script manager.
Page is loading very slow and We got waiting for ajax.aspnetcdn.com.. message.
How can we create local fall back for JQuery and other JavaScript files required by ajax toolkit?
Best Regards,
Damodar
function radComboBoxLocationSelectedIndexChanged(item) { resetRadComboboxWithCheckBox('<%=radComboBox1.ClientID %>'); } function resetRadComboboxWithCheckBox(comboBoxClientId) { var d = $find(comboBoxClientId); d.set_text(""); d.clearSelection(); var items = d.get_items(); var itemsCount = items.get_count(); for (var itemIndex = 0; itemIndex < itemsCount; itemIndex++) { var item = items.getItem(itemIndex); var chk = getItemCheckBox(item); if (chk != null) { chk.checked = false; } } }       function getItemCheckBox(item) { //Get the 'div' representing the current RadComboBox Item. var itemDiv = item.get_element(); //Get the collection of all 'input' elements in the 'div' (which are contained in the Item). var inputs = itemDiv.getElementsByTagName("input"); for (var inputIndex = 0; inputIndex < inputs.length; inputIndex++) { var input = inputs[inputIndex]; //Check the type of the current 'input' element. if (input.type == "checkbox") { return input; } } } Current method not working so well as link buttons caus ethey so not persist well in radwindow. sql = "Select strUrl from PriorServiceUpload where intPriorServiceId = " & myDataTable.Rows(0)(0) myDataTable = New DataTable myDataTable = getReader(sql) If myDataTable.Rows.Count > 0 Then Dim attach As New LinkButton For Each row As DataRow In myDataTable.Rows attach.Text = row(0) & "<br>" attach.CausesValidation = False attach.CommandArgument = row(0) Next AddHandler attach.Click, AddressOf GetattachLink phAttach.Controls.Add(attach) End If
Protected Sub lnkSubmitRequest_Click(sender As Object, e As EventArgs) Handles lnkSubmitRequest.ClickCode to submit the pageThis statment reloads all the information on the page if its changed from the database LoadPriorService(Convert.ToInt32(HFRecruit.Value)) End If Private Sub LoadRecruit(ByVal recruitId As Integer)Reload the pageThis statement is where the FileExplorer is located on the LoadPriorService but I have no command to actually reload the control on a postback. LoadPriorService(recruitId) Else ScriptManager.RegisterClientScriptBlock(Page, GetType(Page), "OpenWindow", "NoData();", True) End If Private Sub LoadPriorService(ByVal recruit As Integer) ClearPriorSvc() sql = "Select intPriorServiceId, intBranchServiceId, dtDischarge, bitSF180, bitStaterequest, bitArpercen, bitredd, strNotes, dtSubmitted, submittedBy, dtCompleted, CompletedBy, strRocComments " _ & "from vw_PriorService where intRecruitId = " & recruit myDataTable = New DataTable myDataTable = getReader(sql) If myDataTable.Rows.Count > 0 Then HFPriorService.Value = myDataTable.Rows(0)(0) ddlBranchService.SelectedValue = myDataTable.Rows(0)(1) txtDtDischarge.Text = myDataTable.Rows(0)(2) If myDataTable.Rows(0)(3) = "1" Then cbSF180.Checked = True End If If myDataTable.Rows(0)(4) = "1" Then cbState.Checked = True End If If myDataTable.Rows(0)(5) = "1" Then cbArpercen.Checked = True End If If myDataTable.Rows(0)(6) = "1" Then cbREDD.Checked = True End If txtPriorNotes.Text = myDataTable.Rows(0)(7) lblSubmittedON.Text = myDataTable.Rows(0)(8) lblSubmittedBy.Text = myDataTable.Rows(0)(9) lblCompletedOn.Text = myDataTable.Rows(0)(10) lblCompletedBy.Text = myDataTable.Rows(0)(11) txtRocNotes.Text = myDataTable.Rows(0)(12) lnkSubmitRequest.Enabled = True Else lblSubmittedON.Text = "None Submitted" lblSubmittedBy.Text = "None Submitted" End If End SubHere is the code that loads the fileExplorer, it seems to only load on the initial page loads and bugs out on postback. Private Sub radFileExplorer_ExplorerPopulated(sender As Object, e As RadFileExplorerPopulatedEventArgs) Handles radExplorer.ExplorerPopulated 'If HFPriorService.Value > "" Then sql = "Select strUrl from PriorServiceUpload where intPriorServiceId = " & HFPriorService.Value myDataTable = New DataTable myDataTable = getReader(sql) If myDataTable.Rows.Count > 0 Then If e.ControlName = "grid" Then Dim items As List(Of FileBrowserItem) = e.List Dim i As Integer = 0 For Each row As DataRow In myDataTable.Rows While i < items.Count If Not items(i).Name.Contains(row(0)) Then items.Remove(items(i)) Else i += 1 End If End While Next End If End If 'End If End Sub
<telerik:RadButton ID="btnToggle" runat="server" ToggleType="CustomToggle" ButtonType="ToggleButton"> <ToggleStates> <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox" /> <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled" /> <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked" /> </ToggleStates></telerik:RadButton>