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

The ajax manager on my page is not triggering client side request start and response end events even though it is performing ajax postbacks.

<script type="text/javascript">  
   
function requestStart(sender, eventArgs)  
{  
     
      alert('here');  
      document.getElementById('ZoomBar1').style.visibility = "hidden";  
   
}  
 
function responseEnd(sender, eventArgs)  
{  
    alert('here');  
   document.getElementById('ZoomBar1').style.visibility = "visible";  
 
}  
</script> 
 
   <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
   <ClientEvents OnRequestStart="requestStart" OnResponseEnd="responseEnd" /> 
       <AjaxSettings> 
           <telerik:AjaxSetting AjaxControlID="ZoomBar1">  
               <UpdatedControls> 
                   <telerik:AjaxUpdatedControl ControlID="Map1" /> 
               </UpdatedControls> 
           </telerik:AjaxSetting> 
       </AjaxSettings> 
    </telerik:RadAjaxManager> 

I have other pages on which the request start and response end are being triggered. I guess something on my page must be interfering but I don't know how to debug this.

thanks
andieje
Top achievements
Rank 1
 answered on 28 Sep 2009
2 answers
221 views
Hi There,

I have a RadGrid with three NumericColumns.
When in EditMode, I need to check if the sum of the values of the three columns are not greater than 100%. If so, I might not let RadGrid update or insert.

I couldn't find any reference or example to accomplish that.

If someone could help...

Thanks.

Marcio Nascimento
Marcio Nascimento
Top achievements
Rank 1
 answered on 28 Sep 2009
4 answers
184 views

I encountered a problem with my clientbound grid. The markup is shown below. The grid successfully generates a default pagesize of 10 rows. As you can see the first column is a Template column showing a linkbutton. All 10 rows initially contain the corect data in the linkbutton column.
The problem is that when I increase the page size from 10 to say 20 at runtime the template column does not generate any content for the rows beyond the initial first 10. Everything else is present and accounted for (i.e. rows 11 to 20 are complete in every other column) but only the original 10 links will appear. Links 11 to 20 are blank. I've checked the RadGrid1_RowDataBound() event and it's correctly firing 20 times when the page size is incresed to 20 so the problems not there.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
    AllowSorting="True" AutoGenerateColumns="False" GridLines="None">
    <mastertableview ClientDataKeyNames="EquipID">
        <PagerStyle Mode="NumericPages" />
        <Columns>
            <telerik:GridTemplateColumn HeaderText="EquipID" SortExpression="EquipID" DataField="EquipID" DataType="System.Int32">
                <ItemTemplate>
                    <asp:linkbutton ID="lnkEquipID" NavigateUrl="#" runat="server"></asp:linkbutton>
                </ItemTemplate>
            </telerik:GridTemplateColumn>            
            <telerik:GridBoundColumn DataField="OrgID" HeaderText="OrgID" DataType="System.Int32"
                Visible="false">
            </telerik:GridBoundColumn>

           ... rest of GridBoundColumns ...
           
               <clientsettings allowcolumnsreorder="True" reordercolumnsonclient="True" databinding-enablecaching="false" EnableRowHoverStyle="true">
        <Selecting AllowRowSelect="True" />
        <DataBinding SelectMethod="GetDataAndCount" Location="https://localhost/MyService/MyService.svc"
            SortParameterType="Linq" FilterParameterType="Linq">
        </DataBinding>
        <Selecting AllowRowSelect="True" />
        <ClientEvents OnRowContextMenu="RowContextMenu" OnDataBinding="RadGrid1_DataBinding" OnRowDataBound="RadGrid1_RowDataBound" />
    </clientsettings>
</telerik:RadGrid>


Any idies. As always any help would be appreciated.
Pavlina
Telerik team
 answered on 28 Sep 2009
7 answers
159 views
I am having a problem with RadTreeView contextMenu clicks in Chrome 3.    We have a production application that does not work anymore with chrome 3.   This problem just happed this week, worked fine with earlier version of chrome.   We have suggested that our users use chrome as it is very fast for ajax calls.  Please help!
Paul
Telerik team
 answered on 28 Sep 2009
3 answers
108 views
Trying to display a total footer row and I could of swore it was working fine until today and I made a master page

As you can see in the screen shot the total footer only displays "Count: " but no data ... but all the group by footers are just fine.  Ideas?

http://mmo-rpg.com/footermiss.png



