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

Hey all.

I have a stored procedure that returns two columns: [dates] and [total]. I have bound a RadHtmlChart to this data as a Line Series. Currently, my tooltip is showing the [Total] properly, however I'd also like it to display the date.

Doing #=dataItem.dates# returns something along the lines of "Mon Aug 27 2016 12:00:000 Eastern Standard Time", which I would desperately need formatted. I'd prefer "08/29/16" and have tried to achieve it using the following:

#= kendo.format(\'{0:MM/dd/yy}\', dates) #

but this results in the tooltips not working at all, which I assume is indicative of a syntax error. Can anyone assist?

<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Layout="stock" DataSourceID="report">
            <PlotArea>
                <Series>
                    <telerik:LineSeries DataFieldY="Total" Name="Combined Total">
                        <LineAppearance LineStyle="Smooth" />
                        <LabelsAppearance Visible="false"></LabelsAppearance>
                        <TooltipsAppearance>
                            <ClientTemplate>
                            <strong>Combined: </strong>#=dataItem.Total#
                            </ClientTemplate>
                        </TooltipsAppearance>
                    </telerik:LineSeries>
                </Series>
                <XAxis DataLabelsField="dates" Type="Date" BaseUnit="days" BaseUnitStep="1" EnableBaseUnitStepAuto="true">
                    <TitleAppearance Text="Date"></TitleAppearance>
                    <MajorGridLines Visible="true" />
                    <MinorGridLines Visible="false" />
                </XAxis>
                <YAxis>
                    <TitleAppearance Text="Declines"></TitleAppearance>
                    <LabelsAppearance DataFormatString="{0}">
                    </LabelsAppearance>
                </YAxis>
            </PlotArea>
        </telerik:RadHtmlChart>
Ianko
Telerik team
 answered on 02 Sep 2016
2 answers
81 views

Hi,

I'm getting an error when a user clicks on the export to excel button while the grid is edit or insert mode. Is there a quick way to address this or do i have to check for the grid's state and disable/enable the button?

Christian
Top achievements
Rank 1
 answered on 01 Sep 2016
3 answers
177 views
I want to be able to display only files that are not set to hidden by the OS.

How do I filter files that are hidden?  I'm using the filter example, but it looks like there is no attribute or property of Hidden.

Vessy
Telerik team
 answered on 01 Sep 2016
3 answers
360 views

I'm new to UI for ASP.NET AJAX, so please excuse my probably stupid question:

I'm working on a legacy project which I am supposed to leverage to the latest Visual Studio edition.

In the legacy application, it was common to download some files, add them to some project related "lib" folder and then reference the Assemblies therein.

Since we have NuGet now, I'd like to migrate the existing procedure to the currently suggested behaviour and download a matching NuGet package which then everyone in the team will automatically have downloaded and installed.

I can't find the Telerik NuGet package on nuget.org, though.

What is the suggested process of adding Telerik UI for ASP.NET AJAX to a web project?

Your help is apprecited.

Marin Bratanov
Telerik team
 answered on 01 Sep 2016
1 answer
94 views

Hello, 

I am getting lots of Not Loaded (error) in Image Editor of telerik:RadEditor. Please see the attachment for more details. It's really urgent, so help will be highly appreciated!!!

 

Thanks in advance.....

 

Attiq.

Rumen
Telerik team
 answered on 01 Sep 2016
4 answers
812 views
Hello Telerik Users,
I want to add an attribute to a GridBoundColumn which I create in the code. How do I achieve this?

Kind regards,

Marijn Ophelders
Eyup
Telerik team
 answered on 01 Sep 2016
3 answers
287 views

Hi,

Using the css border-collapse:collapse has no effect on the layout. Could you pls give an example how to create a simple grid layout with gridlines where the borders are all the same size (no double-up)?

Marin Bratanov
Telerik team
 answered on 01 Sep 2016
5 answers
781 views
hi  
   help me, how to find the controls  'rdpIntrwDate' and  'txtInterviewDateHij' within radgrid editform using javascript?
 Thanks for any suggestion



<telerik:GridTemplateColumn HeaderText=" Interview Date " UniqueName="InterviewDate" DataField="InterviewDate"
 HeaderStyle-ForeColor="Black"  >
<EditItemTemplate>
         <telerik:RadDatePicker ID="rdpIntrwDate" runat="server" Width="200px" DateInput-AutoCompleteType="Disabled"
                      AutoPostBack="false" SelectedDate='<%# Eval("InterviewDate")==DBNull.Value?DateTime.Today:Eval("InterviewDate") %>'
                        onkeydown="return (event.keyCode!=13);"
         CssClass="PersonalDatePicker" DateInput-DateFormat="dd/MM/yyyy" DateInput-DisplayDateFormat="dd/MM/yyyy">
           <ClientEvents OnDateSelected="GrigToHij" />
          </telerik:RadDatePicker>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblIntrwDate" runat="server" Text='<%# Eval("InterviewDate") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
 
 <telerik:GridTemplateColumn HeaderText=" InterviewDateHij " UniqueName="InterviewDateHij" DataField="InterviewDateHij"
   HeaderStyle-ForeColor="Black"  >
    <EditItemTemplate>
        <telerik:RadTextBox ID="txtInterviewDateHij" runat="server"  Width="200px"
             Height="20px" ForeColor="#0066FF">
                    <ClientEvents OnValueChanged="HijToGreg" />
         </telerik:RadTextBox>
   </EditItemTemplate>
    <ItemTemplate>
      <asp:Label ID="lblDOBHij" runat="server" Text='<%# Eval("InterviewDateHij") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>
Eyup
Telerik team
 answered on 01 Sep 2016
1 answer
156 views

I have a RadNavigation where Parent nodes and Child nodes are programmatically created depending on what the user has access to.

The dropdowns for the nodes and more (sandwich) menu are set to a fixed height depending on screen width size and if portrait or landscape.

Some users are admin level users and have access to everything. The dropdowns do scroll to show more items in the menu but i noticed there is no indicator at the top and/or bottom of the dropdown that indicate there are more items at the top and/or bottom.  Is there a way to set up some kind of indicator?

Please help!

Sincerely,

Keith Jackson

Magdalena
Telerik team
 answered on 01 Sep 2016
2 answers
360 views

Hi,

I am using the code below in an attempt to print out a portion of a page contained in a div. The div contains a RadPageLayout and some other rad controls but when I print the style of the controls is lost (radpagelayout loses it table form and all fonts default to standard) - obviously the style being applied by skin is not included in the window being opened - is it possible to print like this and keep the skin, font etc?

 

function PrintElement(id, width, height) {
    var prtContent = document.getElementById(id);
    var WinPrint = window.open('', '', 'left=0,top=0,width='+width+',height='+height+',toolbar=0,scrollbars=0,status=0,dir=ltr');
    WinPrint.document.write(prtContent.innerHTML);
    WinPrint.document.close();
    WinPrint.focus();
    WinPrint.print();
    WinPrint.close(); 
}

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 01 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?