Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
158 views
Currenlty my Rad rotator configuration is like:

 

<telerik:RadRotator RotatorType="AutomaticAdvance" Skin="Windows7" ID="rotator1" 
runat="server" Height="253px" Width="500px" WrapFrames="true" ItemWidth="98%" 
ItemHeight="45px" ScrollDirection="Up"

<ItemTemplate>

 

 

<div class="feed"><%#DataBinder.Eval(Container.DataItem) %></div

 

 

 

</ItemTemplate>

</telerik:RadRotator>

And the CSS class is

.feed 
{
 overflow: auto
 width: 100%
 height: 100%
 color: #4f6b72
 background-position: center
}

 


I am binding the Rotator to a datasource at the backend.

Problem is if the bind has only 1 data.The scrolling is not happening.And if I include more items to the rotator,the scroll is happening?

Is this some default behavior with RAD rotator?


Slav
Telerik team
 answered on 09 Dec 2011
1 answer
255 views
I've created a dynamically populated Accordion Ajax control and I really want to keep it, at the same time i am trying to implament drag and drop from telerik.  below is the code i'm using how do I use both script managers?

td width="29%" height="135">
   
<ajaxToolKit:ToolkitScriptManager ID="ToolkitScriptManager2" runat="Server" />
<Scripts>
           
<ajaxToolkit:Accordion ID="NavigateAccordion" runat="server"
                                       
HeaderCssClass="accordionHeader"
                                       
ContentCssClass="accordionContent"
                                       
FadeTransitions="true"
                                       
SuppressHeaderPostbacks = "true"
                                       
AutoSize="None"
                                       
Width="220">
                                           
</ajaxToolkit:Accordion>
</td>
<td width="71%">
    &nbsp;
</td>


                           
<form id="form2" runat="server">
<telerik:RadScriptManager ID="ScriptManager1" runat="server">

       
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
       
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
       
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
   
</Scripts>
</telerik:RadScriptManager>
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Buttons" />
Dimitar Terziev
Telerik team
 answered on 09 Dec 2011
4 answers
534 views

I am using Rad grid and binding on client side using EntityDataSource. Grid.Rebind() does not work with this.

I have tried to use "RadAjaxPanel" to refresh the grid but still not working. Please help me ASAP

 

 

<telerik:RadScriptManager ID="RadScriptManagerOrders" runat="server">

        </telerik:RadScriptManager>

        <telerik:RadAjaxManager ID="RadAjaxManagerOrders" runat="server">

            <AjaxSettings>

                <telerik:AjaxSetting AjaxControlID="ButtonSave"> 

                <UpdatedControls> 

                  <telerik:AjaxUpdatedControl ControlID="ajax1Panel" LoadingPanelID="RadAjaxLoadingPanelGrid" />

                   <telerik:AjaxUpdatedControl ControlID="RadGridOrders" LoadingPanelID="RadAjaxLoadingPanelGrid" />

               </UpdatedControls> 

                </telerik:AjaxSetting> 

            </AjaxSettings>

            <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />

        </telerik:RadAjaxManager>

        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanelGrid" Skin="Windows7"

            Transparency="20" />

 

 

 

 <telerik:RadGrid>

 

 

<telerik:RadAjaxPanel ID="ajax1Panel" runat="server" >

 

<telerik:RadGrid AutoGenerateColumns="False" ID="RadGridOrders" PageSize="10" DataSourceID="EntityDataSource_Orders" EnableEmbeddedSkins="false"

            AllowFilteringByColumn="true" AllowPaging="True" OnItemCommand="RadGridOrders_ItemCommand" OnSortCommand="RadGridOrders_OnSortCommand"

            OnPageSizeChanged="RadGridOrders_OnPageSizeChanged" OnPageIndexChanged="RadGridOrders_OnPageIndexChanged"  OnSelectedIndexChanged="RadGridOrders_SelectedIndexChanged"

            AllowSorting="True" runat="server" OnItemDataBound="RadGridOrders_ItemDataBound" EnableViewState="true" Skin="MyCustomSkin" >

            <PagerStyle Mode="NextPrevAndNumeric" />

            <GroupingSettings CaseSensitive="false" />

            <MasterTableView TableLayout="Fixed" DataKeyNames="ordre_id">

                <NoRecordsTemplate>

                    <div>

                        No records to display.</div>

                </NoRecordsTemplate>

                <Columns>

                    <telerik:GridBoundColumn HeaderText="Ordrenr." DataField="ordre_id" UniqueName="ordre_id"

                        Resizable="true" SortExpression="ordre_id" HeaderStyle-Width="60px" FilterControlWidth="35px"

                        AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true">

                    </telerik:GridBoundColumn>

                           </Columns>                       

            </MasterTableView>

            <ClientSettings EnablePostBackOnRowClick="true">

                <Selecting AllowRowSelect="True" />

            </ClientSettings>

           

        </telerik:RadGrid>

 

    </telerik:RadGrid>

    </telerik:RadAjaxPanel>

 

 

 

 

<asp:EntityDataSource runat="server" ContextTypeName="Order_Entities"

 

 

 

 

 

 

 

ID="EntityDataSource_Orders" EntitySetName="Ordre_View" Select="it.ordre_id

 

 

 

 

