Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Hi, All

I would like to know if RADControls Client-Side library can be used with a proprietary webserver developed by me. I do not use ASP.Net or any other Microsoft .NET  product.

Using other words, Is the RADControls client-side API open and well documented enough to develop an entirely new server-side library to interact with that?

Thanks for any response
Schlurk
Top achievements
Rank 2
 answered on 22 Jul 2010
1 answer
160 views
I'm using the Telerik RadEditor control on my page and am trying to implement the MaxLength solution advised here.

The page loads fine but whenever I try to edit the text in the RadEditor, I get the following error:
Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: id

Removing the OnClientLoad function removes this error but I really need to be able to implement the MaxLength solution.

Can anyone assist please?
Dobromir
Telerik team
 answered on 22 Jul 2010
2 answers
102 views

Hello,


I got this example from another forum post.

        function AlertTest()
        {
            var oAlert = radalert("You will be redirected to Google");
            oAlert.add_close(function () { window.location.href = "http://www.google.com");
           
        }
        
  However, i get a  "object not supported" typical java script error.  It's not recognizing the add_close.

I'm using  Telerik Web UI 2009.1.527.35.

Any suggestions would be helpful.

Nate
Top achievements
Rank 1
 answered on 22 Jul 2010
2 answers
119 views
I want to enable the Resizer but I also only want to have Design mode visible.  Currently, if I have only 1 mode available, the resizer inexplicably disappears.  How do I make it show?
msigman
Top achievements
Rank 2
 answered on 22 Jul 2010
2 answers
224 views
I would like to prevent the RadEditor from being expanded horizontally (though vertical is okay).  I thought the best way to do this is intercept some OnResize() event and then force the width to a predefined size.  But I can't find which event is fired when the control is resized.  Can anyone help, or suggest another way to achieve the same functionality?  Thanks.
msigman
Top achievements
Rank 2
 answered on 22 Jul 2010
4 answers
159 views
I copied and pasted the demo code to do various tasks on the sliding panes because I could not get it to work.

Every thing I try gives me a javascript error saying method is not supported.  Below is your code which I used.  My guess is that my version and the version used in the Demo are different, but I can't find what version that demo is for.    My Telerik.Web.UI is version 2009.3.1314.35

Any help would be appreciated.




<script type="text/javascript">
                  
                /***********************************************
                            Sliding Zone examples
                ***********************************************/
                function GetZoneState ()
                {
                    var slidingZone = $find("SlidingZone1");
                    var zoneState = slidingZone.get_clientState();
                    alert(zoneState);
                }
                  
                /***********************************************
                            Pane examples
                ***********************************************/
              
                function ToggleEnableResize(paneID)
                {
                    var slidingZone = $find("SlidingZone1");
                    var pane = slidingZone.getPaneById(paneID);
  
                    if (!pane) return;
                    pane.set_enableResize(!pane.get_enableResize());
                    slidingZone.collapsePane(pane.get_id());
                    slidingZone.expandPane(pane.get_id());
                      
                }
                  
                function ToggleEnableDock(paneID)
                {
                    var slidingZone = $find("SlidingZone1");
                    var pane = slidingZone.getPaneById(paneID);
  
                    if (!pane) return;
                      
                    pane.set_enableDock(!pane.get_enableDock());
                    slidingZone.undockPane(pane.get_id());
                    slidingZone.collapsePane(pane.get_id());
                    slidingZone.expandPane(pane.get_id());
                      
                }
                  
                function GetPaneState(paneID)
                {
                    var slidingZone = $find("SlidingZone1");
                    var pane = slidingZone.getPaneById(paneID);
  
                    if (!pane) return;
                      
                    var paneState = pane.get_clientState();
                    alert(paneState);
                }
              
                function ToggleExpandPane(paneID)
                {
                    var slidingZone = $find("SlidingZone1");
                    var expandedPaneId = slidingZone.get_expandedPaneId();
                      
                    if (expandedPaneId == null || expandedPaneId != paneID) 
                    {
                        slidingZone.expandPane(paneID);
                    } 
                    else
                    {
                        slidingZone.collapsePane(paneID);
                    }
                }
                  
                function ToggleDockPane(paneID)
                {
                    var slidingZone = $find("SlidingZone1");
                    var dockedPaneId = slidingZone.get_dockedPaneId();
                      
                    if (dockedPaneId == null || dockedPaneId != paneID) 
                    {
                     slidingZone.collapsePane(paneID);
                        slidingZone.dockPane(paneID);
                    } 
                    else
                    {
                        slidingZone.undockPane(paneID);
                    }
                }
                  
                function TogglePaneTabVisibility(paneID)
                {
                    var slidingZone = $find("SlidingZone1");
                    var pane = slidingZone.getPaneById(paneID);
                    if (pane.isTabDisplayed())
                    {
                        pane.hideTab();
                    } 
                    else 
                    {
                        pane.showTab();
                    }
                }
                  
                function ChangePaneContent (paneID)
                {
                    var slidingZone = $find("SlidingZone1");
                    var pane = slidingZone.getPaneById(paneID);
                    if (!pane) return;
                      
                    pane.setContent('This is the NEW pane content ...');
                    slidingZone.collapsePane(pane.get_id());
                    slidingZone.expandPane(pane.get_id());
                }
                  
                function ChangePaneWidth (paneID)
                {
                    var slidingZone = $find("SlidingZone1");
                    var pane = slidingZone.getPaneById(paneID);
                    if (!pane) return;
                      
                    var newWidth = (pane.get_width() == 200) ? 100 : 200 ;
                      
                    pane.set_width(newWidth); // set the width
                    slidingZone.collapsePane(pane.get_id());
                    slidingZone.expandPane(pane.get_id());
                }
                  
                function ToggleClickToOpen ()
                {
                    var slidingZone = $find("SlidingZone1");
                    slidingZone.set_clickToOpen(!slidingZone.get_clickToOpen());
                    alert("'ClickToOpen' property set to [" + slidingZone.get_clickToOpen() + "]");
                }
                  
                    function ToggleDockOnOpen (paneID)
                {
                    var slidingZone = $find("SlidingZone1");
                    var pane = slidingZone.getPaneById(paneID);
                    if (!pane) return;
                    pane.set_dockOnOpen(!pane.get_dockOnOpen());
                    alert("'DockOpen' property set to [" + pane.get_dockOnOpen() + "]");
                }
                  
    </script>
Adam Heeg
Top achievements
Rank 1
 answered on 22 Jul 2010
3 answers
167 views
Hello,

I've got a RadAjaxPanel, which contains a RadGrid, which contains some ASP buttons inside its CommandItemTemplate, including an Export To Excel button, which exports that grid's data.  The button itself works fine and the excel file is returned.  But after exporting, if I click my Update button elsewhere on the page, after the postback, the Excel file pops up again! 

I've tested with different scenarios and found that any of my buttons in that panel are getting re-called if they're called once and then a subsequent button is clicked.  I tried moving the buttons outside of the grid, and the same thing happened.  I moved the buttons outside of the panel, and the problem went away... but of course then the buttons no longer use AJAX and are not nicely placed in the grid where they belong. =)

