Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
170 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
192 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
110 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
148 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
276 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
161 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
144 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
5 answers
134 views
Hello,

In my SharePoint 2013 site, I have activated the "Use RadEditor to edit HTML fields" feature. All is OK when my ToolbarMode is on default. But, when I try the "ShowOnFocus" mode, the Toolbar follow the page "scrolling" (please watch the Video for seeing the issue).

Is it normal?

Thank a lot for your help.

Regards

Éric



Ianko
Telerik team
 answered on 25 Jul 2016
11 answers
529 views

Hi all,

I have codes below at javascript:

var grid = $find("<%=RadGrid1.ClientID %>");

var batchManager1 = grid.get_batchEditingManager();

var hasChanges = batchManager1.hasChanges(grid.get_masterTableView());

if(hasChanges) {

    grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());

}

else{

args.get_

 

 

I have code below at code behind:
protected void RadGrid1_BatchEditCommand(object sender, GridBatchEditingEventArgs e)
{
    foreach (GridBatchEditingCommand command in e.Commands)
    {
        Hashtable newValues = command.NewValues;
        Hashtable oldValues = command.OldValues;
        string newFirstName = newValues["FirstName"].ToString();
    }
}

systems
Top achievements
Rank 1
 answered on 25 Jul 2016
6 answers
227 views

Hi , I have a dropdown list inside the edit template and a label on template item. I am tiring to find this control on batcheditopening event . I want to insert the label value as the last list item of the dropdown listI. I am able to find the label value but I am having issue in finding the dropdown.

please help me with this issue.

shashi
Top achievements
Rank 1
 answered on 25 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?