Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
343 views

What I am trying to do is to remove the steps which are above the clicked step as follows:

 

        Protected Sub RadWizard1_ActiveStepChanged(sender As Object, e As EventArgs)

            Dim a As Integer = TryCast(sender, RadWizard).ActiveStep.Index

            For Each rws As RadWizardStep In RadWizard1.WizardSteps

                'Response.Write(rws.Index)

                If rws.Index > a Then
                    rws.Enabled = False 'mark for remove, done because collection is altered
                End If
            Next

            For Each rwss As RadWizardStep In RadWizard1.WizardSteps
                If Not rwss.Enabled Then
                    RadWizard1.WizardSteps.Remove(rwss)
                End If
            Next

        End Sub

but there is always a step too much left, which is disabled though, but not removed...

 

Suggestions?

 

Marc

Nencho
Telerik team
 answered on 04 Jul 2016
7 answers
120 views

Okay, we just undertook a HUGE project of using the PageLayout for our application to make things 'responsive'. After the first phase roll out, things do NOT look good on phones. They page elements are actually smaller than what they were in the older version? What the heck did we do wrong?

It is showing the small/medium version, but there is a TON of space to the right that I would expect to NOT be there. Any ideas?

Magdalena
Telerik team
 answered on 04 Jul 2016
3 answers
81 views
is there any optional to set such that the editor is able to be adjustable like the usual html text area?
Marin Bratanov
Telerik team
 answered on 04 Jul 2016
1 answer
50 views

I've created a one page website that relies on cloning sections of the DOM to generate new subpages. Initially there is an instance of RadAsyncUpload in the page, generated server side on page load. but I need to be able to add further instances of RadAsyncUpload without doing a postback. 

I've cloned the relevant section of the DOM (generating unique IDs for each element), and registered the new RadAsyncUpload element thus:  Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadAsyncUpload, {... etc

This succesfully creates an uploader control in the form, which uploads files to the correct temporary location, and when I finally do a postback to submit the data to the server, the RadAsyncUpload control appears correctly in the Page.Controls collection, but the uploadedFiles collection is empty for the cloned control.

Can anyone tell me how the link between the control and the temporary file is managed on postback, and if there is a way to achieve my goal of cloning a RadAsyncUpload control without doing a postback?

 

Many thanks

 

Will

Veselin Tsvetanov
Telerik team
 answered on 04 Jul 2016
1 answer
192 views

I am using RadHtmlChart (Telerik UI for ASP.NET AJAX - Visualizations 2015 Q3).  

Can we put scrolling for chart legend, When there are many items in legend. Is there any solution? 

Urgently required.

Thanks in advance

Joana
Telerik team
 answered on 04 Jul 2016
9 answers
470 views
 hi
i have grid in batch mode in last textbox of row i wont if press Enter select next row and open it for edit .i use get_batchEditingManager().openRowForEdit
in another button it works good but in key press of textbox it doesn't work
what should i do?
Andy
Top achievements
Rank 1
 answered on 02 Jul 2016
5 answers
763 views

I have the following code and I'm trying to add a confirmation dialog to the delete button. No matter what I tried I couldn't manage to get the dialog to fire. The latest method I used is this one which I found in a, admittedly, very old thread from this forum. Any ideas?

.aspx file

 

<telerik:RadListView ID="RadListView1" runat="server" DataSourceID="CompNotesSqlDataSource" >
            <ItemTemplate>
               
            <ul>
                <li>
                    <asp:Label ID="TimeLabel" runat="server" Text="Date/Time:"></asp:Label>
                    <asp:Label ID="TimeText" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "NoteDate","") %>'></asp:Label> <br />
                    <asp:Label ID="Label19" runat="server" Text="Company:"></asp:Label>
                    <asp:Label ID="FullNameLabel" runat="server" Text='<%# Eval("Description") %>' />
                    <br />
                    <asp:Label ID="Label20" runat="server" Text="Notes:"></asp:Label>
                    <asp:Label ID="RankLevelLabel" runat="server" Text='<%# Eval("Comments") %>' />
                    <br />
                    </li>
                

                <asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="updatePanel1">
                    <ContentTemplate>
                       <%--<telerik:RadButton ID="btndelete" CommandArgument='<%# Eval("Id")%>' OnCommand="btndelete_Command" runat="server" Text="Delete"></telerik:RadButton>--%>
                        <telerik:RadButton ID="btndelete" OnClientClick='<%# confirmDelete( Eval("Id").ToString() ) %>' CommandArgument='<%# Eval("Id")%>' OnCommand="btndelete_Command" runat="server" Text="Delete"></telerik:RadButton>
                        <telerik:RadButton id="btnedit" CommandArgument='<%# Eval("Id")%>' OnCommand="btnedit_Command" runat="server" text="Edit"></telerik:RadButton>                        
                    </ContentTemplate>    
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="btndelete" EventName="Command" />        
                        <asp:AsyncPostBackTrigger ControlID="btnedit" EventName="Command" />        
                    </Triggers>
                </asp:UpdatePanel>                                  
            </ul>
             
            </ItemTemplate>
        </telerik:RadListView>

 