<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
<%@ Register assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Charting" tagprefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="Header" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="PrimaryContent" Runat="Server">  
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="Default_ShipGrid">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="Default_ShipGrid" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0"   
                        MultiPageID="RadMultiPage1" Width="100%">  
                <Tabs> 
                    <telerik:RadTab runat="server" Text="Welcome" Selected="True">  
                    </telerik:RadTab> 
                    <telerik:RadTab runat="server" Text="Shipping">  
                    </telerik:RadTab> 
                </Tabs> 
            </telerik:RadTabStrip> 
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"   
                        Width="100%">  
                <telerik:RadPageView ID="RadPageView1" runat="server" Width="100%">  
                <h2><a href="#">Welcome</a></h2>  
                <p>This is a development site to test things out.  Its ASP.NET and VB and RadContorls.<br /> 
                    <br /> 
                    <br /> 
                    <br /> 
                    <br /> 
                    <br /> 
                    The Bacground ends about here yay!<br /> 
                    <br /> 
                </p>      
                </telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView2" runat="server" Width="100%">  
                    <asp:SqlDataSource ID="ShipChartSQL" runat="server"   
                        ConnectionString="<%$ ConnectionStrings:ERPLXFConnectionString %>"   
                        SelectCommand="SELECT ILDATE, ILPFAC, SUM(ILQTY * ILNET) AS TTL, SUBSTRING(CAST(ILDATE AS char(8)), 5, 2) + '-' + SUBSTRING(CAST(ILDATE AS char(8)), 7, 2) AS NomDate FROM SIL WHERE (ILPFAC &lt;&gt; '') AND (CAST(SUBSTRING(CAST(ILDATE AS char(8)), 5, 2) AS int) = MONTH(GETDATE())) AND (CAST(SUBSTRING(CAST(ILDATE AS char(8)), 1, 4) AS int) = YEAR(GETDATE())) AND (ILPROD &lt;&gt; 'FREIGHT') GROUP BY ILDATE, ILPFAC ORDER BY ILDATE, ILPFAC"   
                        DataSourceMode="DataReader"></asp:SqlDataSource> 
                   <div align="center">  
                    <telerik:RadChart ID="RadChart2" runat="server" AutoLayout="True"   
                        AutoTextWrap="True" DataGroupColumn="ILPFAC" DataSourceID="ShipChartSQL"   
                        Height="400px" Skin="Office2007" Width="850px" 
                        IntelligentLabelsEnabled="True">  
                        <Series> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="010"><Appearance><FillStyle FillType="Solid" MainColor="69, 115, 167"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="69, 115, 167" /></Appearance></telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="040"><Appearance><FillStyle FillType="Solid" MainColor="107, 70, 68"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="107, 70, 68" /></Appearance></telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="050"><Appearance><FillStyle FillType="Solid" MainColor="136, 166, 78"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="136, 166, 78" /></Appearance></telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="070"><Appearance><FillStyle FillType="Solid" MainColor="113, 88, 143"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="113, 88, 143" /></Appearance></telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="080"><Appearance><FillStyle FillType="Solid" MainColor="66, 152, 175"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="66, 152, 175" /></Appearance></telerik:ChartSeries> 
                        </Series> 
                        <PlotArea> 
                            <DataTable> 
                                <Appearance Position-AlignedPosition="Bottom" RenderType="AutoSize">  
                                </Appearance> 
                            </DataTable> 
                            <XAxis AutoScale="False" DataLabelsColumn="NomDate" MaxValue="20090911"   
                                MinValue="20090901" Step="1">  
                                <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134"   
                                    ValueFormat="ShortDate">  
                                    <MajorGridLines Color="134, 134, 134" Width="0" /> 
                                    <TextAppearance TextProperties-Color="Black">  
                                    </TextAppearance> 
                                </Appearance> 
                                <AxisLabel> 
                                    <TextBlock Text="Date">  
                                        <Appearance TextProperties-Color="Black">  
                                        </Appearance> 
                                    </TextBlock> 
                                </AxisLabel> 
                                <Items> 
                                    <telerik:ChartAxisItem Value="20090901"><TextBlock Text="9/1/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090902"><TextBlock Text="9/2/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090903"><TextBlock Text="9/3/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090904"><TextBlock Text="9/4/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090908"><TextBlock Text="9/8/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090909"><TextBlock Text="9/9/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090910"><TextBlock Text="9/10/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090911"><TextBlock Text="9/11/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                </Items> 
                            </XAxis> 
                            <YAxis> 
                                <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134"   
                                    MinorTick-Color="134, 134, 134" ValueFormat="Currency">  
                                    <MajorGridLines Color="134, 134, 134" /> 
                                    <MinorGridLines Color="134, 134, 134" /> 
                                    <TextAppearance TextProperties-Color="Black">  
                                    </TextAppearance> 
                                </Appearance> 
                                <AxisLabel> 
                                    <TextBlock Text="$">  
                                        <Appearance TextProperties-Color="Black">  
                                        </Appearance> 
                                    </TextBlock> 
                                </AxisLabel> 
                            </YAxis> 
                            <Appearance> 
                                <FillStyle FillType="Solid" MainColor="">  
                                </FillStyle> 
                            </Appearance> 
                        </PlotArea> 
                        <Appearance> 
                            <Border Color="134, 134, 134" /> 
                        </Appearance> 
                        <ChartTitle> 
                            <Appearance Position-AlignedPosition="Top">  
                                <FillStyle MainColor="">  
                                </FillStyle> 
                            </Appearance> 
                            <TextBlock Text="Shipments by $ by Facility by Day">  
                                <Appearance TextProperties-Color="Black" TextProperties-Font="Arial, 18px">  
                                </Appearance> 
                            </TextBlock> 
                        </ChartTitle> 
                        <Legend> 
                            <Appearance Dimensions-Margins="15%, 2%, 1px, 1px"   
                                Dimensions-Paddings="2px, 8px, 6px, 3px">  
                                <ItemTextAppearance TextProperties-Color="Black">  
                                </ItemTextAppearance> 
                                <ItemMarkerAppearance Figure="Diamond">  
                                </ItemMarkerAppearance> 
                            </Appearance> 
                        </Legend> 
                    </telerik:RadChart> 
                    </div> 
                    <asp:SqlDataSource ID="ShipGridSQL" runat="server"   
                        ConnectionString="<%$ ConnectionStrings:ERPLXFConnectionString %>"   
                        SelectCommand="SELECT top 500 ILDATE, ILPFAC, ILQTY * ILNET AS TTL, SUBSTRING(CAST(ILDATE AS char(8)), 5, 2) + '-' + SUBSTRING(CAST(ILDATE AS char(8)), 7, 2) AS NomDate, ILPROD, ILQTY, ILNET, ILWHS, ILORD, ILCUST FROM SIL WHERE (ILPFAC &lt;&gt; '') AND (CAST(SUBSTRING(CAST(ILDATE AS char(8)), 5, 2) AS int) = MONTH(GETDATE())) AND (CAST(SUBSTRING(CAST(ILDATE AS char(8)), 1, 4) AS int) = YEAR(GETDATE())) AND (ILPROD &lt;&gt; 'FREIGHT') ORDER BY ILDATE DESC, ILPFAC"   
                        DataSourceMode="DataReader"></asp:SqlDataSource> 
                        <div> 
                    <telerik:RadGrid ID="Default_ShipGrid" runat="server" AllowFilteringByColumn="True"   
                        AllowSorting="True" DataSourceID="ShipGridSQL"   
                        GridLines="None" ShowGroupPanel="True" ShowFooter="True">  
                        <MasterTableView AutoGenerateColumns="False" GroupsDefaultExpanded="False" ShowGroupFooter="True" ShowFooter="True">  
                            <RowIndicatorColumn> 
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn> 
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                            <Columns> 
                                <telerik:GridBoundColumn DataField="NomDate" HeaderText="Date"   
                                    ReadOnly="True" SortExpression="NomDate" UniqueName="NomDate" Aggregate="Count">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ILPFAC" HeaderText="Facility"   
                                    SortExpression="ILPFAC" UniqueName="ILPFAC">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ILORD" DataType="System.Decimal"   
                                    HeaderText="Order No." SortExpression="ILORD" UniqueName="ILORD">  
                                </telerik:GridBoundColumn>    
                                <telerik:GridBoundColumn DataField="ILCUST" DataType="System.Decimal"   
                                    HeaderText="Cust No." SortExpression="ILCUST" UniqueName="ILCUST">  
                                </telerik:GridBoundColumn>                                                                
                                <telerik:GridBoundColumn DataField="ILPROD" HeaderText="Prod"   
                                    SortExpression="ILPROD" UniqueName="ILPROD">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ILQTY" DataType="System.Decimal"   
                                    HeaderText="Qty" SortExpression="ILQTY" UniqueName="ILQTY"   
                                    DataFormatString="{0:n}" Aggregate="Sum"   
                                    FooterAggregateFormatString="{0:n}">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ILNET" DataType="System.Decimal"   
                                    HeaderText="Net $" SortExpression="ILNET" UniqueName="ILNET"   
                                    DataFormatString="{0:c}">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="TTL" DataType="System.Decimal"   
                                    HeaderText="Total" ReadOnly="True" SortExpression="TTL" UniqueName="TTL"   
                                    DataFormatString="{0:c}" Aggregate="Sum">  
                                </telerik:GridBoundColumn>                                  
                                <telerik:GridBoundColumn DataField="ILWHS" HeaderText="Warehouse"   
                                    SortExpression="ILWHS" UniqueName="ILWHS">  
                                </telerik:GridBoundColumn> 
                            </Columns> 
                <GroupByExpressions> 
                    <telerik:GridGroupByExpression> 
                       <GroupByFields> 
                            <telerik:GridGroupByField FieldName="ILPFAC" /> 
                       </GroupByFields> 
                       <SelectFields> 
                            <telerik:GridGroupByField FieldName="ILPFAC" HeaderText="Facility" /> 
                       </SelectFields>                                               
                    </telerik:GridGroupByExpression> 
                    <telerik:GridGroupByExpression> 
                       <GroupByFields> 
                            <telerik:GridGroupByField FieldName="NomDate" /> 
                       </GroupByFields> 
                       <SelectFields> 
                            <telerik:GridGroupByField FieldName="NomDate" HeaderText="Date" /> 
                       </SelectFields> 
                    </telerik:GridGroupByExpression> 
                </GroupByExpressions> 
                        </MasterTableView> 
                        <FooterStyle Font-Bold="True" Font-Size="Small" Font-Italic="True" /> 
                        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True">  
                            <Selecting AllowRowSelect="True" /> 
                        </ClientSettings> 
                        <GroupingSettings ShowUnGroupButton="true" /> 
                    </telerik:RadGrid> 
                </div> 
                </telerik:RadPageView> 
            </telerik:RadMultiPage>           
