Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 views
Hi,
I seem to be having an issue putting a web user control within the tabstrip.  The user control is a based form layout.  Is there something that I'm missing.  Here is the HTML code:

Thanks,
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title></title>  
    <link id="UICSS" rel="stylesheet" type="text/css" href="../Styles/ui.css" /> 
    <style type="text/css">  
        html, body, form  
        {  
            height: 100%;  
            margin: 0px;  
            padding: 0px;  
            overflow: hidden;  
        }  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadTabStrip ID="RadTabStrip3" runat="server" Skin="Office2007" Width="100%" 
        MultiPageID="RadMultiPage1" SelectedIndex="0">  
        <Tabs> 
            <telerik:RadTab Text="Lead Details">  
            </telerik:RadTab> 
            <telerik:RadTab Text="Life Insurance">  
            </telerik:RadTab> 
        </Tabs> 
    </telerik:RadTabStrip> 
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
        <telerik:RadPageView runat="server" ID="RadPageView1">  
           <uc2:LeadDetails ID="LeadDetails1"   
                runat="server" /> THIS IS WHERE I LOAD THE CONTROL  
        </telerik:RadPageView> 
        <telerik:RadPageView runat="server" ID="RadPageView2">  
            My Life Insurance  
        </telerik:RadPageView> 
    </telerik:RadMultiPage> 
    </form> 
</body> 
</html> 
Atanas Korchev
Telerik team
 answered on 15 Jun 2009
1 answer
89 views

Hello

I have a custom validator attached to a column.  Here is the item_created event

  protected void radDeferredIncome_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem item = e.Item as GridEditableItem;
                GridTextBoxColumnEditor editor = (GridTextBoxColumnEditor)item.EditManager.GetColumnEditor("AdvanceVarianceComment");
                TableCell cell = (TableCell)editor.TextBoxControl.Parent;
 
                GridNumericColumnEditor proposed = (GridNumericColumnEditor)item.EditManager.GetColumnEditor("ProposedAdvanceTargetAmount");
                GridNumericColumnEditor expected = (GridNumericColumnEditor)item.EditManager.GetColumnEditor("ExpectedAdvanceTargetAmount");
 
                CustomValidator val = new CustomValidator();
                editor.TextBoxControl.ID = "AdvanceVarianceComments";
 
                val.ControlToValidate = editor.TextBoxControl.ID;
                val.ErrorMessage = "*";
                val.Attributes.Add("proposed", proposed.NumericTextBox.ClientID);
                val.Attributes.Add("expected", expected.NumericTextBox.ClientID);
                val.ClientValidationFunction = "advanceVarianceValidation";
                cell.Controls.Add(val);
            }
        }  

I am using in-grid editing. I am passing in 2 attributes that are the clientId's of the 2 textboxes i need to compare. Basically, If the difference
between the 2 textboxes is not zero and a comments textbox is blank that the row is not valid.

The javascript is below.


<

 

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

<script type="text/javascript" language="javascript">

 

 

function advanceVarianceValidation(sender, args) {

 

 

var isValid = true;

 

 

var proposed = document.getElementById(sender.attributes["proposed"].value).value;

 

 

var expected = document.getElementById(sender.attributes["expected"].value).value;

 

alert(proposed +

',' + expected);

 

 

if ((proposed - expected) != 0) {

 

 

if (args.value == null || args.value.length == 0) {

 

isValid =

false;

 

}

}

 

args.IsValid = isValid;

}

 

</script>

 

 

</telerik:RadCodeBlock>


This works if i am editing the first row but the validation does not fire if i am editing any other.

Anyone have any ideas.



Thanks,


John

 

Georgi Krustev
Telerik team
 answered on 15 Jun 2009
3 answers
118 views
I would like to have a custom edit button in the appointment template of the calendar.  It's fairly simple to get the scheduler to display the edit form on the button click.  However, I would like for the "edit this series/edit this occurrence" box to display when the edit button is clicked on a recurring appointment.  Basically, I would like the edit button in the appointment template to perform exactly the same way as double clicking the appointment.  Any help you could provide would be helpful!

Thanks,
Laura
Veselin Vasilev
Telerik team
 answered on 15 Jun 2009
1 answer
85 views
Hello I am using radtoolbar when view with firefox i see some small black squares. Are there way to fix it? 
Atanas Korchev
Telerik team
 answered on 15 Jun 2009
3 answers
200 views
Hi Everyone,