"OrderBy="it.ordre_id desc" OnSelecting="EntityDataSource_Orders_Selecting">

 

 

 

 

 

 

 

</asp:EntityDataSource>

 

Best Regards,

hina

Maria Ilieva
Telerik team
 answered on 09 Dec 2011
0 answers
92 views
Hi,

Based on the demo http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/draganddropnodes/defaultcs.aspx, I need to do the same functionality but using a SqlServer database and not using xml files. In other word, I have two SqlServer tables (the same structure) that are displayed using a radtreeview controls, and I need to drag and drop nodes between the two controls and I need that drag and drop to affect the SqlServer tables (not just the controls itself).

Please, I need your help,

Regards,
Bader 
Bader
Top achievements
Rank 1
 asked on 09 Dec 2011
3 answers
129 views
I'm using the example for the asyncUpload and I want to load a standard upload if the browser is incompatable.  I understand this is the place to replace it, but do I have to replace the entire code in this replaceWith() section or is there an easier way...?

(!Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) {
                $(".wrapper").replaceWith(
                    $()

This is the sample
<telerik:RadScriptManager ID="ScriptManager1" runat="server" />
        
    <script type="text/javascript">
        var $ = $telerik.$;
        function pageLoad() {
            if (!Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) {
                $(".wrapper").replaceWith(
                    $("<span><strong>Your browser does not support Drag and Drop. Please take a look at the info box for additional information.</strong></span>"));
            }
        }

        function added(sender, args) {
            if (Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) {

                $(".ruDropZone").html("<div align=\"center\"><img src=\"images/logo.png\" width = \"300\"></div>");
            }
        }
        
    </script>


Here is the standard upload:
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" OnClientAdded="added" OnFileUploaded="RadAsyncUpload1_FileUploaded">
        </telerik:RadAsyncUpload>
        <br />
        <telerik:RadProgressManager ID="Radprogressmanager1" runat="server" />
        
        <div style="position:relative;">
            <table>
                <tr>
                    <td id="controlContainer">
                        <telerik:RadUpload
                            ID="RadUpload1" runat="server"
                            MaxFileInputsCount="5"
                            OverwriteExistingFiles="false" />
                            
                        <telerik:RadProgressArea id="progressArea1" runat="server"/>
                        
                        <asp:Button id="buttonSubmit" runat="server" CssClass="RadUploadSubmit" OnClick="buttonSubmit_Click" text="Submit" />
                    </td>
                    <td>
                        <div class="smallModule">
                            <div class="rc1"><div class="rc2"><div class="rc3" style="width:240px">
                            
                                <asp:Label ID="labelNoResults" runat="server" Visible="True">No uploaded files yet</asp:Label>
                                
                                <asp:Repeater ID="repeaterResults" runat="server" Visible="False">
                                    <HeaderTemplate>
                                        <div class="title">Uploaded files in the target folder:</div>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem, "FileName")%>
                                        <%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>
                                        <br />
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div></div></div></div>
                                </td>
                                </tr>                              
                                </table>
                                </div>
                                </div></table>
Peter Filipov
Telerik team
 answered on 09 Dec 2011
0 answers
66 views
HI,

I have a formview control (Retrieves data from Database) which contains a usercontrol .
I'm wonder how to databind a radeditor when it is placed within the above usercontrol.  

Regards,
Bader
Bader
Top achievements
Rank 1
 asked on 09 Dec 2011
5 answers
315 views
Hi, i m new in Telerik, i just starting to learn how to use the scheduler to create an appointment system.
Actually my problem is: in my database, it used separate date("dd/mm/yyyy") and time("11/11/1766" hh:mm) to record the current appointment datetime, i cannot simply used Data Source Configuration Wizard to bind two separate data fields in each Start/End time fields, also, i am not allow to custom my database record format... is it anyway/possibility can bind two data in one single field? Or Radscheduler can make any custom setting to bind multiple data? Thx.
Peter
Telerik team
 answered on 09 Dec 2011
1 answer
72 views
Hi,

    I am using treeview and want to edit the tree node. It works fine. but i have a requirement when user tries to edit the node some text should get cleared.

for ex. 
node has text like this: Menu1 {abc.aspx}

now while editing the edit mode should show: Menu1

how can I achieve this?

Please advise?

Thanks.
Bozhidar
Telerik team
 answered on 09 Dec 2011
1 answer
164 views
Hi,
Can we highlight a row using the green telerik skin (full row) versus just half of the row? If so please provide the solution.

Please see attached screen shot.

Thanks

Prashant

Pavlina
Telerik team
 answered on 09 Dec 2011
3 answers
207 views

Hi

I have a rad scheduler:
<telerik:RadScheduler runat="server" ID="DiaryScheduler" Skin="Metro" ValidationGroup="Settings" ...

and a custom validator:
<asp:CustomValidator runat="server" ID="MyValidator" Display="Dynamic" ValidationGroup="Settings" ClientValidationFunction="validateMyStuff">
 <span class="validation-error">Some Error Text</span>
</asp:CustomValidator>

When using this with other controls the validation occurs correctly. When usign the schedular, i.e. moving from one view to another and from one week to another, the validation is not run.

Does the ValidationGroup work with the schedular? Have I missed something, is there another setting I need to make this work, or do I have to validate manually?

Thanks
Russell

Ivana
Telerik team
 answered on 09 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?