</asp:Content> 
 
 
 
Pavlina
Telerik team
 answered on 28 Sep 2009
3 answers
144 views
Hi,

I'm using the Trial version of Telerik for development of a web App and decided to buy it. I see in the details of the purchase there is the source code of the controls and I want to know to what extent I will be able to modify the Chart component.

What I need in my application is to generate a chart with interpolated values, and every time the chart is zoomed the data need to be re-interpolated. This is something I couldn't achieve with RadChart.

The question is, there is a way to achieve this functionality modifying the source code of the RadChart by myself or the way it's implemented don't allow this.

Thanks in advance,

Simón de Lizarza
Vladimir Milev
Telerik team
 answered on 28 Sep 2009
3 answers
160 views
Hi,

I'm using the asp.net radgrid in a project and I'm using the autogenerate columns feature. Now, I'd like to add a column to the autogenerated ones, and it needs to be the last column in the grid.

I can add a first column declaratively, but is there any way to add a last column?

Thanks.

Stefan
Martin
Telerik team
 answered on 28 Sep 2009
2 answers
179 views
Hello !
In our project I am considering using your Treeview component in several places. (for different purposes) as I like the functionality it provides. However there is one issue I need input/help on.

When using your Treeview in a Master/Content page context where the treeview component resides in the masterpage and navigates the user to different aspx pages (A very typical scenario IMO), you would loose the viewstate (because the page navigation is a GET not a POST) which would case the treeiview to loose its state each time I navigate in it. Obviously I want the treeview to keep its state between GET's (and not only postbacks which is easy enough).