I am reusing a Radwindow in various places as a modal popup, the problem is if someone presses the backspace key when there is no control with focus the popup loads the contents of the last time the popup was used.
Is there anyway to stop this from happenning?
I assume it has to do with Browser history, is there a way to tell the window not to add the URL into the history each time the window is displayed?

Any ideas welcomed

Antony
Georgi Tunev
Telerik team
 answered on 15 Jun 2009
1 answer
111 views
Hello,

I've been trying to use the RadProgressArea in one of our web apps and haven't been able to get it to work.  I traced the problem down to an event we're firing to execute a custom context resolver, that passes the Request.Params collection.  If I remove the event code the progress area works fine.

I've pasted below a sample that illustrates this bug. 

I created an ASP.NET 2.0 web site, and here is the default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.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"> 
            </telerik:RadScriptManager> 
            <br /> 
            &nbsp;<telerik:RadUpload ID="RadUpload1" runat="server" TargetFolder="Uploads"> 
            </telerik:RadUpload> 
            <br /> 
            <asp:Button ID="Button1" runat="server" Text="Upload" /><br /> 
            <telerik:RadProgressManager ID="RadProgressManager1" runat="server" /> 
            <br /> 
            <telerik:RadProgressArea ID="RadProgressArea1" runat="server"> 
            </telerik:RadProgressArea> 
             
    </form> 
</body> 
</html> 

I used the SmartTag feature to set up my Web.Config and ran the project.  The upload worked fine, and the Progress Area appeared as expected.

I then created this class:



using System; 
using System.Collections.Specialized; 
using System.Web; 
 
public class OverrideApp : HttpApplication 
{ 
    public OverrideApp() 
    { 
        PostResolveRequestCache += PopulateContext; 
    } 
 
    public void PopulateContext(object sender, EventArgs e) 
    { 
        Object context = new object(); 
        BuildContext(context, Request.Params); 
    } 
 
    private void BuildContext(object context, NameValueCollection nameValueCollection) 
    { 
        return; 
    } 
} 
 

and added this to my Global.asax:
<%@ Application Language="C#" Inherits="OverrideApp" %> 

Now if I run the project, the file upload still works but the Progress Area does not appear.

I am using the latest Telerik build, ASP.NET AJAX for 5/27/2009.  The file I am uploading is 78MB in size, and takes a couple seconds on a localhost, long enough to see the progress area appear.

Please advise if there is any work around, because as it stands we can't use the control in our web applications because of this issue.

Thanks,
-Chris
Atanas Korchev
Telerik team
 answered on 15 Jun 2009
1 answer
42 views
Hi

on one page I have three radgrids so is it possible to export what is displayed on screen to excel ? using export to excel methods

many Thanks

Tony
Daniel
Telerik team
 answered on 15 Jun 2009
0 answers
127 views
In the article "HTML Techniques for Web Content Accessibility Guidelines 1.0" issued by the W3C on 6 November 2000 there are specific guidlines on rendering HTML elements.

My client is specifically interested in section 5.1.1 "Providing summary information" which relates to rendering of "summary" tag for a "table" element and section 5.1.2 "Identifying rows and column information" which relates to rendering of headers in one of the mentioned formats.

I have noticed that the RadScheduler renders several table elements not in compliance with these recommendations and I'm wondering if anybody can give me a pointer on how to implement these.

Thank you in advance.

Dragan B.

PS: using Web20 skin and a week view as the starting one if that matters at all.
Dragan
Top achievements
Rank 1
 asked on 15 Jun 2009
1 answer
55 views
I have a simple setup with a div of a single toolbar in top div.  THe second div contains spitter,2 panes, splitterbar.
Pane 1 contains PanelBar which when clicked sets the contenturl for pane2.  What I want to know if I make a change in the pane2 url is there a way to get to the dcom in the head div from the main page.  IE if content is edited in pane2 I wish to enable the save button in the toolbat in div 1 of the main page.

