Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
153 views

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?

Harshal
Top achievements
Rank 1
 answered on 07 Jan 2011
0 answers
53 views
Hi,
I am using RadTabStrip + RadMultiPage and it i am using Telerik 2008.2.826.20 version.
I coverted the classic RadTabStrip.Net2 to Telerik 2008.2.826.20. After that it started throwing javascript error "Children" is null or not an object.
The error occures in Telerik.Web.UI.WebResource.axd. (var _bd=_ba.children||_ba.childNodes;) where _ba is null.

Any help is appreciated.

Thanks,
Harshal.
Harshal
Top achievements
Rank 1
 asked on 07 Jan 2011
3 answers
107 views
Hi.

Our timeline view currently renders as shown in render.png. The appointments shown as "A" and "N" in the picture are supposed to be the same schedule, but due to differences the way our scheduling system works and the RadScheduler works, I have to create them as several separate appointments. The "A"s all share the same ScheduleID, same for the "N"s, if that helps. The way it renders is pretty useless, though. The "A"s don't all show up on the same line; same for the "N"s.

In desired-render.png I've created a mock-up of how I would like it to look. So my question is, given the parameters above (separate appointments that actually are supposed to be the same), can I get the RadScheduler to render it as in desired-render.png?
Peter
Telerik team
 answered on 07 Jan 2011
3 answers
127 views
Hi

I am trying to set the following scenario:
Set RadTabStrip with TabTemplate defined, tabs are generated by supplying DataSource. the property NavigateUrlField is set either on RadTabStrip tag or on RadDataBinding node.
At run time on Page_Init, or Page_Load - I supply DataSource and call DataBind(). After this call, on CodeBehind side (in debug mode), I can see tabs generated with NavigateUrl property correctly filled. However, when control is rendered on the page and I click on Tab, nothing happens. Also - nothing in NavigateUrl found, when setting OnClientSelecting method and checking value of NavigateUrl by calling 

var tab = eventArgs.get_tab();
var url = tab.get_navigateUrl();

here variable url gets value "null"

I also tried setting NavigateUrl on TabDataBind event, same story....


Interestingly - if I remove TabTemplate block and set DataTextField, I get tabs created and NavigateUrl is not lost and works right. However, Tab consists of multiple items and it is needed to have TabTemplate there.

Also it is strange that setting explicitly NavigateUrl on client side, on event OnClientSelecting,  from passed Attributes, does not help:
var tab = eventArgs.get_tab();
var
attr = tab.get_attributes();
var url = attr.getAttribute("url");
tab.set_navigateUrl(url);

I managed to get required behaviour only as following, on event OnClientSelecting
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;
}


I found on this forum a thread as of 2008
http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/radtabstrip-templates-and-loading-in-iframe.aspx 
where person tried to do something similar and Tech Support person also had to use some similar hack by calling
window.open(url, target)

So I am curios, if over 2 years there was any fix for this behaiviour, or if am I doing something wrong?

Dmitry
Yana
Telerik team
 answered on 07 Jan 2011
2 answers
267 views
Hi Team,

Please let me know a way to Reorder RadGrid Rows on client side, just like column reorder functionality?
Saranya
Top achievements
Rank 1
 answered on 07 Jan 2011
4 answers
123 views
Hi,
Is it possible to apply group by at start up using code behind.?
I also would like to hide the column from the mastertableview if it is used for grouping.
Can anyone help me out with this...?
I am not creating RadGrid dynamically(AutoGenerateColumns=false) . I want to group by the columns that are in my mastertable. Basically i want
to bring the desired group by view on startup , without client requiring to drag the columns at runtime.
Thanks and Regards,
Niraj Khose
Niraj
Top achievements
Rank 1
 answered on 07 Jan 2011
1 answer
300 views
Hello,

Having established an Radlistbox, with buttons for adding, deleting, I would like to know how to avoid the page refresh for every action on these buttons. As show in the demos Radlistbox.
To finally be able to encode dynamic additions of buttons in JavaScript.

Thank you.
Yana
Telerik team
 answered on 07 Jan 2011
7 answers
143 views
I have a list that contains images, links, repeaters, and regular labels.

When I export to excel in HTML-mode (with OnlyData=true), everything except the labels gets stripped.

Is there someway I can tell the export to export everything, without getting broken images, links and such, everything converted to text, plain text?
Anne
Top achievements
Rank 1
 answered on 07 Jan 2011
4 answers
144 views

<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>
&nbsp;

</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>
&nbsp;
</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>&nbsp;
 

<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

 

 

Rama
Top achievements
Rank 1
 answered on 07 Jan 2011
1 answer
134 views

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" %>
  
<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>

Frame1.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Frame1.aspx.vb" Inherits="Frame1" %>
  
<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>

frame2.aspx
<%@ 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">
  
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    Frame 2
    </div>
    </form>
</body>
</html>
Georgi Tunev
Telerik team
 answered on 07 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?