So any idea what would cause the button's click event to happen even when it wasn't that button that was clicked?  It's almost like it's stored that a click should happen and it keeps clicking the button on every postback, no matter what actually caused it.

It's on a very complex page, but here are some code snippets that might be applicable.

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="AttorneyPanel" />
                <telerik:AjaxUpdatedControl ControlID="ButtonsPanel" />
                <telerik:AjaxUpdatedControl ControlID="DocumentsPanel" />
                <telerik:AjaxUpdatedControl ControlID="FundingsPanel" />
                <telerik:AjaxUpdatedControl ControlID="CaseCountsPanel" />
                <telerik:AjaxUpdatedControl ControlID="RemindersPanel" />
                <telerik:AjaxUpdatedControl ControlID="ReductionPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="AttorneyPanel">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="FundingsPanel" />
                <telerik:AjaxUpdatedControl ControlID="DocumentsPanel" />
                <telerik:AjaxUpdatedControl ControlID="CaseCountsPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="ButtonsPanel">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="FundingsPanel" />
                <telerik:AjaxUpdatedControl ControlID="DocumentsPanel" />
                <telerik:AjaxUpdatedControl ControlID="CaseCountsPanel" />
                <telerik:AjaxUpdatedControl ControlID="RemindersPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadAjaxPanel ID="CaseListPanel" runat="server" ClientEvents-OnRequestStart="requestStart" EnableAJAX="true" OnAjaxRequest="CaseListPanel_AjaxRequest">
 
    <div class="box" style="width:95%;" align="center">
        <div class="boxheader">Attorney Case List</div>
        <telerik:RadGrid ID="CaseListGrid" runat="server" AllowSorting="True" AllowPaging="False"
                         OnNeedDataSource="CaseListGrid_NeedDataSource" OnPreRender="CaseListGrid_PreRender"
                         OnItemDataBound="CaseListGrid_ItemDataBound"
                         Skin="Oasis" EnableEmbeddedSkins="false" Width="100%" AllowFilteringByColumn="true" SortingSettings-EnableSkinSortStyles="false" OnItemCreated="CaseListGrid_ItemCreated" >
        <ClientSettings AllowColumnsReorder="true" >
            <Scrolling AllowScroll="False" UseStaticHeaders="True" />
            <Resizing AllowColumnResize="true" />
            <ClientEvents OnGridCreated="GridCreated3" /> 
        </ClientSettings>
          
        <MasterTableView AllowMultiColumnSorting="True" AutoGenerateColumns="False" AllowFilteringByColumn="true"
                         TableLayout="Auto" CommandItemDisplay="Top" ClientDataKeyNames="CaseId">
            <CommandItemTemplate>
                <asp:Button ID="DownloadPDF" runat="server" Text="Create Pdf" OnCLick="downloadPdf_Click" />
                <asp:Button ID="DownloadExcel" runat="server" Text="Create Excel" OnClick="downloadXLS_Click" />
                <asp:Button ID="showsum" Text="Show All" OnClick="show_all_Click" runat="server" />
            </CommandItemTemplate>

