Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
155 views
Hi
I am using radgrid with the automatically generated popup edit form.
One of the fields displays the 'Last_Edit' date recorded in the database.
When the edit form 'UPDATE' link is clicked I want to save the current date instead of the
database value.
How can I best do this? 

Thanks for you help!

Clive
Dimo
Telerik team
 answered on 29 Dec 2008
3 answers
127 views
I am trying to embed a Youtube video using the RADEditorPlaceHolder control version 4.1.5 in MCMS 2002. I have tried what was recomended in the thread Javascript Stripping but it didn't work, as tags in the javascript are still bein g stripped out.
Is there a way to do this with version 4.1.5 of the RadEditorPlaceholderControl

Thanks
Georgi Tunev
Telerik team
 answered on 29 Dec 2008
3 answers
81 views
I am trying to add Google analytics to track attachments that are added within a RadEditorPlaceHolderControl version 4.1.5 in MCMS 2002.
eg

<a href="http://www.example.com/files/map.pdf" onClick="javascript: pageTracker._trackPageview('www.mysite.com/files/myfile.pdf'); ">


Is there a way to do this without having some of the tags in the javascript being stripped off.

Thanks
Georgi Tunev
Telerik team
 answered on 29 Dec 2008
5 answers
171 views
I am mimicking the grid style as demoed here. In Firefox this works great, is extremely responsive and behaves as I would expect. In IE8 though (and probably the others although I haven't been able to test them yet), running over the items in the list is very slow and I noticed my processor usage jumps to around 70% whenever I do this. My grid is very basic and looks like this:

    <telerik:RadGrid runat="server" ID="grdResults" AutoGenerateColumns="false" Width="100%" HorizontalAlign="Center" Skin="Gray" GridLines="None"> 
        <MasterTableView Width="100%" GridLines="None" CommandItemDisplay="None" DataKeyNames="ParcelNUmber"> 
            <Columns> 
                <telerik:GridBoundColumn DataField="ParcelNumber" HeaderText="Property #" UniqueName="ParcelNumber" /> 
                <telerik:GridBoundColumn DataField="Owner" HeaderText="Owner" /> 
                <telerik:GridBoundColumn DataField="Location" HeaderText="Location" /> 
                <telerik:GridBoundColumn DataField="Legal" HeaderText="Legal" /> 
                <telerik:GridBoundColumn DataField="Acres" HeaderText="Acres" /> 
            </Columns> 
        </MasterTableView> 
        <ClientSettings EnableRowHoverStyle="true"> 
            <ClientEvents OnRowDblClick="viewParcel" />             
            <Selecting AllowRowSelect="true" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
 

Do you have any suggestions as to what I can do to make the performance of hovering in IE the same as it is FF?


Dimo
Telerik team
 answered on 29 Dec 2008
4 answers
129 views
Hi,

i try to call RadWindow in Grid..

this is my codes ,why i cant call RadWindow with hyperlink ?,why my code doesnt working?

thx..


 

<script type="text/javascript">

 

 

 

 

function closeWin()

 

{

 

var oWnd = GetRadWindow();

 

oWnd.close();

}

 

 

function ShowPricesTable(j,op1)

 

{

 

var oWnd = window.radopen("Prices.aspx?catId="+j+"&id="+op1, "PricesTable");

 

oWnd.SetUrl(oWnd.GetUrl());

}

 

 

</script>

 



 

<asp:GridView ID="gw" runat="server" AllowPaging="True" AutoGenerateColumns="False"

 

 

ShowHeader="False" CssClass="Listing" GridLines="None" OnRowDataBound="gv_RowDataBound">

 

 

<Columns>

 

 

<asp:TemplateField>

 

 

<ItemTemplate>

 

..........................

 

<asp:HyperLink ID="hlPriceType" Visible="false" runat="server" NavigateUrl="#" onclick='ShowPricesTable("<%#Eval("PRICEID")%>","<%#Eval("CATID")%>");return false;'>select</asp:HyperLink>
....................................................

i try to aspnetbottın onclick but again have a problem



 

<

rad:RadWindowManager ID="rwmamanger" runat="server" Behavior="Close,Move" VisibleStatusbar="False"

 

 

 

 

OnClientClose="closeWin" Width="640px" Height="500px" Skin="GUH" SkinsPath="~/App_Themes/default/Skins/Window"

 

 

 

 

RadControlsDir="RadControls/">

 

 

 

 

<Windows>

 

 

 

 

<rad:RadWindow ID="FiyatTablosu" Modal="True" runat="server" Title="Fiyat Tablosu"

 

 

 

 

Left="" NavigateUrl="" Skin="GUH" SkinsPath="~/App_Themes/default/Skins/Window"

 

 

 

 

Top=""></rad:RadWindow>

 

 

 

 

</Windows>

 

 

 

 

</rad:RadWindowManager>

 

Georgi Tunev
Telerik team
 answered on 29 Dec 2008
1 answer
58 views

<> operator is not supporiting in  "Telerik.WinControls.UI.RadDateTimeEditor"
i have copied this code same as the given in Telerik dacumentation yet i am receiving the error. pls give me a best code as soon as possible. thnks

 

Imports

Telerik.WinControls.UI.RadDateTimeEditor

 

 

Private

Sub RadGridView1_EditorRequired(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.EditorRequiredEventArgs) Handles RadGridView1.EditorRequired

 

 

Dim dateTimeEditor As RadDateTimeEditor = TryCast(e.Editor, RadDateTimeEditor)

 

 

If dateTimeEditor <> Nothing Then

 

 

DirectCast(dateTimeEditor, RadDateTimePickerElement).Format = DateTimePickerFormat.[Short]

 

 

End If

 

 

End Sub

 

Martin Vasilev
Telerik team
 answered on 29 Dec 2008
1 answer
72 views
Can anyone please explain a fix for this?

http://demos.telerik.com/aspnet-ajax/Scheduler/Examples/Skinning/DefaultCS.aspx

Select the Outlook demo.

On the Hours Panel the times are aligned to the right and all of them are cut off.  Also there are faint blue lines seperating the time lables.

Not sure if the blue lines are supposed to be there but the am/pm being slightly cut off does not seem right.

Thanks.
Kamen Bundev
Telerik team
 answered on 29 Dec 2008
12 answers
432 views
I can't seem to get GridLines to align with the grid header columns.
I've tried a couple of skins (Hay and Office2007), with and w/o the GridLines property set, but the columns still get skewed.

I have table layout: fixed with Scrolling and sorting enabled if that matters.

Thanks,
Eric
Dimo
Telerik team
 answered on 29 Dec 2008
5 answers
268 views
I have a Rad Rotator on my page and it's datasource can have multiple records or perhaps just one.  Each record has about 35 fields that need to be displayed in an itemized receipt format.  I want the rotator to display a "receipt" for each record and the user to navigate through the receipts one at a time by clicking the button.  How can I achieve this?  It seems to concatenate all of the field values from all records on the same line and looks ugly.

If this can be done with the rotator it would be great but I've never used the rotator before so I'm struggling with how to apply it to this situation.

A VB.NET sample would be appreciated.

Thanks.
Acadia
Top achievements
Rank 1
Iron
 answered on 29 Dec 2008
3 answers
278 views
I have a web page containing a user control which itself contains another user control.  The page contains an Ajax Manager and both user controls define their own Ajax Manager Proxies.

The top level user control shows or hides the nested user control based on the value of a combo box.  The nested user control also shows or hides a text box based on the value of a combo box.  When I select the option in the combo box of the root user control to display the nested user control and then select the value of the combo box in the nested user control to display the text box in the nested user control I get a javascript "'Undifined' is null or not an object" error and I don't know why.

Here's the contents of the page (nothing in the code behind):
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Src="WebUserControl1.ascx" TagName="uc1" TagPrefix="top" %> 
 
<!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 runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
      
    <top:uc1 ID="UserControl1" runat="server" /> 
      
    <telerik:RadAjaxManager ID="DefaultRadAjaxManager" runat="server" />      
    </form> 
</body> 
</html> 

Here's the contents of the UserControl1:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="WebApplication1.WebUserControl1" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Src="WebUserControl2.ascx" TagName="uc2" TagPrefix="nested" %> 
 
This controls visibility of nested user control.<br /> 
<telerik:RadComboBox ID="name" runat="server" AutoPostBack="true" OnSelectedIndexChanged="name_SelectedIndexChanged">  
    <Items> 
        <telerik:RadComboBoxItem Text="Hide nested control" Value="1" Selected="true" /> 
        <telerik:RadComboBoxItem Text="Show nested control" Value="2" /> 
    </Items> 
</telerik:RadComboBox> 
                          
<asp:Panel ID="somePnl" runat="server" style="display:none;">  
    <nested:uc2 ID="UserControl2" runat="server" /> 
</asp:Panel> 
 
<telerik:RadAjaxManagerProxy ID="uc1Proxy" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="name">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="somePnl" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
Here's the code behind file for the above user control:
using System;  
using System.Web;  
using Telerik.Web.UI;  
 
namespace WebApplication1  
{  
    public partial class WebUserControl1 : System.Web.UI.UserControl  
    {  
        protected void name_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
        {  
            if (name.SelectedValue=="1")  
                somePnl.Style["display"] = "none";  
            else 
                somePnl.Style["display"] = "block";  
        }  
    }  
} 

Here's the nested user control and code behind:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl2.ascx.cs" Inherits="WebApplication1.WebUserControl2" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<br /> 
This controls visibility of text box.<br /> 
<telerik:RadComboBox ID="phoneSelect" runat="server" AutoPostBack="true" onselectedindexchanged="phoneSelect_SelectedIndexChanged">  
    <Items> 
        <telerik:RadComboBoxItem Text="Show text box" Value="-1" /> 
        <telerik:RadComboBoxItem Text="" Value="" Selected="true" /> 
        <telerik:RadComboBoxItem Text="(123)555-1234" Value="(123)555-1234" /> 
    </Items> 
</telerik:RadComboBox> 
 
<asp:Panel ID="phoneNumberPnl" runat="server" style="display:none;">  
    <telerik:RadNumericTextBox ID="phoneNumber" runat="server" 
        MaxLength="20" 
        Width="160" /> 
</asp:Panel> 
 
<telerik:RadAjaxManagerProxy ID="uc2Proxy" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="phoneSelect">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="phoneNumberPnl" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
using System;  
using System.Web;  
using System.Web.UI;  
 
namespace WebApplication1  
{  
    public partial class WebUserControl2 : System.Web.UI.UserControl  
    {  
        protected void phoneSelect_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)  
        {  
            if (phoneSelect.SelectedValue != "-1")  
                phoneNumberPnl.Style["display"] = "none";  
            else 
                phoneNumberPnl.Style["display"] = "block";  
        }  
    }  
} 

 

Note that I'm using ASP Panels and setting style attributes to show and hide because the actual app needs all the controls to be actually present on the form.

Am I doing something wrong or is this a bug?

Maria Ilieva
Telerik team
 answered on 29 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?