Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
144 views
Hi, I will to remove/hide the delete, save and cancel buttons when I double click on an event. My application is designed to be read-only, so I would like to get rid of these buttons in order not the confuse the User. I found some resources that helped do this using an editor template but I do not wish to do this, I just want to get rid of the buttons I don't need and keep the popup looking as is, It will be extremely helpful if someone can share the razor syntax for this.
Feyijimi
Top achievements
Rank 1
 asked on 25 Jul 2016
4 answers
136 views

Hi,

 

I have an application where from a user control, I am trying to open another user control which contains a user control having a custom implementation of Telerik file explorer (3 levels of user controls). Issue is, file explorer loads fine except it appears to be in read only mode i.e all the operations are disabled.

However, same file explorer user control works fine when used directly from a web form.

Any idea what is causing this issue?

Vessy
Telerik team
 answered on 25 Jul 2016
3 answers
580 views

Hello Everyone,

We want to export any web page into a PDF. It should take any web URL as an input and convert the contents of it into a PDF file. 

We referred to the following blogs. 
http://www.telerik.com/blogs/using-an-external-library-for-the-export-to-pdf-functionality-in-telerik-s-asp.net-editor
Mentioned solution works but doesn't do the complete job. It has 2 issues. 
1. It doesn't export images and 
2. It doesn't retain the layout of the web page.

We have also checked the following link which demonstrates how to use Telerik ASP.NET ClientExportManager to export the current web page contents to a PDF. But as mentioned above our requirement is little different, we want to provide web URL as an input to the component which should get converted to PDF. 

http://demos.telerik.com/aspnet-ajax/client-export-manager/overview/defaultcs.aspx

Can Telerik support team help us to provide a complete solution for this?

There are other 3rd party components which we have already tried and they do this conversion well, 
but we want to know if this can be achieved using Telerik component and how.

Appreciate your help in this.

Ivan Danchev
Telerik team
 answered on 25 Jul 2016
5 answers
130 views

Hi, I am getting nowhere with the following - all I want to do is change the image for the calendar and time picker buttons.

<telerik:RadDateTimePicker RenderMode="Auto" ID="dttiStartDate" Width="70%" runat="server"  EnableEmbeddedSkins="false" DateInput-DateFormat="MMM dd yyyy  HH:mm" DateInput-DisplayDateFormat="MMM dd yyyy  HH:mm" DateInput-CssClass="Normal">

    <TimePopupButton Visible="true" ImageUrl="~/images/png/a.png" HoverImageUrl="~/images/png/b.png" />
    <DatePopupButton Visible="true" ImageUrl="~/images/png/b.png" HoverImageUrl="~/images/png/b.png" />
    <TimeView runat="server" Skin="Default" CssClass="Normal" ShowHeader="False" StartTime="00:00:00" Interval="01:00:00" EndTime="23:59:00" Columns="2" TimeFormat="HH:mm"></TimeView>
</telerik:RadDateTimePicker>

 

What happens is the date button changes but he time button disappears. In Chrome "elemen inspection" it appears to be underneath the calendar buttonand not visible.

 

I dont (and dont want to) use any script manager stuff - I just want to change the buttons to 2 of my own.

Is this possible.

 

This is UI for ASP.NET AJAX Q1 2016.

 

Many thanks.

 

Maria Ilieva
Telerik team
 answered on 25 Jul 2016
2 answers
140 views

I created header with two lines by using <br/>. It looks fine, but during export to excel <br/> is visible. Here is the code example:

                   Dim ColumnNumeric As New GridNumericColumn()
                    grdResourceGrid.MasterTableView.Columns.Add(ColumnNumeric)
                    ColumnNumeric.HeaderStyle.HorizontalAlign = HorizontalAlign.Center
                    ColumnNumeric.DataField = dr("ResourceTitle")
                    ColumnNumeric.HeaderText = dr("ResourceTitle") & "<br/>$" & dr("Rate")
                    ColumnNumeric.SortExpression = dr("ResourceTitle")
                    ColumnNumeric.HeaderStyle.HorizontalAlign = HorizontalAlign.Right
                    ColumnNumeric.ItemStyle.HorizontalAlign = HorizontalAlign.Right
                    ColumnNumeric.DataFormatString = "{0:N2}"

I tried to solve it by adding additional header, but it didn't export at all. Code:

Dim newHeaderItem As New GridHeaderItem(grdResourceGrid.MasterTableView, 0, 0)
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "1"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "2"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "3"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "4"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "Steve"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "Chandler"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "Naomi"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "1_Naomi"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "1_Steve"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "1_Chandler"})
        newHeaderItem.Cells.Add(New GridTableHeaderCell() With {.Text = "f"})

Please recommend solution

 

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 25 Jul 2016
0 answers
73 views

hi

It seems that ajaxmanager is causing input type email not working when button click. But when i removed ajaxmanager and do a button click, the input display "Please include an "@" in the email" message.

 

How should i resolve this as i need to include ajaxmanager?

Here is my code;

 

  <div class="col-sm-6">
                       <div class="form-group">
                          <input id="txtUserEmail" type="email" class="form-control" placeholder="email address" required runat="server" >
                        </div>
                        <div class="form-group">
                          <input id="txtUserPassword" type="password" class="form-control" placeholder="password" required runat="server" >
                        </div>
                       <div class="form-group">
                           <asp:Button ID="btnLogin" runat="server" CssClass="btn btn-block" Text="login" OnClick="btnLogin_Click" />
                       </div>
                      <div class="form-group" style="color:#f85659">
                          <asp:Literal ID="ltrLoginMessage" runat="server" Text="email or password incorrect. try again." Visible="false"></asp:Literal>
                      </div>
                  </div>

Thanks a lot

 

L
Top achievements
Rank 1
 asked on 25 Jul 2016
1 answer
94 views

I have a simple update on interval application (pretty much same as this demo: http://demos.telerik.com/aspnet-ajax/notification/examples/updateinterval/defaultcs.aspx ).

 

The problem is if you set the updateinterval for a length of time less than the autoclosedelay it blanks out the popup (clears the content of the literal).  In other words if I check for new messages while a message is already visible, even if there are no new messages, the page posts back and my message is empty.

Is there some easy way to get around this or do I have to do something like store the value in a session/page variable etc.?

Marin Bratanov
Telerik team
 answered on 25 Jul 2016
1 answer
232 views

I'm using Bootstrap Skin and when showing a radalert, the window has no icons (see screenshot attached).

If I change the Skin, for instance, Telerik skin, the alert windows is well displayed.

Version: 2015.2.604.45

 

Code:

<telerik:RadWindowManager ID="rdmWindowsDialogs" runat="server" RenderMode="Lightweight" >
    <AlertTemplate>
        <div class="rwDialog rwAlertDialog">
            <div class="rwDialogContent">
                <div class="rwDialogMessage">
                    {1}
                </div>
            </div>
            <div class="rwDialogButtons">
                <input type="button" value="OK" class="rwOkBtn" onclick="$find('{0}').close(true); return false;" />
            </div>
        </div>
    </AlertTemplate>
    <ConfirmTemplate>
        <div class="rwDialog rwConfirmDialog">
            <div class="rwDialogContent">
                <div class="rwDialogMessage">{1}</div>
            </div>
            <div class="rwDialogButtons">
                <input type="button" value="OK" class="rwOkBtn" onclick="$find('{0}').close(true); return false;" />
                <input type="button" value="Cancel" class="rwCancelBtn" onclick="$find('{0}').close(false); return false;" />
            </div>
        </div>
    </ConfirmTemplate>
</telerik:RadWindowManager>

 

<button onclick="radalert('A string.<br />'); return false;"> Alert</button>

 

Marin Bratanov
Telerik team
 answered on 25 Jul 2016
1 answer
114 views

Hi Alll,

I wanted to add an custom "New" button along with the RadImageEditor. On clicking this "New" button, i would like to load the ImageEditor with a diff image.

Could you please let me know how to achieve this? Can the reset tool functionality be used for this purpose with some customization ?

Thanks in advance for the suggestions 

Vessy
Telerik team
 answered on 25 Jul 2016
1 answer
111 views

I'm trying to do something similar to the attached image, normal asp.net chart is used in the screenshot.

The data comes in as time (00:00:00) and x-axis is in long date(which works fine) but for some reason i can't find anything or option that can enable me to put time on the Y-axis. I've been trying to do this for the last day, everything i search on the internet is either outdated, doesn't work or no one has replied to their post. Customer support's taking their time too. Thanks in advance.

 

Best wishes,

Kelvin

Danail Vasilev
Telerik team
 answered on 25 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?