protected void downloadXLS_Click(object sender, EventArgs e)
{
    CaseListGrid.MasterTableView.ExportToExcel();
}
Veli
Telerik team
 answered on 22 Jul 2010
1 answer
99 views
any body help me.. the combobox takes too time while search items ... any solution ?

<

telerik:RadComboBox ID="ddlCustomer" runat="server" EnableVirtualScrolling="true"

 

 

ItemsPerRequest="10" Width="245px" TabIndex="1" EnableTextSelection="False"

 

 

AutoPostBack="true" Filter="StartsWith"

 

 

onselectedindexchanged="ddlCustomer_SelectedIndexChanged1">

 

 

</telerik:RadComboBox>

thanks,
Jagdish

Cori
Top achievements
Rank 2
 answered on 22 Jul 2010
1 answer
38 views
If this name sounds familair to another thread, it is. http://www.telerik.com/community/forums/aspnet-ajax/editor/prohibition-of-new-folder-creation.aspx.  That thread was answered and the solution does work, but introduces another problem.

I have two projects.  One where they use they need the ability to create a folder and the other where they want to prohibit this.  So, my option is to edit the file between compiles and deployments, which obviously isn't practicle or to override this somehow.

So, is there a way to copy FileBrowser.ascx and have one project refer to that instead of the stock one?  If so, can I have some step by step instructions? 
Gary
Top achievements
Rank 1
 answered on 22 Jul 2010
2 answers
133 views

I am using the RadChart control to display a pie chart on my page.

However, it seems to be ignoring the LegendDisplayMode and StartAngle that I am setting on the series.

The RadChart is added to the page with the following:

1.<telerik:RadChart ID="ComplianceActionsChart" runat="server" SkinsOverrideStyles="true"
2.  ChartTitle-TextBlock-Text="Compliance Actions Pie Chart" AutoLayout="True" Skin="DeepRed"
3.  Width="330px" Height="200px" PlotArea-EmptySeriesMessage-TextBlock-Text="There is no data available yet."
4.  DefaultType="Pie">
5.</telerik:RadChart>

The code to create the series is:

1.ChartSeries dataSeries = new ChartSeries("Current Data", ChartSeriesType.Pie);
2.dataSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
3.dataSeries.Appearance.StartAngle = -90;
4. 
5.ChartSeriesItem free = new ChartSeriesItem(aCurrentData.Item1);
6.free.Name = "Item 1";
7.free.Label.TextBlock.Text = "#%";
8.dataSeries.AddItem(free);
I have 4 more items which are added to the chart.

When it displays, the legend only contains "Current Data" instead of the item names and the pie chart has the default rotation.

I tried creating the series in the aspx file with the appearance values set, but this produced the same result.

Is there anything I am missing in setting this up?

Mark Cheeseborough
Top achievements
Rank 1
 answered on 22 Jul 2010
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?