I have been running Rad controls on my development machine with no problems at all, i tried to install the project at staging environement. unfortunately, whenever i try to run a certain page I get a javascript error in webresource.axd file.
the page that i'm trying to view has Radtabstrip, Muiltpage control, RadAjax & other Rad controls. I'm not sure what is causing this javascript error, but at some point while trying to debug it stops at a line where it points to TabStrip.
any one facing this issue?
var tab = eventArgs.get_tab();var url = tab.get_navigateUrl();
var tab = eventArgs.get_tab();
var attr = tab.get_attributes();var url = attr.getAttribute("url");tab.set_navigateUrl(url);var tab = args.get_tab();var attr = tab.get_attributes();var url = tab.get_navigateUrl();if (url == null) { url = attr.getAttribute("url"); document.URL = url;}window.open(url, target)<EditFormSettings EditColumn-UpdateText="Update" EditColumn-ButtonType="ImageButton" PopUpSettings-Modal="true" InsertCaption="Add new item" CaptionFormatString="ITAdmin: {0} " CaptionDataField="EmployeeName" EditFormType="Template">
<FormTemplate>
<table id="tblUs" cellspacing="1" cellpadding="1" width="250" border="0">
<tr><td></td><td></td></tr><tr><td></td><td>
<table width="245px" id="TBLUSERS" border="0" cellspacing="0" cellpadding="0">
<tr><td>
<asp:TextBox ID="GridtxtSearch" runat="server" Width="175px"></asp:TextBox>
<asp:Button ID="GrdbtnGo" runat="server" OnClick="Populate" Text="Go" />
<asp:Label Visible="false" runat="server" ID="hdnId" Text='<%#Eval("id") %>' />
<asp:Label Visible="false" runat="server" ID="hdnSiteName" Text='<%#Eval("Name") %>' />
<asp:Label Visible="false" runat="server" ID="hdnITAdminName" Text='<%#Eval("EmployeeName") %>' />
<asp:Label Visible="false" runat="server" ID="hdnITAdminId" Text='<%#Eval("ITAdminId") %>' />
</td> <td>
</td>
</tr>
<tr>
<td>
Entity : <asp:DropDownList ID="drpSiteCode_" AppendDataBoundItems="true" runat="server" AutoPostBack="false">
<asp:ListItem Value="-">Select --</asp:ListItem>
</asp:DropDownList>
<span style="color: Red">
<asp:RequiredFieldValidator ID="rfvSite" runat="server" ControlToValidate="drpSiteCode_"
ErrorMessage="Please select an Entity" ValidationGroup="rfGrdSiteCode" InitialValue="-" Font-Size="Smaller"></asp:RequiredFieldValidator>
</span>
</td>
<td>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td>
<asp:ListBox Width="233px" ID="GrdlstallNetIds" runat="server" SelectionMode="Single"
Height="270px"></asp:ListBox>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lbNoRecordsExistMyRequestsf" runat="server" Font-Size="Smaller"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td align="right" colspan="2">
<asp:Button ValidationGroup="rfGrdSiteCode" ID="Button2" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'
runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'>
</asp:Button>
<asp:Button ID="Button3" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
</asp:Button>
</td>
</tr>
</table>
</FormTemplate>
<FormTableItemStyle Width="100%" Height="29px"></FormTableItemStyle>
<FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2"></FormTableStyle>
<FormStyle Width="100%" BackColor="#eef2ea"></FormStyle>
<EditColumn ButtonType="ImageButton" />
<PopUpSettings Modal="true" />
</EditFormSettings>
When btnGo is Clicked ,
I want to get the GridtxtSearch value to repopulate the GrdlstallNetIds everytime.But always when the First row in the Grid is selected , I can able to get the GridtxtSearch value , Can u help me to check how to get the selected griditem
GridtxtSearch value?
Protected Sub Populate()
Dim grditem As GridItem
grditem = rdGridSite.MasterTableView.GetItems(
GridItemType.EditFormItem)(0)
Dim txtSearch As TextBox = CType(grditem.FindControl("GridtxtSearch"), TextBox)
Dim hdnId As Label = CType(grditem.FindControl("hdnId"), Label)
Dim GrdlstallNetIds As ListBox = CType(grditem.FindControl("GrdlstallNetIds"), ListBox)
Try
Dim empDao1 As New EmployeeDAL()
Dim ds1 As New DataSet()
If txtSearch.Text = String.Empty Then
ds1 = empDao1.GetAllNetworkids()
Else
ds1 = empDao1.GetAllNetworkids(txtSearch.Text)
End If
Dim dt As New DataTable()
dt = ds1.Tables(0)
GrdlstallNetIds.DataSource = dt
GrdlstallNetIds.DataTextField = "DisplayName"
GrdlstallNetIds.DataValueField = "SamaccountName"
GrdlstallNetIds.DataBind()
Catch ex As Exception
Exit Sub
End Try
End Sub
Thanks
I'm using VS2010 .Net 4.0 and VB. I downloaded a small project I found on here that is supposed to demonstrate how to launch a radWindow so that it doesn't get stuck in the opening frame. It was called Frameset.zip. It was in C# but since there wasn't any server code converting it to VB was no big deal. Bottom line is it doesn't work. Every time I push the button to launch the radWindow I get the error:
Microsoft JScript runtime error: Object doesn't support this property or method
on the line:
top.radopen("http://www.google.com", "RadWindow1")
If I move:
<telerik:RadScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release" />
<telerik:RadWindowManager Modal="true" ID="Singleton" runat="server">
</telerik:RadWindowManager>
to frame1.aspx and change it to use window.radopen, the radWindow launches fine but it's stuck in the frame.
Here are my pages:
Default.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Untitled Page</title> </head> <frameset border="0" cols="200,*" frameborder="0"> <body> <telerik:RadScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release" /> <telerik:RadWindowManager Modal="true" ID="Singleton" runat="server"> </telerik:RadWindowManager> <frame name="contents" src="Frame1.aspx"> <frame name="main" src="Frame2.aspx"> </body> </frameset> </body> </html> <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Frame1.aspx.vb" Inherits="Frame1" %> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <script type="text/javascript"> function OpenWin() { top.radopen("http://www.google.com", "RadWindow1"); } </script> <input type="button" onclick="OpenWin()" value="Open RadWindow" /> </div> </form> </body> </html> <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Frame2.aspx.vb" Inherits="Frame2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> Frame 2 </div> </form> </body> </html>