Any suggestions for solving this case ? I have seen that Gaiaware treeview can persist state in cookies, is there any similar functionality on this treeview component to keep client state between GETS ?

I guess I could use page_load to find the node being loaded (finding the current node by comparing the navigation attribute of the page requested URL and then selecting it server side ?) but is this how it' supposed to be done.

Thanks, Johan
johan ekman
Top achievements
Rank 1
 answered on 28 Sep 2009
2 answers
141 views
Hi,

I'm using the editor with image\flash\media manager. Works great, but I dont know how to accomplish the following:

When a user uploads a file, I want to assign the uploaded file a unique name (like a guid) . This to prevent overwriting existsing files. (user WILL check "overwrite if file exists", without caring about others useing that file.)

eg. someone uploads logo.gif, I want it to be saved as 1234567890_logo.gif

any ideas? Other methodes that lead to the same result in overwite protection are also welcome.

Thx.
it-workz
Top achievements
Rank 1
 answered on 28 Sep 2009
6 answers
356 views
I have the following Rotator Markup:

<telerik:RadRotator ID="rotGallerySlide"   
                        runat="server"   
                        Height="400px" 
                        Width="500px"   
                        ItemHeight="400px" 
                        ItemWidth="500px" 
                        RotatorType="FromCode" 
                        OnClientItemShowing="slideShowingHandler_GPC" 
                         > 
            <ItemTemplate> 
                some templated controld  
            </ItemTemplate> 
