Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
160 views
Hi! 

In this thread I read about the animation feature with the set_currentItemIndex()-Method

So I tried it. But it does not work for me. Here is what I've done to get it work:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="xmlDataSource1"
        FrameDuration="360000000" Width="675" ItemWidth="675" Height="265" ScrollDirection="Up"
        ItemHeight="265">
        <ItemTemplate>
            <div class="itemTemplate">
                <img src="Images/<%# XPath("filename") %>" style="border: 0px;" alt="banner" />
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
    <asp:XmlDataSource ID="xmlDataSource1" runat="server" DataFile="banners.xml"></asp:XmlDataSource>
    <div class="nav">
        <a href="#" onclick="javascript:setNewContent(0);">Banner 1</a>
        <a href="#" onclick="javascript:setNewContent(1);">Banner 2</a>
        <a href="#" onclick="javascript:setNewContent(2);">Banner 3</a>
        <a href="#" onclick="javascript:setNewContent(3);">Banner 4</a>
        <a href="#" onclick="javascript:setNewContent(4);">Banner 5</a>
    </div>
here the js:
function setNewContent(selectedContentIndex) {
    // finding the radRotator
    var rotator = $find('<%= RadRotator1.ClientID %>');
 
    rotator.set_currentItemIndex(selectedRotatorItem, true);
}
But doesn't work. What I have to do? //EDIT: What does not work? -> The animation does not work... the banner changes but without animation 

Also it would be nice if you could show me how to turn off auto-scrolling, cannot find anything how to do this. 


Thanks in advance!


Julian
Julian
Top achievements
Rank 1
 answered on 05 Aug 2011
3 answers
96 views
I'm using RadConfirm on a linkbutton to confirm a delete action. Since firefox 5.0 the button doesnt seem to continue the delete event untill i click it a second time. So first it shows the confirm, if I click ok, it does nothing untill i the linkbutton again. On older versions of firefox (havent tested 4.0) , IE or safari no problem..

I'm using the 2010 Q3 release.

I took the telerik examples and changed the button in the example into a linkbutton and noticed that it also stopped working on firefox 5.0.
Is there a workaround for this problem?

Thanks
Jonathan
Marin Bratanov
Telerik team
 answered on 05 Aug 2011
3 answers
292 views
I'm using the RadTreeView control in a ASP.Net user control. Each of my nodes have a ImageUrl and text.  I need to add a button to each node that triggers an event when the button is clicked.

Is there an example of this?

Ivan Zhekov
Telerik team
 answered on 05 Aug 2011
2 answers
169 views
Hi all...I'm trying to make a pdf of a radgrid from a button...This radgrid has a default skin (Windows7)...Can someone explain me how to give the skin equal to this pdf ? I have so many row...But generating the file...I have every row overlapped in one...
Andrea
Top achievements
Rank 1
 answered on 05 Aug 2011
3 answers
125 views
I have a the rad date picker that is giving the following error on IE8 when clicking on the calendar for the date picker:
Microsoft JScript runtime error: 'iframeShim.style' is null or not an object

It's happening on this line of code:

}d.iframeShim.style.top=(RadHelperUtils.IsDefined(c))?(c+"px"):d.style.top;

Here is my aspx code:

 

<div class="labels"><asp:Label ID="lblStartDate" runat="server" Text="Start Date:"></asp:Label></div>

 

 

<div class="textlabel"><telerik:RadDatePicker ID="dtStartDate" runat="server" Skin="DMID" EnableEmbeddedSkins="false"

 

 

OnSelectedDateChanged="dtStartDate_SelectedDateChanged" AutoPostBack="True" ToolTip="start date">

 

 

<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"

 

 

Skin="DMID" EnableEmbeddedSkins="False">

 

 

</Calendar>

 

 

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>

 

 

<DateInput DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy" EnableEmbeddedSkins="False"

 

 

AutoPostBack="True">

 

 

</DateInput>

 

 

</telerik:RadDatePicker>

 

 

<asp:RequiredFieldValidator ID="rfvStartDate" runat="server" ControlToValidate="dtStartDate"

 

 

ErrorMessage="<label for='dtStartDate'>Start Date</label>" Text="*" Display="Dynamic"

 

 

ValidationGroup="vRequired"></asp:RequiredFieldValidator>

 

 

</div>

 

 

<div class="labels">

 

 

<asp:Label ID="lblEndDate" runat="server" Text="End Date:"></asp:Label>

 

 

</div>

 

 

<div class="textlabel">

 

 

<telerik:RadDatePicker ID="dtEndDate" runat="server" Skin="DMID" EnableEmbeddedSkins="false">

 

 

</telerik:RadDatePicker>

 

 

<asp:RequiredFieldValidator ID="rfvEndDate" runat="server" ControlToValidate="dtEndDate"

 

 

ErrorMessage="<label for='dtEndDate'>End Date</label>" Text="*" Display="Dynamic"

 

 

ValidationGroup="vRequired"></asp:RequiredFieldValidator>

 

 

</div>

 

khaled
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
87 views
Hi Friends,

I'm facing a problem in Rad Tree View. If i Drag a Node, I need to show the Image for Node Position in Tree View.

Here i attached the image. If i drag and drop the Node as Child or Move to New Position. I'll need to give clear picture for this.


Thanks
Plamen
Telerik team
 answered on 05 Aug 2011
2 answers
114 views
Hi

I am trying to evaluate RAD Editor for SP2010 and of particular interest is the way it deals with List item editing, however when I attempt to edit a list item, i recieve a very basic text bar, I have tried an IISREST with no luck.
Attached is a screenshot of the toolbar in SP2010.

Any help is appreciated.
Yeamin Al
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
137 views

Hi,

i am using a RadToolbar with multiple RadToolBarDropDown-Controls, which are using the OnLoad-Method to attach the Datasource.

My problem is that I am not able to verify, which button has been pressed, because the number of items in the drop down lists is not constant. I need a dynamic solution for this.

I am using something like to following code in the background:

Protected Sub Toolbar1_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles Toolbar1.ButtonClick
        Select Case e.Item.Index
        Case 1
               dim testString as String = e.Item.Text           
        End Select
 
 
End Sub

Kate
Telerik team
 answered on 05 Aug 2011
1 answer
167 views

Hello,

I am working to implement localization of a big portal. There is a lot of different telerik  controls. I found that controls supports localization via Global resources and .resx files
The problems are that we are adding new languages dynamically and that number of controls is too big.

1) Is there any way how to implement translations dynamically i.e. without .resx files?
2) Is there some way how we can initialize culture globally (not for every control grid.Culture = ...) and individual for each request e.g. some global settings or something like that?

Thanks

Vasil
Telerik team
 answered on 05 Aug 2011
8 answers
150 views
Hi,

here is what I want for my RadGrid :

  • fixed width -> ok
  • all rows with same heigth -> ok
  • horizontal scoller -> ok
  • no vertical scoller -> ko
  • dynamic grid heigth -> ko

I can set the height of my grid because all rows have the same height. But users can change the number of displayed lines. And in this case, the heigth of the grid don't change and a vertical scroller appears.

Is it possible that the grid automatically set its heigth from its content ?


Thank you
Francis
Top achievements
Rank 1
 answered on 05 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?