Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
85 views
I implemented a slideshow:
<telerik:RadRotator ID="radSlideShow" runat="server" DataSourceID="xmlSlideShowSource"
    Width="516px" Height="310px" ItemWidth="516px" ItemHeight="310px"
    RotatorType="SlideShow" FrameDuration='<%$ AppSettings:SlideShowFrameDuration %>'
    OnClientItemShown="radSlideShow_OnClientItemShown"
    OnClientLoad="radSlideShow_OnClientLoad">
    <SlideShowAnimation Duration='<%$ AppSettings:SlideShowFadeDuration %>' Type="CrossFade" />
    <ItemTemplate>
        <a href='<%# XPath("href") %>'>
            <img src='<%# System.Configuration.ConfigurationManager.AppSettings("SlideShowImagesRelativePath") + XPath("filename") %>' alt='<%# XPath("description") %>' % style="border-width: 0px;" />
        </a>
    </ItemTemplate>
</telerik:RadRotator>

And it transitions nicely from frame to frame without any problems.  But, I also included a custom navigation control that uses the clientside API to change the current visible frame by the index.
function showItemByIndex(index) {
    /* Be sure the slideShow RadRotator object is assigned */
    if (slideShow == null) return;
 
    /* Set the current frame index, 'false' to disable animation */
    slideShow.set_currentItemIndex(index, false);
 
    /* Reset the slideshow's timer, so that it doesn't just quickly change */
    slideShow.stop();
    slideShow.start();
 
    /* Set the CSS of the button that the user clicked on */
    setButtonByIndex(index);
}

The code appears to be working, except that whatever the previous slide was that was animated, it is not visible to go back to.  For example, assume three slides:

Page is loaded
Slide[0] is displayed
Slide[0] fades out, as Slide[1] fades in
User clicks on NavigationButton[0]
"showItemByIndex(0)" is executed
RadRotator sets the current item index to 0
Slide[0] is still faded out, and a blank frame is displayed

In my tests, the previous frame is always invisible because it was faded out.  I hope I explained this well enough.  I used "Fade" instead of "CrossFade" for an animation, and it works fine, so I've implemented that although I prefer the cross fade.

Slav
Telerik team
 answered on 07 Mar 2012
2 answers
138 views

I have RadWindow in my page , which contains a RadListBox.
I have custom validator on the same page. I do not want this custom valiadator server side function to be called on double click/selection change event  of list box. Causevalidation property of listbox is set to false.
Still server side validation function is being called on double click/selection change event of listbox.
Any idea how to avoid this?

Thanks in Advance

Meera
Top achievements
Rank 1
 answered on 07 Mar 2012
7 answers
113 views

hi

This is the CSS for the monthview  and how do i have borders around an appointment?

  .rsShowMore
{
   display: none !important;
}
     
      .RadScheduler .rsMonthView .rsAptContent
    {
            position: static !important;
            height: auto !important;
           
     }
 .rsMonthView .rsWrap  
     {  
        height: 50px !important;
      
     }  
     .rsMonthView .rsDateWrap  
     {  
        height: 24px !important;
      
     }  
     .rsMonthView .rsLastWrap   
     {  
        height: 24px !important;
       
          
     }  
     .rsMonthView .rsApt  
     {  
        height: 48px !important;
      
     }  

.RadScheduler .rsMonthView .rsAptContent
{
    min-height: 35px;
    border:1px;
}

Ivana
Telerik team
 answered on 07 Mar 2012
1 answer
826 views
Greetings,
I'm currently facing a problem while trying to populate my grid.
Its datasource is basically an Object Data Source like this:

    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ObjectDataSource1">
