Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
164 views
Hi,
 
I am trying to open a new radtab on every Search button click. So basically the home page,
opens in a tab which shows a textbox & search button. Then Everytime a user clicks on Search button I need to grab the search result & display in a  grid in a new tab. (so if search is clicked 3 times.. there will be 3 additional tabs). How can I achive this functionality?

I was able to create a new tab for each click on button ("search"). The tab opens fine but the grid doesnt display. Not sure where I am going wrong. Can somebody please throw some light if there is any example scenario will be highly appreciated.

During the debug I can see the result set is passsed to the new tab without any issue.

Thank you
Dimitar Terziev
Telerik team
 answered on 09 Dec 2011
9 answers
2.4K+ views

I am getting javascript Error “Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.”

 

When I use RadAjaxManager inside RadGrid’s EditFormSettings

 

<telerik:RadGrid

      <MasterTableView

            <EditFormSettings

                  <FormTemplate>

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

                                    <AjaxSettings>

                                        <telerik:AjaxSetting AjaxControlID="RadComboBox1" EventName="RadComboBox1_SelectedIndexChanged">

                                            <UpdatedControls>

                                                <telerik:AjaxUpdatedControl ControlID="RadComboBox2" />

                                            </UpdatedControls>

                                        </telerik:AjaxSetting>

                                    </AjaxSettings>

                                </telerik:RadAjaxManager>

 

Pratibha
Top achievements
Rank 1
 answered on 09 Dec 2011
3 answers
129 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
216 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
500 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
61 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
114 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
47 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
267 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
55 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?