Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
70 views
Hi Guys,

I have a rad rotator in a rad notification. This rad notification is included in a panel which can be updated after an ajax request. If so, the radrotator is not displaying the content anymore.
i saw that 
http://www.telerik.com/help/aspnet-ajax/rotator-coverflow-animation-and-ajax.html
saying you need to register the script in the code behind.

I have not been able to translate my parameters to have a persistent radrotator. Could you please help me? here is my radrotator:
<telerik:RadRotator ID="rrTest" runat="server" WrapFrames="true"
                                        Width="708" height="17" ScrollDirection="Left" ScrollDuration="19000"
                                        FrameDuration="0" RotatorType="AutomaticAdvance" ItemHeight="15px" ItemWidth="1450" >
                                        <ItemTemplate>
                                            <div style="">
                                                <% Response.Write(mystring); %>
                                            </div>
                                        </ItemTemplate>
                                    </telerik:RadRotator>


Thank you
Gregory
Greg
Top achievements
Rank 1
 answered on 25 Feb 2014
10 answers
3.6K+ views
Hi,

Bit of a long shot this, but here we go. It's more of a generic Javascript issue than a problem with the Telerik controls, although I am using the controls.

I have a problem where when I try to $find a telerik control in an ASP.NET user control it is always returned as null. However, if I $get this control using the same ID then a HTML Input Object is returned. I've tried using the $find function on a stand alone page and it works fine with either:

var control = $find("controlID") 
 
or 
 
var control = $find('<%= controlID.ClientID %>'); 

The ID of the control I am looking for is rendered like this in the HTML:

ctl00_ucRTKTemplate_ctl04_ctl00_cmFileView

ucRTKTemplate being an ASP.NET user control that loads another ASP.NET user control that contains the Telerik context menu I am attempting to find. If I type the above ID directly into the $find function then I do find the control, but obviously I would like to be able to find this control dynamically.

Any ideas?

Thanks,

Michael


Phil
Top achievements
Rank 2
 answered on 25 Feb 2014
2 answers
88 views
Hi,
    I got licensed version of 2013 Rad Grid. While it works fine in a test project. When I use the same demo code, On databind, in my application, I get an exception like below. I checked and rechecked any differences between the demo project and my application. There seems to be no difference at all. I used the same dummy datasource like in the Demo project, still I get the error. Any help is appreciated.

Telerik.Web.UI.ParseException: Syntax error '#'    at Telerik.Web.UI.ExpressionParser.NextToken()     at Telerik.Web.UI.ExpressionParser..ctor(ParameterExpression[] parameters, String expression, Object[] values)     at Telerik.Web.UI.DynamicExpression.ParseLambda(ParameterExpression[] parameters, Type resultType, String expression, Object[] values)     at Telerik.Web.UI.DynamicExpression.ParseLambda(Type itType, Type resultType, String expression, Object[] values)     at Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values)     at Telerik.Web.UI.GridDataTableFromEnumerable.FillData35()     at Telerik.Web.UI.GridDataTableFromEnumerable.FillData()     at Telerik.Web.UI.GridResolveEnumerable.Initialize()     at Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized()     at Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)     at Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)     at Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)     at Telerik.Web.UI.GridTableView.get_ResolvedDataSource()     at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)     at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)     at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)     at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)     at System.Web.UI.WebControls.DataBoundControl.PerformSelect()     at Telerik.Web.UI.GridTableView.PerformSelect()     at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()     at Telerik.Web.UI.GridTableView.DataBind()     at Telerik.Web.UI.RadGrid.DataBind()     at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)     at Telerik.Web.UI.RadGrid.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Pavlina
Telerik team
 answered on 25 Feb 2014
3 answers
163 views
I have a RadNumericTextBox in a RadGrid.  I'm using the OnClientValueChanging event to validate the numeric value (I have to do a calculation).  It works great, except when I'm editing in the RadGrid, and I change the value to an undesired value, and I click the Update ImageButton, the OnClientValueChanging event is not raised.  It just posts back and updates the row.

Any idea how I can raise the OnClientValueChanging event before the Update button posts back?
Gaurab
Top achievements
Rank 1
 answered on 25 Feb 2014
3 answers
225 views
Hi,

I using getElementPosition() method of RadTimePicker client side api. After I update version to (2013.1.220.45 ) I get an error showing that  method does not exist for the object object. Then I tried to use getLocation() method but errors still the same. Can anybody help me how to solve that errors?

In ASPX
(
 <telerik:RadDatePicker ID="RadDatePicker1" DateInput-DateFormat="dd/MM/yyyy" Style="display: none;" MinDate="01/01/1900" MaxDate="12/31/2100" runat="server">
                <ClientEvents OnDateSelected="dateSelected" />
            </telerik:RadDatePicker>
            <telerik:RadGrid ID="grdHoliday" EnableViewState="true" runat="server" OnNeedDataSource="grdHoliday_NeedDataSource">
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="HolidayKey" ClientDataKeyNames="HolidayKey">
                    <Columns>
                        <telerik:GridBoundColumn  DataField="HolidayKey" Display="false" ></telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Holiday" UniqueName="Holiday1" SortExpression="Holiday1">
                            <ItemTemplate>
                                <asp:TextBox ID="txtHoliday" Width="100%" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Holiday1")%>'></asp:TextBox>
                            </ItemTemplate>
                            <HeaderStyle Width="70%" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="HolidayDate" UniqueName="HolidayDate" SortExpression="HolidayDate">
                            <ItemTemplate>
                                <asp:TextBox ID="TextBox1" Width="100px" Text='<%# Eval("HolidayDate", "{0:dd/MM/yyyy}") %>'  runat="server"
                                             onclick="showPopup(this, event);" onfocus="showPopup(this, event);" onblur="parseDate(this, event)">
                                </asp:TextBox>
                                <asp:Image ID="popupImage" runat="server" ImageUrl="../Contents/Images/datePickerPopup.gif" 
                                           AlternateText="Click to open Calendar popup" onclick="showPopup(this, event)" />
                            </ItemTemplate>
                            <HeaderStyle Width="30%" />
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <CommandItemStyle />
                </MasterTableView>
                <ClientSettings>
                    <Selecting AllowRowSelect="true" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True"   ScrollHeight="450px"
                               SaveScrollPosition="true" FrozenColumnsCount="1" >
                    </Scrolling>
                </ClientSettings>
            </telerik:RadGrid>
)