Main.aspx


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="AudWeb.Main" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!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></title>  
    <script type="text/javascript">  
      
      function pageLoad() {  
      }  
      
    </script> 
    <style type="text/css">  
    html, body, form       
    {       
    height: 100%;   
    padding: 0px;  
    margin: 0px;      
        
    }  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <div style="height:5%;">  
 
        <telerik:RadToolBar ID="RadToolBar1" runat="server" Skin="Vista" Width="100%">  
            <Items> 
                <telerik:RadToolBarButton runat="server" Text="Button 0">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Text="Button 1">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Text="Button 2">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Text="Button 3">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Text="Button 4">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Text="Button 5">  
                </telerik:RadToolBarButton> 
            </Items> 
        </telerik:RadToolBar> 
    </div> 
    <div id="ParentDivElement" style="height:95%;">  
        <telerik:RadSplitter ID="RadSplitter1" runat="server" LiveResize="True"   
            Height="100%" Width="100%">  
 
        <telerik:RadPane ID="RadPane1" runat="server"   
                MinHeight="0" MinWidth="200" MaxWidth="200" Width="200px">  
            <telerik:RadPanelBar ID="RadPanelBar1" Runat="server"   
                onitemclick="RadPanelBar1_ItemClick" Width="200px" Skin="Vista">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Text="Client" Value ="1">  
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem runat="server" Text="Appointments" Value ="2">  
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem runat="server" Text="Visits" Value ="3">  
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem runat="server" Text="Hearing Aids" Value ="4">  
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelBar> 
        </telerik:RadPane> 
        <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" /> 
        <telerik:RadPane ID="RadPane2" runat="server" ContentUrl="http://www.google.com">  
        </telerik:RadPane> 
                </telerik:RadSplitter> 
    </div> 
    </form> 
</body> 
</html> 
 

Code Behind

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using Telerik.Web.UI;  
 
namespace AudWeb  
{  
    public partial class Main : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
 
        }  
 
        protected void RadPanelBar1_ItemClick(object sender, Telerik.Web.UI.RadPanelBarEventArgs e)  
        {  
 
            RadPanelItem Itemclicked = e.Item;  
            string name = Itemclicked.Value;  
            int n = int.Parse(name);  
 
 
            switch (n)  
            {  
                case 1:  
                    RadPane2.ContentUrl = @"~\Client.aspx";  
                    break;  
                case 2:  
                    RadPane2.ContentUrl = @"~\Appointment.aspx";  
                    break;  
                case 3:  
                    RadPane2.ContentUrl = @"~\Visit.aspx";  
                    break;  
                case 4:  
                    RadPane2.ContentUrl = @"~\HA.aspx";  
                    break;  
                   
 
            }  
               
 
            //RadPane2.ContentUrl = @"~\" + Itemclicked.Text + ".html";  
        }  
    }  
}  
 


Thanks for any help.  Would it be better to use a master page?  I am trying to make it flicker free as possible.
Svetlina Anati
Telerik team
 answered on 15 Jun 2009
1 answer
129 views
Hi,
I'm linking a radtooltip to a panel (actually adding panels and a corresponding radtooltip to the panel in a loop) which is placed inside of a placeholder.  On initial page load it works as expected, but when the page does an Ajax Update on a Timer Tick event, the radtooltips disappear.

code behind:
 public void ShowListings(XmlDocument doc) 
    { 
        XmlNodeList nodes = doc.GetElementsByTagName("result"); 
         
        foreach (XmlNode node in nodes) 
        { 
    Panel pnl = new Panel(); 
            pnl.Controls.Add(new LiteralControl("panel")); 
            PlaceHolder1.Controls.Add(pnl); 
 
    Telerik.Web.UI.RadToolTip rtt = new Telerik.Web.UI.RadToolTip(); 
            rtt.Width = pnl.Width; 
            rtt.ShowEvent = Telerik.Web.UI.ToolTipShowEvent.OnClick; 
            rtt.ShowCallout = true; 
            rtt.TargetControlID = pnl.ClientID; 
            rtt.Text = "test"; 
            rtt.RelativeTo = Telerik.Web.UI.ToolTipRelativeDisplay.Element; 
            rtt.Animation = Telerik.Web.UI.ToolTipAnimation.Slide; 
            rtt.Skin = "Sunset"; 
            rtt.OffsetY = -12; 
            rtt.HideEvent = Telerik.Web.UI.ToolTipHideEvent.ManualClose; 
            rtt.HideDelay = 100; 
            rtt.ShowDelay = 100; 
 
            PlaceHolder1.Controls.Add(rtt); 
} 
} 

aspx:
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>     
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline"> 
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="Timer1"> 
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="LoadingPanel1" />    
                        </UpdatedControls> 
                    </telerik:AjaxSetting>                     
                </AjaxSettings> 
            </telerik:RadAjaxManager> 

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">     
    </telerik:RadAjaxPanel>

      <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Skin="Vista"/> 
 
    <asp:Panel ID="Panel1" runat="server">             
        <asp:Timer ID="Timer1" runat="server" Interval="15000" OnTick="Timer1_Tick" /> 
     </asp:Panel> 

Svetlina Anati
Telerik team
 answered on 15 Jun 2009
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?