Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
104 views
Hi, I want to ajaxify a Tabstrip/Multipage which is inside a formview. The control that should trigger everything is a RadTreeView on the same page:

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Left" runat="Server">
    <div style="background-image: url(images/Verlauf.jpg); background-repeat: repeat-y;
        height: 2em; line-height: 2em; padding-left: 10px;">
        <h3 style="color: White;">
            Produkte</h3>
    </div>
    <telerik:RadTreeView ID="RadTreeView_Navigation" runat="server" Skin="WebBlue">
        <Nodes>
            <telerik:RadTreeNode runat="server" Expanded="true" Text="Heizkörper für Wärmepumpen"
                Font-Bold="True">
                <Nodes>
                    <telerik:RadTreeNode runat="server" Text="Serie SL/SLI" ToolTip="Modellreihe ohne Radiator">
                        <Nodes>
                            <telerik:RadTreeNode runat="server" Text="SL/SLI 200">
                            </telerik:RadTreeNode>
                            <telerik:RadTreeNode runat="server" Text="SL/SLI 400">
                            </telerik:RadTreeNode>
                            <telerik:RadTreeNode runat="server" Text="SL/SLI 600">
                            </telerik:RadTreeNode>
                            <telerik:RadTreeNode runat="server" Text="SL/SLI 800">
                            </telerik:RadTreeNode>
                            <telerik:RadTreeNode runat="server" Text="SL/SLI 1000">
                            </telerik:RadTreeNode>
                        </Nodes>
                    </telerik:RadTreeNode>
                </Nodes>
            </telerik:RadTreeNode>
        </Nodes>
    </telerik:RadTreeView>
</asp:Content>

'----------------------------------------------------------------------------------------------------------------

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="Server">
    <asp:AccessDataSource ID="AccessDataSource_Produkte" runat="server" DataFile="~/App_Data/waterstage.mdb"
        SelectCommand="SELECT * FROM [Artikel] WHERE ([ArtikelNummer] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ArtikelNummer" QueryStringField="ArtikelID" Type="String" />
        </SelectParameters>
    </asp:AccessDataSource>
      
    <asp:FormView ID="FormView_Produkte" runat="server" DataSourceID="AccessDataSource_Produkte">
        <ItemTemplate>
            <div style="padding-left: 15px;">
                <asp:Label ID="lbl_Trailer" runat="server"><%#Eval("Text_Trailer") %></asp:Label>
            </div>
            <telerik:RadTabStrip ID="RadTabStrip_Produkte" runat="server" Width="100%" MultiPageID="RadMultiPage_Produkte"
                CausesValidation="false" Skin="WebBlue" SelectedIndex="0">
                <Tabs>
                    <telerik:RadTab runat="server" Text="Übersicht" PageViewID="RadPageView_Uebersicht"
                        Selected="true">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Spezifikationen" PageViewID="RadPageView_Spezifikationen">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Dimensionen" PageViewID="RadPageView_Dimensionen">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Optionen" PageViewID="RadPageView_Optionen">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Anfrage" PageViewID="RadPageView_Anfrage">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Händler" PageViewID="RadPageView_Haendler">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage_Produkte" runat="server" BackColor="White"
                BorderStyle="Solid" BorderWidth="1px" BorderColor="Gray" SelectedIndex="0">
                <telerik:RadPageView ID="RadPageView_Uebersicht" runat="server">
                    <div style="overflow: hidden; width: 616px; padding: 30px;">
                        <h3><%# Eval("Text_Kurzbezeichnung")%></h3>
                       
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageView_Spezifikationen" runat="server">
                    <div style="padding: 3px; width: 670px;">
                        <asp:Label ID="lbl_Spezifikationen" runat="server"><%#Eval("Text_Spezifikationen") %></asp:Label>
                    </div>
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageView_Dimensionen" runat="server">
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageView_Optionen" runat="server">
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageView_Anfrage" runat="server">
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageView_Haendler" runat="server">
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </ItemTemplate>
    </asp:FormView>
</asp:Content>