In Script
(
  var currentTextBox = null;
            var currentDatePicker = null;

            function showPopup(sender, e) {
                currentTextBox = sender.tagName == "INPUT" ? sender : $telerik.getPreviousHtmlNode(sender);
                var datePicker = $find("<%= RadDatePicker1.ClientID %>");
                currentDatePicker = datePicker;
                datePicker.set_selectedDate(currentDatePicker.get_dateInput().parseDate(currentTextBox.value));
                //var position = datePicker.getElementPosition(currentTextBox);
                var position = datePicker.getLocation(currentTextBox);
                datePicker.showPopup(position.x, position.y + currentTextBox.offsetHeight);
            }
            function dateSelected(sender, args) {
                if (currentTextBox != null) {
                    currentTextBox.value = args.get_newValue();
                    TextBoxChanged(currentTextBox);
                }
            }
            function parseDate(sender, e) {
                if (currentDatePicker != null) {
                    var date = currentDatePicker.get_dateInput().parseDate(sender.value);
                    var dateInput = currentDatePicker.get_dateInput();

                    if (date == null) {
                        date = currentDatePicker.get_selectedDate();
                    }
                    var formattedDate = dateInput.get_dateFormatInfo().FormatDate(date, dateInput.get_displayDateFormat());
                    sender.value = formattedDate;
                }
            }
)

Thanks & Best Regards
HAN




Konstantin Dikov
Telerik team
 answered on 25 Feb 2014
3 answers
118 views
Hello,

I'm using a client template in a search box. The box is bound to a web service and the template looks like this:
<div class="searchResult">
      <div style="font-weight:bold;">#= Text #</div>
      <div style="font-size:.8em; font-style:italic;">#= DataItem.notes #</div>
</div>

Things are working just fine in Chrome and IE but, in Firefox, I'm getting an error in firebug that the DataItem is not defined:

Sys.InvalidOperationException: Sys.InvalidOperationException: Error rendering template: DataItem is not defined. There's no reason why the web service would return the dataitem for Chrome and IE but not firefox... right?

Any ideas?

Thanks,

Mike
Mike
Top achievements
Rank 1
 answered on 25 Feb 2014
1 answer
66 views
When switching between Design and Html views, html that contains a newline in a tag's attribute value, the tags <> will be converted to &lt; &gt;

This behavior can be replicated in the current RadEditor Demo

Initial Html:
<html>
    <head>
    </head>
    <body>
        <div class="class_a
        class_b">
        Hello
        </div>
    </body>
</html>

After switching between Design and Html modes its converted to:
<html>
    <head>
    </head>
    <body>
        &lt;div class="class_a
        class_b"&gt;
        Hello
    </body>
</html>
Ianko
Telerik team
 answered on 25 Feb 2014
3 answers
65 views
Hello,

I use a radRotator to display a rotating text. It behaves good in Chrome, Firefox and IE10. Nevertheless in IE8, it seems to be like jerky. My page also has a radMenu and a radGrid. It is getting worse when the mouse goes over the radGrid and the radMenu. I already decreased the speed of the rotator which seems to be correct only if the mouse does not move.

I checked two of your demos with radRotators:
http://demos.telerik.com/aspnet-ajax/rotator/examples/multiplescroller/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/rotator/examples/livexml/defaultcs.aspx

I get the same behavior.

What would be my options to improve the smoothness please?

Thank you
Gregory
Greg
Top achievements
Rank 1
 answered on 25 Feb 2014
7 answers
56 views
hi,
i have installed
telerik ajax Q3 2013 - 2013.3.1114.40
using IE 9

i have now render problems with input controls in my radgrid - there is always showing a border around them.


Venelin
Telerik team
 answered on 25 Feb 2014
1 answer
81 views
One of our customers has reported a problem right-clicking an image map in the editor using Chrome.

The problem can be reproduced using the Telerik demo editor.

A video of the problem can be seen here: http://screencast.com/t/XPQddg04leNb


Steps to reproduce the problem:


1. using Chrome, go to the Telerik demo editor:  http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultvb.aspx

2. switch to Html mode, delete the existing html, paste in the following html:

<img src="../../Img/editor.jpg" alt="product logo" style="margin-top: 25px; float: left; margin-right: 15px; border-width: 0px; border-style: solid;" usemap="#rade_img_map_1393269860391" /><br />
<map id="rade_img_map_1393269860391" name="rade_img_map_1393269860391">
<area shape="RECT" coords="16,19,59,67" href="http://www.google.com" /></map>

3. switch back to Design mode

4. click somewhere on the page outside the editor to get the focus away from the editor (this is necessary to reproduce the problem)

5. with the focus outside the editor, right-click directly on the image map area (the page/pencil icon)


Can you provide a solution to this problem?  Thanks.
Ianko
Telerik team
 answered on 25 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?