<MasterTableView AutoGenerateColumns="False" DataSourceID="ObjectDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridBoundColumn DataField="TitleChoiceIncident"
            HeaderText="TitleChoiceIncident" ReadOnly="True"
            SortExpression="TitleChoiceIncident" UniqueName="TitleChoiceIncident">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ValueChoiceIncident"
            HeaderText="ValueChoiceIncident" ReadOnly="True"
            SortExpression="ValueChoiceIncident" UniqueName="ValueChoiceIncident">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idAgir" DataType="System.Int32"
            HeaderText="idAgir" SortExpression="idAgir" UniqueName="idAgir">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idUtilisateur" DataType="System.Int32"
            HeaderText="idUtilisateur" SortExpression="idUtilisateur"
            UniqueName="idUtilisateur">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idEmetteur" DataType="System.Int32"
            HeaderText="idEmetteur" SortExpression="idEmetteur" UniqueName="idEmetteur">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idTypeAction" DataType="System.Int32"
            HeaderText="idTypeAction" SortExpression="idTypeAction"
            UniqueName="idTypeAction">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idEntreprise" DataType="System.Int32"
            HeaderText="idEntreprise" SortExpression="idEntreprise"
            UniqueName="idEntreprise">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idFamille" DataType="System.Int32"
            HeaderText="idFamille" SortExpression="idFamille" UniqueName="idFamille">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idProjet" DataType="System.Int32"
            HeaderText="idProjet" SortExpression="idProjet" UniqueName="idProjet">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idGroupeContact" DataType="System.Int32"
            HeaderText="idGroupeContact" SortExpression="idGroupeContact"
            UniqueName="idGroupeContact">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idOrdinateur" DataType="System.Int32"
            HeaderText="idOrdinateur" SortExpression="idOrdinateur"
            UniqueName="idOrdinateur">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idParent" DataType="System.Int32"
            HeaderText="idParent" SortExpression="idParent" UniqueName="idParent">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idEtatIncident" DataType="System.Int32"
            HeaderText="idEtatIncident" SortExpression="idEtatIncident"
            UniqueName="idEtatIncident">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idSousCategorie" DataType="System.Int32"
            HeaderText="idSousCategorie" SortExpression="idSousCategorie"
            UniqueName="idSousCategorie">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="date" HeaderText="date"
            SortExpression="date" UniqueName="date">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="heure" HeaderText="heure"
            SortExpression="heure" UniqueName="heure">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="durée" HeaderText="durée"
            SortExpression="durée" UniqueName="durée">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="priorite" DataType="System.Int32"
            HeaderText="priorite" SortExpression="priorite" UniqueName="priorite">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="blocage" DataType="System.Boolean"
            HeaderText="blocage" SortExpression="blocage" UniqueName="blocage">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="fait" DataType="System.Boolean"
            HeaderText="fait" SortExpression="fait" UniqueName="fait">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="facturable" DataType="System.Boolean"
            HeaderText="facturable" SortExpression="facturable" UniqueName="facturable">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="alerterAgir" DataType="System.Boolean"
            HeaderText="alerterAgir" SortExpression="alerterAgir" UniqueName="alerterAgir">
        </telerik:GridCheckBoxColumn>
        <telerik:GridBoundColumn DataField="dateRappel" DataType="System.DateTime"
            HeaderText="dateRappel" SortExpression="dateRappel" UniqueName="dateRappel">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="descriptionAgir"
            HeaderText="descriptionAgir" SortExpression="descriptionAgir"
            UniqueName="descriptionAgir">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="cheminFichier" HeaderText="cheminFichier"
            SortExpression="cheminFichier" UniqueName="cheminFichier">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="objet" HeaderText="objet"
            SortExpression="objet" UniqueName="objet">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="lieu" HeaderText="lieu"
            SortExpression="lieu" UniqueName="lieu">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="dateSaisit" DataType="System.DateTime"
            HeaderText="dateSaisit" SortExpression="dateSaisit" UniqueName="dateSaisit">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="dateAgir" DataType="System.DateTime"
            HeaderText="dateAgir" SortExpression="dateAgir" UniqueName="dateAgir">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="isAgenda" DataType="System.Boolean"
            HeaderText="isAgenda" SortExpression="isAgenda" UniqueName="isAgenda">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="isAgendaPerso" DataType="System.Boolean"
            HeaderText="isAgendaPerso" SortExpression="isAgendaPerso"
            UniqueName="isAgendaPerso">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="isIncidentGen" DataType="System.Boolean"
            HeaderText="isIncidentGen" SortExpression="isIncidentGen"
            UniqueName="isIncidentGen">
        </telerik:GridCheckBoxColumn>
        <telerik:GridBoundColumn DataField="dateDebut" DataType="System.DateTime"
            HeaderText="dateDebut" SortExpression="dateDebut" UniqueName="dateDebut">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="dateEtatIncident"
            DataType="System.DateTime" HeaderText="dateEtatIncident"
            SortExpression="dateEtatIncident" UniqueName="dateEtatIncident">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="isPause" DataType="System.Boolean"
            HeaderText="isPause" SortExpression="isPause" UniqueName="isPause">
        </telerik:GridCheckBoxColumn>
        <telerik:GridBoundColumn DataField="idTypeDemande" DataType="System.Int32"
            HeaderText="idTypeDemande" SortExpression="idTypeDemande"
            UniqueName="idTypeDemande">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="TempsEstime" HeaderText="TempsEstime"
            SortExpression="TempsEstime" UniqueName="TempsEstime">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Acceptation" HeaderText="Acceptation"
            SortExpression="Acceptation" UniqueName="Acceptation">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="Accord" DataType="System.Boolean"
            HeaderText="Accord" SortExpression="Accord" UniqueName="Accord">
        </telerik:GridCheckBoxColumn>
        <telerik:GridBoundColumn DataField="DerniereDateModif"
            DataType="System.DateTime" HeaderText="DerniereDateModif"
            SortExpression="DerniereDateModif" UniqueName="DerniereDateModif">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idExchange" HeaderText="idExchange"
            SortExpression="idExchange" UniqueName="idExchange">
        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="ImageColumnValider">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButtonValidation" runat="server" ImageUrl="~/img/validation.gif"
                            CommandName="Submit" CommandArgument='<%#Eval("idAgir")%>' ToolTip="Valider le ticket"
                            OnClick="Submit_Click" OnClientClick="return confirm('Êtes vous sûr de vouloir valider ce ticket?');" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="ImageColumnDecliner">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButtonDecliner" runat="server" ImageUrl="~/img/croix.png"
                            CommandName="Decline" CommandArgument='<%#Eval("idAgir")%>' ToolTip="Décliner la proposition"
                            OnClick="Decline_Click" OnClientClick="return confirm('Êtes vous sûr de vouloir décliner la proposition?');" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
    </Columns>
