Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
I have a RadTimePicker control in a user control (ascx). When this is the only RadCalendar type control it works correctly. When a RadDatePicker is added to the user control, neither the TimePicker or DatePicker work (No popup).

The controls are within a dynamically created pageview.

We've attempted to use a shared calendar and Timeview control to no avail. We tried adding these controls to the ascx page and to the aspx page. Neither worked.

Would greatly appreciate any help in getting multiple controls to work is this scenario.

Thanks

Jacques

aspx segment of page which uses a master
<asp:Panel ID="pnlPreferences" runat="server" GroupingText="">  
    <table border="0">  
        <tr> 
            <td align="center">  
                 <telerik:RadTabStrip OnClientTabSelecting="onTabSelecting" ID="rtsDonorView" SelectedIndex="0" 
                    runat="server" MultiPageID="rmpDonorView" AutoPostBack="true"   
                    Orientation="HorizontalTop">  
                </telerik:RadTabStrip> 
                <telerik:RadMultiPage ID="rmpDonorView" runat="server" SelectedIndex="0" RenderSelectedPageOnly="true" > 
                </telerik:RadMultiPage>             
            </td> 
        </tr> 
      
    </table> 
</asp:Panel> 
 

partial code behind for aspx page
   Protected Overrides Sub OnLoadNonPostBack()  
        MyBase.OnLoadNonPostBack()  
 
        'TODO Add error checking and recovery to handle case that no DonorInformationID is supplied.  
        If Request("DonorInformationID") Is Nothing Then  
            'Throw New Exception("DonorInformationID must be supplied")  
        End If  
 
        '*******************************************************************************  
        '** hidden fields are losing their values when a tab is clicked.              **  
        '** Storing as viewstate in properties retains the values between tab selections  
        '*******************************************************************************  
        'hfDonorInformationID.Value = Request("DonorInformationID")  
 
        DonorInformationID = 1 'TODO Testing. Hidden fields are losing their values when a tab is clicked. Testing viewstate  
        PersonID = ent.DonorInformation.Include("Person") _  
            .GetByPk(DonorInformationID).Person.PersonID  
 
        AddTab("Donor Summary", "DonorSummary.ascx")  
        AddPageView(rtsDonorView.FindTabByValue("DonorSummary.ascx"))  
        AddTab("Donation History", "DonationHistory.ascx")  
        AddTab("Contact History", "ContactHistories.ascx")  
        AddTab("Campaigns", "Campaigns.ascx")  
        rtsDonorView.FindTabByValue("Campaigns.ascx").IsBreak = True 
 
        AddTab("Contact Information", "ContactInformation.ascx")  
 
        AddTab("Preferences", "Preferences.ascx")  
        AddTab("Concerns", "Concerns.ascx")  
 
        AddTab("Household", "Household.ascx")  
 
        Dim sTemplate = (From q In ent.Template _  
                       Where q.TemplateType.TemplateTypeID = 4 _  
                       Select q.Value _  
                       ).FirstOrDefault()  
 
        lblViewTemplate.Text = Utility.TemplateProcessing.ProcessTemplate(sTemplate, PersonID)  
    End Sub  
 
 
    Protected Sub rmpDonorView_PageViewCreated(ByVal sender As Object, _  
                                               ByVal e As RadMultiPageEventArgs) _  
                                               Handles rmpDonorView.PageViewCreated  
        Dim userControlName As String = e.PageView.ID  
        Dim userControl As DonorViewTab = Page.LoadControl("DonorViewControls/" & userControlName)  
        userControl.DonorInformationID = DonorInformationID  
        userControl.PersonID = PersonID  
        userControl.ID = e.PageView.ID & "_userControl"  
         e.PageView.Controls.Add(userControl)  
    End Sub  
 
    Protected Sub rtsDonorView_TabClick(ByVal sender As Object, _  
                                        ByVal e As RadTabStripEventArgs) _  
                                        Handles rtsDonorView.TabClick  
 
        If e.Tab.PageViewID.ToString = "" Then  
            AddPageView(e.Tab)  
        End If  
        e.Tab.PageView.Selected = True 
    End Sub  
 
    Private Sub AddTab(ByVal tabName As String, ByVal tabID As String)  
        Dim tab As RadTab = New RadTab  
        tab.Text = tabName 
        tab.Value = tabID 
        rtsDonorView.Tabs.Add(tab)  
    End Sub  
 
    Private Sub AddPageView(ByVal tab As RadTab)  
        Dim pageView As RadPageView = New RadPageView  
        pageView.ID = tab.Value  
        rmpDonorView.PageViews.Add(pageView)  
        tab.PageViewID = pageView.ID  
    End Sub  
 