</telerik:RadRotator> 

<

 

asp:Button ID="btnFirst" runat="server" Text=" << " OnClientClick="navigate_GPC('First'); return false;" style="margin:0px 5px;" /><asp:Button ID="btnBack" runat="server" Text=" < " OnClientClick="navigate_GPC('Back'); return false;" style="margin:0px 5px;" /><asp:Button ID="btnNext" runat="server" Text=" > " OnClientClick="navigate_GPC('Next'); return false;" style="margin:0px 5px;" /><asp:Button ID="btnLast" runat="server" Text=" >> " OnClientClick="navigate_GPC('Last'); return false;" style="margin:0px 5px;" />

 


and the following Javascript:

window.onload = function() {  
                 setTimeout(function() {  
                    var firstImg = document.getElementById("<%= btnFirst.ClientId %>");  
                    var backImg = document.getElementById("<%= btnBack.ClientId  %>");  
                    firstImg.disabled = true;  
                    backImg.disabled = true;  
                 }, 100);  
             }  
               
        function navigate_GPC(navType) {  
            var rotator = $find("<%= rotGallerySlide.ClientID %>");  
 
            switch (navType) {  
                case "First":  
                    break;  
 
                case "Back":  
                    rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Right)  
                    break;  
 
                case "Next":  
                    rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Left)  
                    break;  
 
                case "Last":  
                    break;  
 
            }  
              
        }  
 
        function slideShowingHandler_GPC(sender, args) {  
 
            var firstImg = document.getElementById("<%= btnFirst.ClientId  %>");  
            var backImg = document.getElementById("<%= btnBack.ClientId  %>");  
            var nextImg = document.getElementById("<%= btnNext.ClientId  %>");  
            var lastImg = document.getElementById("<%= btnLast.ClientId  %>");  
 
            firstImg.disabled = false;  
            backImg.disabled = false;  
            nextImg.disabled = false;  
            lastImg.disabled = false;  
           
            var count = sender.get_items().length;  
            var currentIndex = args.get_item().get_index() + 1;  
 
 
            

if

 

(!sender.isScrollingForward()) {

 

if (currentIndex == 0) {  
                firstImg.disabled = true;  
                backImg.disabled = true;  
            } }  
              
            if (currentIndex == count - 1) {  
                lastImg.disabled = true;  
                nextImg.disabled = true;  
            }  
 
        } 

First off, the back and First buttons are disabled when the page loads because the user will be on the first "slide". Then I handle the button OnClientClick and, depending on the parameter passed to the handler, I navigate through the Rotator.

Is there a way for me to wire up the "First" and "Last" buttons? I have looked high and low on the telerik site for a way to set the currentIndex of the rotator, but to no avail.

Question 2) I have encountered some strange behavior. I use the rotator ItemShowingHandler to determine the current item index. If it is the first item, I want to disable the "Back" and "First" buttons. If it is the last item, I want to disable the "Next" and "Last" buttons. My code seems to work fine, however what happens is the following. After the page loads, If I click on the "Next" button, everything works as expected. The rotator moves to the second slide, and the "Back" and "First" buttons are enabled. However, if I proceed to click on "Back", a postback occurs. I don't see how this is possible in my code, since I set return false; in the button onClientClick attribute. I notice that if I don't set the button disabled property in the Window on load event, then the postback doesn't occur. The postback occurs whether I set the disabled property in window onload or in code behind in the page load event. Is there something about  disabling a button during page load that screws up the OnClientClick Event? Is there another point in which I can disable the buttons to avoid this prior to the page being shown?
Fiko
Telerik team
 answered on 28 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?