Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
236 views
New to JSON and struggling to convert a SQL table whereby Latitude and Longitude are stored in separate float fields.  The requirement of RadMap to receive a single field (say Location as per examples) seems to be an Array.  Any examples whereby these two distinct fields can be converted on the fly and JSON'd to the RadMap control as a single field ?  (Note: I am choosing not to bind to the Latitude/Longitude via server binding method, I wish to use the RadClientDataSource consuming JSON)
Glen
Top achievements
Rank 1
 answered on 21 Nov 2014
1 answer
444 views
I have a radgrid with Add, delete and refresh buttons in the CommandItemTemplate. On click of Add, I want to hide the template. How can I achieve this?
Kostadin
Telerik team
 answered on 21 Nov 2014
1 answer
135 views
Team,

we are using Telerik rich text editor (RadEditor, version 2014.2.724.40), character count and word counts are displaying wrongly.

upon prefilling the data to the editor is adding few more character (Space/carriage return) at the end.

can we know how to address this?
Ianko
Telerik team
 answered on 21 Nov 2014
1 answer
81 views
Hi,
I’m using a raddock window to display some news.  Having trouble setting the height.I can set it ok on the page load event, however if I then collapse / expand it resets.  Any ideas what I’m doing wrong?
Slav
Telerik team
 answered on 21 Nov 2014
12 answers
810 views
I have a grid that binds a number of child data objects to columns with no issue, using the syntax defined at http://www.telerik.com/help/aspnet-ajax/grdbindingtosubobjects.html.

What I cannot figure out, however, is how to aggregate a child object that is a list or collection. For example, if I have a Customer object and I want to get the customer's first street address, I would use DataField="Customer.Addresses[0].Street" on a standard GridBoundColumn.

How can I get the count of the addresses? I have tried all sorts of GridCalculatedColumn DataFields and Expressions, to no avail. I am looking for something along the lines of this:
<telerik:GridCalculatedColumn DataFields="Customer.Addresses" 
Expression="Count( Child )" >

That doesn't work, of course. In fact, if I try to do a Count on any dotted data field, I get an exception of "System.Data.SyntaxErrorException: Syntax error in aggregate argument: Expecting a single column argument with possible 'Child' qualifier." For example, just trying to use an expression of "Count({0})" with DataFields set to "Customer.FirstName" (of which there is only one), causes that exception to be thrown at runtime. Doing the same thing with a non-dotted data field, such as SendDate, does not cause the same exception.
Radoslav
Telerik team
 answered on 21 Nov 2014
6 answers
240 views
i want set z-index for RadSchedulerRecurrenceEditor.
it not displayed calender with ModalPopupExtender.
Aneliya Petkova
Telerik team
 answered on 21 Nov 2014
1 answer
102 views
Hello,

I have a list of objects (a linq2sql query I convert to a list) that I want to use as a datasource for a RadHTMLChart. The data look like this:

Employee    WorkDay       Performance
Jane            2014-01-01    300
Jane            2014-01-02    287
John            2014-01-02    324
Jane            2014-01-03    151
John            2014-01-03    139
.....


I want performance to be the Y Axis, WorkDay to be the X Axis and for the data to be grouped into series using the Employee name. I have read the help information and viewed all of the demos but I can't seem to get it right. If I pre-define the series in the aspx it works, but I can't seem to make it render correctly from just providing a data source.

Here is one of the attempts, where I am close, but the different series don't align to the x-axis.
Dim q = emp.BenchmarkForTask(50, 3, "12/1/13") ' This gets my data
       Dim lemp As String = ""
       
       lemp = ""
 
       chrtPerformanceNew.PlotArea.XAxis.Name = "Employee"
       chrtPerformanceNew.PlotArea.XAxis.DataLabelsField = "Employee"
 
       ' Load each series from the data:
       For Each tmp In q.OrderBy(Function(x) x.Employee)
           If lemp <> tmp.Employee Then
               Dim x As New Telerik.Web.UI.LineSeries
 
               x.Name = tmp.Employee
               x.DataFieldY = "Performance"
               x.LabelsAppearance.Visible = False
               x.TooltipsAppearance.DataFormatString = "{WorkDay} - YO!"
               x.LabelsAppearance.DataField = "WorkDay"
               chrtPerformanceNew.PlotArea.Series.Add(x)
 
               lemp = tmp.Employee
           End If
       Next
 
       ' Load data into series. How to I set it to the correct X axis?
       For Each tmp In q.OrderBy(Function(x) x.WorkDay)
           Dim i As Integer = 0
           For i = 0 To chrtPerformanceNew.PlotArea.Series.Count - 1
               If chrtPerformanceNew.PlotArea.Series(i).Name = tmp.Employee Then
                   Dim ca As Telerik.Web.UI.LineSeries = chrtPerformanceNew.PlotArea.Series(i)
                   Dim si As New Telerik.Web.UI.SeriesItem
                   si.Name = tmp.WorkDay
                   si.TooltipValue = tmp.WorkDay & " -> " & tmp.Employee
                   si.YValue = tmp.Performance
                   ca.Items.Add(si)
               End If
           Next
       Next