partial code for ascx user control
     <tr> 
        <td align="right"><asp:Label ID="lblTime" runat="server" meta:ResourceKey="lblTime" CssClass="Label" /></td>  
        <td colspan="2" align="left">  
            <telerik:RadTimePicker ID="rtpCallPreference" runat="server"   
                Culture="English (United States)" SharedTimeViewID="RadTimeView1">  
                <TimePopupButton CssClass="" /> 
                <TimeView Interval="01:00:00">  
                </TimeView> 
                <DateInput LabelCssClass="" Width="">  
                </DateInput> 
                <Calendar UseColumnHeadersAsSelectors="True" UseRowHeadersAsSelectors="True">  
                </Calendar> 
                <DatePopupButton CssClass="" Visible="False" /> 
            </telerik:RadTimePicker> 
        </td> 
    </tr> 
        <tr> 
            <td align="right"><asp:Label ID="lblExpires" runat="server" meta:ResourceKey="lblExpires" CssClass="Label"></asp:Label> 
                  
            </td> 
            <td align="left">  
             <telerik:RadDatePicker ID="rdpExpires" Runat="server">  
                </telerik:RadDatePicker>     
            </td> 
        </tr> 
 
Maria Ilieva
Telerik team
 answered on 21 Aug 2008
3 answers
177 views
i have used to Rad tool tip with inside the Radgird.  i had used the image button to click and its show the tool tip on "click event". Tool Tip have the asp controls like (text boxes ,labels, image button) .If i had been clicked  to image button but doesn't fire the event. I had wrote full Updating functionality in image button "onclick" event.

For Example: Protected void Updating(Object sender,ImageClickEventArgs e)
{
    updating Logic....
}

My Doubt is Why doesn't work  this function?.....

i need the solution
Tsvetie
Telerik team
 answered on 21 Aug 2008
2 answers
127 views
Hi, i'm new to the controls and am just wondering if it's possable to add an image to the GroupByField or a checkbox at least for a project i'm doing any help would be appricated

David
Top achievements
Rank 1
 answered on 21 Aug 2008
3 answers
180 views
Hello,
 I have a default Dropdownlist with the ID="lstKostenart". Programmatically I call the following Javascript in the Page_Load event.
lstKostenart.Attributes["onchange"] = "getValue('" + lstKostenart.ClientID + "', '" + txtBetrag.ClientID + "');";
When the selected item of the Dropdownlist include a char "@", the Javascript function getValue() shows an Button via btn.style.visibility = 'visible';

My Question now.

I want to do the same with the RadComboBox. There is no client-Side onchange event and the cmbKostenart.ClientID (ClientID of the Combobox) don't work also. The example in the documentation with "var combo = $find("<%= cmbKostenart.ClientID %>");" don't work ditto.
What can I do, that the Page_Load event calls the Javascript getValue(with according parameters) or alternatively a second new function.

Thanks
Rosi
Telerik team
 answered on 21 Aug 2008
1 answer
83 views
In Windows 2003 it's OK.

In Windows Vista it's OK.

but in Windows 2008 Server it doesn't work.
The dll is correctly charged but the server tag is unknown. ( .net 2 )

any idea ?

Rumen
Telerik team
 answered on 21 Aug 2008
1 answer
114 views
Hi

I am using 2008 Q2 controls.

I have a situation where I am opening a RadWindow from another RadWindow. Initially this works well.

As I don't destroy this 2nd RadWindow, if the user was to close this then to reshow it in Javascript I simply do:

    gwinEventPickList.Show()


This does show the RadWindow however it doesn't have modal focus, only the 1st RadWindow does.

How can I make this a modal window again? I tried the SetActive() and SetModal() functions in Javascript but it makes no difference.


Kind regards

Mark Eaton
Georgi Tunev
Telerik team
 answered on 21 Aug 2008
2 answers
109 views

Hi there

I have a RadGrid and if i want to export it to Pdf it throws the following error:

[SystemException: System.InvalidCastException: Das Objekt des Typs Telerik.Web.Apoc.Layout.BlockArea kann nicht in Typ Telerik.Web.Apoc.Layout.AreaContainer umgewandelt werden.
   bei Telerik.Web.Apoc.Fo.Flow.BlockContainer.Layout(Area area)
   bei Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
   bei Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
   bei Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
   bei Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
   bei Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
   bei Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
   bei Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
   bei Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
   bei Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
   bei Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
   bei Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
   bei Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)]
   Telerik.Web.Apoc.ApocDriver.FireApocError(String message) +100
   Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader) +713


I use the following code in my aspx (this is only the relevant part):
(This gives me a nice dropshadow around the image, and it works...)

<telerik:GridTemplateColumn UniqueName="TemplateColumn1">  
                    <ItemTemplate> 
                        <div style="width:240px; padding:0 0 0 10px;">  
                            <div style="float:left;  
                                        background: url(../Images/shadowAlpha.png) no-repeat bottom right !important;   
                                        background: url(../Images/shadow.gif) no-repeat bottom right;   
                                        margin: 10px 0 0 10px !important;   
                                        margin: 10px 0 0 5px;"> 
                                <img style="display: block;  
                                            position: relative;  
                                           background-color: #fff;  
                                          border: 1px solid #a9a9a9;  
                                          margin: -6px 6px 6px -6px;  
                                          padding: 4px;" src="../Images/Newhaven.jpg" alt="test"/>  
                            </div> 
                        </div> 
                    </ItemTemplate> 
                    <HeaderStyle Width="10px" /> 
                </telerik:GridTemplateColumn> 

I drilled the error down to the first div (line 3), if I remove the "width" style-attribute the exportToPdf() works. The problem is that I cant remove the width because of "float:left". If removed it doesnt show the dropshadow propperly.

Does anyone know a solution to this problem?

Thanks
Joffrey
Joffrey
Top achievements
Rank 2
 answered on 21 Aug 2008
1 answer
106 views
I have two problem about grid.

Frist, how to set the default soring order of the grid base on two colums (similar to "ORDER BY column1, column2" in SQL)?

Second, how to set the size of the grid tooltip?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 21 Aug 2008
6 answers
104 views
Hello,

I've a strange problem while using Visual Earrth control inside a RadMultiPage. For pages that not are visible initial the map display is corrupt. Below is a sample with two views (status and map), only the first view displays the map correctly?

Any suggestions?

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body onload="GetMap();">  
    <form id="form1" runat="server">  
     <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager> 
    
   <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1"></script>        
<script type="text/javascript">        
var map = null;                   
function GetMap()        
{           
map1 = new VEMap('myMap1');           
map1.LoadMap();     
map2 = new VEMap('myMap2');           
map2.LoadMap();     
     
}           
</script> 
    
    <div> 
      
    <telerik:radtabstrip id="tsMenu"  runat="server" SkinID="PageMenuSkin" SelectedIndex="0" MultiPageID="rmpMain">  
                <Tabs> 
                        <telerik:RadTab runat="server" ID="rtStatus" Selected="True" PageViewID="rpvStatus" Text="Status">  
                        </telerik:RadTab> 
                        <telerik:RadTab runat="server" ID="rtMap" PageViewID="rpvMap" Text="Map">  
                        </telerik:RadTab> 
                </Tabs> 
    </telerik:radtabstrip> 
    <telerik:RadMultiPage ID="rmpMain" Runat="server" SelectedIndex="0">  
                      
                    <telerik:RadPageView ID="rpvStatus" runat="server">  
                        Status...  
                        <br /> 
                        <div id='myMap1' style="position:relative; width:400px; height:400px;"></div> 
 
                    </telerik:RadPageView> 
                      
                    <telerik:RadPageView ID="rpvMap" runat="server">  
                        Map...  
                        <br /> 
                        <div id='myMap2' style="position:relative; width:400px; height:400px;"></div> 
 
                    </telerik:RadPageView> 
                      
                    </telerik:RadMultiPage> 
                      
    </telerik:RadPageView> 
                      
    </div> 
      
      
    </form> 
</body> 
</html> 
 
Konstantin Petkov
Telerik team
 answered on 21 Aug 2008
4 answers
118 views
when a make a radgrid with a datasource  from sqldatasource .net component

and i have the option autogenerate colums at runtime in true

the filters of date fields have a radatepicker

how can i do this when my source come from needdatasource function, i tried everythig  but i can´t do this.
Shinu
Top achievements
Rank 2
 answered on 21 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?