</MasterTableView>
 
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>
    </telerik:RadGrid>
 
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetNewAgirsByClient" TypeName="DBAccess.DAOAgir">
        <SelectParameters>
            <asp:SessionParameter Name="idContact" SessionField="contact" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>

I get this error. I don't understand why.
Thanks in advance for your help.

Antonio Stoilkov
Telerik team
 answered on 07 Mar 2012
1 answer
66 views
I just switched a fairly large, 3-year-old application to the latest version of the Ajax controls.  One of the primary screens uses a RadGrid to display search results.  After switching to the new release (we had been using 2010.3.1717.40) the RadGrid now shows a 17px wide gap on the right side of the grid (see attached).  In investigating where this was coming from, I ran the IE9 Web Developer Tools, which shows a "margin-right: 17px" on the RadGridHeader div.  Here's the HTML that shows in Web Developer Tools:
<div class="rgHeaderDiv" id="ctl00_cphDefault_RadGrid1_GridHeader" style="width: 715px; overflow: hidden; margin-right: 17px;" _events="[object Object]">
If I disable the margin-right: 17px the grid aligns perfectly.  However, I can't figure out where this is being set?  How do I change this?  I searched my entire solution and I don't have any file in it that contains that text.  However, I did find it when viewing the Telerik.Web.UI.WebResource.axd file in Web Developer Tools.  So I have to assume it's coming from there.  Please let me know how to fix this.  

Thanks for your help!
Eddie
Tsvetina
Telerik team
 answered on 07 Mar 2012
2 answers
97 views
Im using the RadWindow in an application.  Can a child window send information to a control in the parent window (like a textbox)  on the client side while the child window is still open ?
rdmptn
Top achievements
Rank 1
 answered on 07 Mar 2012
0 answers
53 views
Hi,

I have a RadTreeView control which i am loading the tree with Load On Demand option. I have to implement search functionality(text search) in this case.

Problem is as i am using load on Demand i am getting the node details on click of the + symbol, so it would not search correctly for the child node which were not retrieve yet.

Is there any simple way to do this.

Thanks in advance.
Naga Jyothi
Top achievements
Rank 1
 asked on 07 Mar 2012
1 answer
78 views
Hi. I have run the installation on SharePoint 2010 Foundation. However when I preview any of the web-parts the SharePoint page fails. We simply want to integrate the RadGridView component into our portal. Could you point us in the right direction. Regards Paul
Maya
Telerik team
 answered on 07 Mar 2012
3 answers
118 views
Hi Friends,

  • We done paging for rad list view by Rad Data Pager. But in Rad Grid It not works. If any samples Please forward.
  • Without Rad Data Pager, I got some links but I need like the image i attached.

Thanks


Shinu
Top achievements
Rank 2
 answered on 07 Mar 2012
5 answers
402 views
I am using the Telerik RadChart (Q3 2009) with a DotNetNuke installation (5.1.4), in a custom module.  Everything has been working fine, but today I noticed that I'm getting a "Error loading RadChart Image" error message on my module.  I have both a development and a prod environment.  Development is a Windows 2008 R2 server (IIS 7.5), and Prod is a Windows 2003 (IIS 6) box.  The web.config files are identical, and everything works fine in dev, but not in prod (as is always the case).

In <system.webserver> <handlers>, I have:

<add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="../../ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />

and also tried <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />  

and in <system.web> I have:

<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

In my code, I also have a line that reads: RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd")

and I've also tried setting UseSession to false, and setting a temporary folder.  This produced exactly the same results, however, I did see the chart images being created in my temp folder.

I'm not sure what I'm missing.. any help is greatly appreciated!





Chakrapani
Top achievements
Rank 1
 answered on 07 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?