Any ideas how I could accomplish that? I had no luck with AjaxManger.

Thanks in advance for your help

Best regards

Thomas
Thomas
Top achievements
Rank 1
Veteran
 answered on 25 Dec 2010
3 answers
62 views
Rad
I have managed to get the popup Radwindows to overlap the radmenu on the master page in IE8, using the fix from your help site.  but, IE7 I cannot get the radwindow to overlap the menu.  The only part of the master page that overlaps any popup radwindow is the menu, so there is
something wrong with the CSS, or there is a workaround for IE7.  I have to get it work for IE7.  Is there a fix for this?

Thanks.

Kamen Bundev
Telerik team
 answered on 25 Dec 2010
8 answers
279 views
I have a grid that I am trying to do the export.  When I execute the following, nothing happens.

gridList.ExportSettings.FileName =

"test"

gridList.ExportSettings.OpenInNewWindow =

True

gridList.MasterTableView.ExportToPdf()



This is the grid:

<telerik:RadGrid ID="gridList" runat="server" EnableViewState="true" AllowMultiRowSelection="true" >
<MasterTableView TableLayout="Auto">
<Columns>
<telerik:GridBoundColumn DataField="Col1" DataType="System.String" HeaderText="Term Description"

UniqueName="TC_TermDescription" Visible="true" />

 

</Columns>

 

</MasterTableView>

 

<ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="true" ClientEvents-OnGridCreated="gridCreated">

 

<Resizing ClipCellContentOnResize="true" AllowRowResize="false" EnableRealTimeResize="true"

 

ResizeGridOnColumnResize="true" AllowColumnResize="true" />

 

</ClientSettings>

 

</telerik:RadGrid>

Daniel
Telerik team
 answered on 24 Dec 2010
2 answers
71 views
Hello-

When I implement the  OnClientTimeSlotContextMenuItemClicked client-side event handler in my ASPX page and call the get_startTime() method, it always adds exactly eight hours to whatever time slot I clicked on.  Since I haven't found this issue reported by anyone else, I have to assume it's something in my code or on my system, but I'm really not sure where to look.  If it helps, below is the javascript code that I am using:

        function OnClientTimeSlotContextMenuItemClicked(sender, eventArgs) {
            // this line is always 8 hours off
            alert(eventArgs.get_slot().get_startTime().format("MM/dd/yyyy hh:mm:ss"));
        }

Thanks in advance for any ideas you have.

-Doug
Peter
Telerik team
 answered on 24 Dec 2010
1 answer
247 views
Hi,

I'm using RadControls version: 2010.Q3.1109.

I'm trying to select a child row in a Hierarchical RadGrid programmatically, but I'm having a world of woes. I've scoured Telerik's resources and this forum and I haven't seen an example of this for the RadAJAX Grid control.

Here's the code I'm trying to use:

RadGrid3.MasterTableView.Items(j).ChildItem.NestedTableViews(0).Items(i).Selected = True

However, I'm getting an ArgumentOutOfRangeException when I use this code, even when I set:

RadGrid3.MasterTableView.Items(j).ChildItem.NestedTableViews(0).HierarchyDefaultExpanded = True

The values for integer variables j and i are perfectly valid. If I should use:

RadGrid3.MasterTableView.HierarchyDefaultExpanded = True

...then it will work, but then every child record of every parent record in the table is expanded and that's not what I want. I only want the one parent record to be expanded — not all of them.

I can select the parent record just fine with:

RadGrid3.MasterTableView.Items(j).Selected = True

I'm at wits end. Your help would be greatly appreciated.

Jonathan
Jonathan
Top achievements
Rank 1
 answered on 24 Dec 2010
4 answers
2.6K+ views
Hi,
I have tried to sum all rows in a RadGrid column which after some research on www.telerik.com saws as quite simple, but it was not. I am missing something. What I did was that I added  DataType="System.Decimal" Aggregate="Sum" in the column binding section.