----------------------------------

.cs file

 

        public string confirmDelete(string Name)
        {
            return @"javascript:if(!confirm('This action will delete the "
               + Name
               + @". Are you sure?')){return false;}";
        }

Marios
Top achievements
Rank 1
 answered on 01 Jul 2016
1 answer
120 views

We are having a strange layout behavior happening with the Recurrence Editor. The internal controls are overlapping (please see attached imaged).

Does anyone know how I can fix this?

 

-Ben

Peter Milchev
Telerik team
 answered on 01 Jul 2016
1 answer
101 views
In other words, are the corresponding values for NoFilter, Contains, Does Not Contain, etc at the same index for other languages? We'd like to filter out some values but want to make sure they're all located at the same index. Thanks. 
Eyup
Telerik team
 answered on 01 Jul 2016
10 answers
131 views

I don't know why this would be happening but when I use a PivotGrid, it interrupts or distorts the RadMenu CSS (see images attached). Below is the mark up for the page. This is in IE11, Telerik v.2015.2.729.45.

Please do not advise that I upgrade, I do not have the funds, but I would appreciate a work-around.

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Summary.aspx.cs" Inherits="bccwfm.REACH.Summary" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Main" runat="server">
    <table border="0" class="label" style="margin:5px;border-collapse:separate;border-spacing:5px;padding-top:5px">
        <tr>
            <td> Start Date</td>
            <td>
                <telerik:RadDatePicker ID="RDP_StartDate" runat="server" ShowPopupOnFocus="true" ToolTip="Select a start date" Culture="en-US" TabIndex="1"  AutoPostBack="true" Width="110px" CssClass="hvr-glow">
                    <Calendar ID="Calendar2" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" ShowRowHeaders="false"></Calendar>
                    <DateInput ID="DateInput2" runat="server" TabIndex="1" DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" AutoPostBack="True" LabelWidth=""></DateInput>
                    <DatePopupButton TabIndex="1"></DatePopupButton>
                </telerik:RadDatePicker>
            </td>
            <td>End Date</td>
            <td>
                <telerik:RadDatePicker ID="RDP_EndDate" runat="server" ShowPopupOnFocus="true" ToolTip="Select a end date" Culture="en-US" TabIndex="2"  AutoPostBack="true" Width="110px" CssClass="hvr-glow">
                    <Calendar ID="Calendar1" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" ShowRowHeaders="false"></Calendar>
                    <DateInput ID="DateInput1" runat="server" TabIndex="1" DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" AutoPostBack="True" LabelWidth=""></DateInput>
                    <DatePopupButton TabIndex="2"></DatePopupButton>
                </telerik:RadDatePicker>
            </td>
            <td>
                <telerik:RadButton ID="RB_Export" runat="server" Text="Export" OnClick="RB_Export_Click" CssClass="hvr-glow"/>
            </td>
        </tr>
    </table>
    <telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="SqlDataSource1" EmptyValue="0" EnableZoneContextMenu="true" AllowFiltering="true" ClientSettings-EnableFieldsDragDrop="true" Width="99%" style="margin:10px" PageSize="50" >
        <ExportSettings FileName="REACH Summary" UseItemStyles="true">
            <Excel Format="Xlsx" />
        </ExportSettings>
        <Fields>
            <telerik:PivotGridRowField DataField="Dot4Desc" Caption="Franchise"/>
            <telerik:PivotGridRowField DataField="CreatedBy" Caption="Created By"/>
            <telerik:PivotGridRowField DataField="Decision" Caption="Decision"/>
            <telerik:PivotGridColumnField DataField="ReasonDesc" Caption="Reason"/>
            <telerik:PivotGridColumnField DataField="PositionDesc" Caption="Position"/>
            <telerik:PivotGridColumnField DataField="StatusDesc" Caption="Status"/>
            <telerik:PivotGridAggregateField DataField="ReqID" Caption="Requests" Aggregate="Count" TotalFormat-GroupName="Requests"/>
        </Fields>
    </telerik:RadPivotGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CWFMO %>" SelectCommand="REACH_GetSummary" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="RDP_StartDate" DbType="Date" Name="startdate" PropertyName="SelectedDate" />
            <asp:ControlParameter ControlID="RDP_EndDate" DbType="Date" Name="enddate" PropertyName="SelectedDate" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

 

 

Maria Ilieva
Telerik team
 answered on 01 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?