The result looks like the attached chart. It's close but I don't see the x labels (Should show the date) and the data is therefore not aligned to the proper x axis.

Thanks for any help!
Danail Vasilev
Telerik team
 answered on 21 Nov 2014
1 answer
84 views
I have a web form using Visual studio 2012. On this form, I have two DIV's. One DIV has a RadMenu and the other DIV has some text. I wanted to put some space in between the text and the RadMenu but I cannot seem to make it work using DIV properties margin and/or padding.

I know there is an easy way to do this but I need to use the margin attributes to make it work. The design time view looks perfect but when I run using IE or Chrome the margin-top property for the second DIV is above the RadMenu.

Is this a case where the RadMenu is being rendered at the end?

Here is my test code (there is no code behind):

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style>
.cssPageDivMenu
{
background-color: lightyellow;
text-align: left;
display: block;
}

.cssPageDivTitle
{
background-color: lightblue;
text-align: left;
margin-bottom: 15px;
margin-top: 15px;
display: block;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div class="cssPageDivMenu">
<telerik:RadMenu ID="RadMenuPage" runat="server" Width="100%">
<Items>
<telerik:RadMenuItem runat="server" NavigateUrl="~/a.aspx" Text="A Page">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" NavigateUrl="~/b.aspx" Text="B Page">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>
</div>
<div class="cssPageDivTitle">
Page Title
</div>
</form>
</body>
</html>
Magdalena
Telerik team
 answered on 21 Nov 2014
1 answer
240 views
Hi,

I tried to set a default-Filter-Value in my FilterTemplate.
But my Default-Item doesn´t work as well... The filtering still shows "ALL" items

I need to set the default filter-value as "bearbeitung" (translation: in process)

With "<DefaultItem Text="Bearbeitung" Value="Bearbeitung"/>" it shows the correct value at the combobox.
But still shows all items.

If i choose the value "Bearbeitung" manually from the RadComboBox, the filtering works fine.

<telerik:GridBoundColumn AllowFiltering="true" FilterControlWidth="100px" DataField="TicketStatusBezeichnung" HeaderText="Ticket Status" ShowFilterIcon="true"  AutoPostBackOnFilter="true"><br>                    <FilterTemplate>
<
telerik:RadComboBox  ID="RadComboBoxTicketStatus" DataSourceID="SqlDataSource2" DataTextField="TicketStatusBezeichnung"<br>                            DataValueField="TicketStatusBezeichnung" Height="200px" AppendDataBoundItems="true"  SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("TicketStatusBezeichnung").CurrentFilterValue %>'<br>                            runat="server" OnClientSelectedIndexChanged="TitleIndexChanged" Sort="Descending"><br>                            <DefaultItem Text="Bearbeitung" Value="Bearbeitung"/><br>                            <Items><br>                                <telerik:RadComboBoxItem Text="Alle" /><br>                            </Items><br>                        </telerik:RadComboBox><br>                        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"><br>                            <script type="text/javascript"><br>                                function TitleIndexChanged(sender, args) {<br>                                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");<br>                                    tableView.filter("TicketStatusBezeichnung", args.get_item().get_value(), "EqualTo");<br>                                }<br>                            </script><br>                        </telerik:RadScriptBlock><br>                    </FilterTemplate><br>               
</
telerik:GridBoundColumn>

Thanks in advance :)

best,
Marc B
Viktor Tachev
Telerik team
 answered on 21 Nov 2014
1 answer
66 views
Hello .
I have Problem with grid.sometimes pager render in two lines and it look like awful.how can I solve this Problem?
I am Using telerik 2013 Q1 SP1.
I attach Picture to this thread .
Konstantin Dikov
Telerik team
 answered on 21 Nov 2014
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?