<telerik:GridBoundColumn DataField="GROSS_FREIGHT_COST" HeaderText="Bruttofrakt [K]" 
UniqueName="GROSS_FREIGHT_COST" DataType="System.Decimal" Aggregate="Sum">
</telerik:GridBoundColumn>

But this was not enough. The only thing that was visualized in footer was the text 'Sum:'

What am I missing? Do I need to have something in my code behind file?
Pavlina
Telerik team
 answered on 24 Dec 2010
5 answers
233 views

Hello,

 

I have a problem to get back my appointment occurrences with the TryParse() method when I use TimeZoneOffset. Here is a procedure I use:

 

I setup my scheduler for UTC-8:

RadScheduler1.TimeZoneOffset = new TimeSpan(-8, 0, 0);

 

I enter a new appointment in the schedule: from Wednesday 1 December 2010 08h00PM to 10h00PM, with a recurrence rule: Weekly, Wednesday and Friday, up to 2 occurrences.

 

This gives me 2 appointments in the scheduler:

Wednesday 1 December 8:00pm

Friday 7 December 8:00pm

 

The data obtains in the appointment object are in UTC time zone, with values:

Start = {12/2/2010 4:00:00 AM}

End = {12/2/2010 6:00:00 AM}

RecurrenceRule = "DTSTART:20101202T040000Z\r\nDTEND:20101202T060000Z\r\nRRULE:FREQ=WEEKLY;COUNT=2;INTERVAL=1;BYDAY=WE,FR\r\n"

 

My problem appears when I use the method Telerik.Web.UI.RecurrenceRule.TryParse() on the Recurrence Rule. I obtain a rule with 2 occurrences:

 [0]  {12/3/2010 4:00:00 AM}

 [1]  {12/8/2010 4:00:00 AM}

 

This means in UTC-8:

Thursday 2 December 8:00pm

Friday 8 December 8:00pm

 

This is not what I scheduled. This appends when the start of the appointment changes of day between local time and UTC time. I think TryParse() cannot restore the occurrence properly because it do not store the time zone in which the rule has been encoded.

I am missing something? Is there another method to get my occurrence from the recurrence rule?

 

Thank you very much for your help,

Mathieu

Peter
Telerik team
 answered on 24 Dec 2010
3 answers
160 views
Hi ,

I have a radgrid and i have enabled scrolling in radgridf it's working fine on my page .But when i am going to export data in PDF then i want to print scroll on the PDF . Is it possible through Radgrid or any other way to achieve this when i am going to export in PDF.I don't want to make font-size to lower px i want my pfd to display same way as it is displaying on page with scrolling feature. I don't want to clooase the columns etc these solutions i don't want . I want the scrollable functionality on pdf file and all records to display in pdf i have used paging so i cann't use windows print page method as it only displays the current records in Grid .

Please answer me ASAP it's very Urgent .I have to make this functionality .I can't find any answer ,

Is it possible in radGrid  to this scrolling feature as it comes in the excel exporting option .
or its a PDF writer that doesn't allow the scrolling functionality to implement in Radgrid .I have runtime 60-70 Columns to display so i want scrolling to be implemented in the PDF export file as it displays in the Excel ,CSV.

Thanks
Gaurav Bhardwaj
Daniel
Telerik team
 answered on 24 Dec 2010
9 answers
165 views
Rebind (web service) does not call TimeSlotCreated.

I know this might be as designed, but is there a way for me to trigger the scheduler to rebuild the timeslots?
Peter
Telerik team
 answered on 24 Dec 2010
2 answers
53 views
I have a RadWindow with several RadComboBox controls.  I'm using javascript to get the selected value from these ComboBoxes.  It's pretty simple code:

function OK_Clicked() {
            var oWindow = GetRadWindow();
            //Get current item
           var combo = <%= RadComboBox1.ClientID %>;
           var combotext = combo.valueOf();
           alert(combotext);
}
The combo is getting populated by a datasource.  Yet, it says object doesn't support this property or method ( the valueOf() call ).  All I'm trying to do is get the selected item.  Do I need to have an event on this combo, on the client side to note when the selected index changes?
Svetlina Anati
Telerik team
 answered on 24 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?