Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
56 views
Hi.

I can remove title of dock and continue move this by dockzone using the mouse ?

Thank you
Rafael
Top achievements
Rank 1
 answered on 02 Dec 2009
1 answer
171 views
Hi

I'm trying to make a tab with MultiPage control invisible in runtime.
I wrote the following code:

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0">  
    <Tabs> 
        <telerik:RadTab Text="First Tab" Value="First"/>  
        <telerik:RadTab Text="Second Tab" Value="Second"/>  
        <telerik:RadTab Text="Third Tab" Value="Third"/>  
    </Tabs> 
</telerik:RadTabStrip> 
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
    <telerik:RadPageView ID="First" runat="server">  
        <asp:Label ID="Label1" runat="server" Text="First"/>  
    </telerik:RadPageView> 
    <telerik:RadPageView ID="Second" runat="server">  
        <asp:Label ID="Label2" runat="server" Text="Second"/>  
    </telerik:RadPageView> 
    <telerik:RadPageView ID="Third" runat="server">  
        <asp:Label ID="Label3" runat="server" Text="Third"/>  
    </telerik:RadPageView> 
</telerik:RadMultiPage> 
 

I'm using this code in the page load to hide the second tab:
var tab=RadTabStrip1.Tabs.FindTabByValue("Second");  
tab.Visible = false

When I open the page and switch to the third tab I see the content of the second tab.
I also tried setting the RadPageView as invisible , but then the third tab shows an empty page.

Any ideas?
Schlurk
Top achievements
Rank 2
 answered on 02 Dec 2009
2 answers
393 views
Hello,

is there any specific reason why Appointment object does have underlying DataItem null when accessed in AppontmentClick event? I'd like to use redirect to external edit form (Scheduler one) when appointment is clicked but before redirection I need to read some properties of my object that is mapped to Appointment.

Thanks,

Antonin

towpse
Top achievements
Rank 2
 answered on 02 Dec 2009
1 answer
96 views
I have a structure, like a file system, that I want to display using the nesting features of a RadGrid.  Can I make it so that it will recursively nest these items, to an unlimited depth?

In reality, the depth will probably not be more than 5, but I don't want to declaratively setup 5 levels of nesting.  Is there a solution for this?
Schlurk
Top achievements
Rank 2
 answered on 02 Dec 2009
4 answers
463 views
Hi all,

I have a grid that allows multiple row selection however it does not allow certain rows to be selected with others.  Therefore, I would like to hide the checkbox in the header since I never permit to select all rows.

In addition, how can I check on the client side that a certain row is not selected when other rows are already selected?

Thanks,
Avi
Amber
Top achievements
Rank 1
 answered on 02 Dec 2009
3 answers
329 views
Hi,
I have got many ajax settings to define and my page is heavy to render.
So I decide to add settings dynamically. The problem is i need to know ajax settings from Page_Load.
To resolve that, I added UpdatedControls in a hidden field from javascript and I start an ajaxRequest. During Page_Load on server, I retrieve UpdatedControls from hidden field and I build my ajax settings (my Initiator is RadAjaxManager1 to manage ResponseEnd).
My Page_Load set settings normaly but I always get the error : 
Execution error Microsoft JScript: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'dnn_ctrxxx_tvNodesPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.
All my UpdatedControls are always visible ; I don't understand because if I mention these UpdatedControls directly from HTML tags

<UpdatedControls>, it works well !

This is the parts of codes written to accomplish the mechanism :

function OnClientNodeClicked(sender, args)  
{  
    $get("<% = hdAjaxSettings.ClientID %>").value   
    = "tvNodes,rcmClipboard_Document_Permissions,rcmClipboard_Node_Permissions";  
    $find("<%=RadAjaxManager1.ClientID%>").ajaxRequest('Node_Clicked');  
}  
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnResponseEnd="OnResponseEnd">  
   <AjaxSettings> 
       <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
           <UpdatedControls> 
           </UpdatedControls> 
       </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<Telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" /> 
 
<asp:HiddenField ID="hdAjaxSettings" runat="server" /> 
 
            If Not Page.IsPostBack Then 
            Else 
                Dim hdAjaxSettingIDs As String = hdAjaxSettings.Value  
                If Not hdAjaxSettingIDs = String.Empty Then 
                    For Each ID As String In hdAjaxSettingIDs.Split(",")  
                        Dim UpdatedControl As New AjaxUpdatedControl(ID, "LoadingPanel1")  
                        RadAjaxManager1.AjaxSettings(0).UpdatedControls.Add(UpdatedControl)  
                    Next 
                End If 
            End If 
 

Thank you for help !
Pavlina
Telerik team
 answered on 02 Dec 2009
1 answer
150 views

Hello,
i'm trying to programmatically create a chart in VB. (this is my first time working with RadCharts)
My issue is:
When i assign a data source to the chart, it seems that its assumed that all data columns need to be made into their own Series.
I'm using a SQL stored procedure that produces 16 different columns & I only need to use 5 of them...the other 11 can be left alone.
How do I best go about doing that?
When i tried defining just the Series's that i needed, it just added them to the other 16 Series that were created automaticly.

I've included the relevant code below. Thanks.

 

 

 

 

Protected Sub Loader(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
 
        Dim sqlDataSource As New SqlDataSource()  
        sqlDataSource.ID = "myDataSource" 
        sqlDataSource.ConnectionString = "xxxxxxxxxxxxxxxxxxxxxxx" 
 
        sqlDataSource.SelectCommandType = SqlDataSourceCommandType.StoredProcedure  
        sqlDataSource.SelectCommand = "Analyze_SLA" 
        Me.Page.Controls.Add(sqlDataSource)  
        RadChart1.DataSourceID = "myDataSource" 
 
        RadChart1.Skin = "Colorful" 
        RadChart1.ChartTitle.TextBlock.Text = "Test Chart" 
        RadChart1.DefaultType = Telerik.Charting.ChartSeriesType.Area  
        RadChart1.AutoLayout = True 
 
        Dim chartSeries1 As New ChartSeries()  
        chartSeries1.Name = "Total Count" 
        chartSeries1.Type = ChartSeriesType.Area  
        chartSeries1.DataYColumn = "The_Count" 
        RadChart1.Series.Add(chartSeries1)  
 
        Dim chartSeries2 As New ChartSeries()  
        chartSeries2.Name = "Two" 
        chartSeries2.Type = ChartSeriesType.Area  
        chartSeries1.DataYColumn = "Issue2" 
        RadChart1.Series.Add(chartSeries2)  
 
 
        Dim chartSeries3 As New ChartSeries()  
        chartSeries3.Name = "Three" 
        chartSeries3.Type = ChartSeriesType.Area  
        RadChart1.Series.Add(chartSeries3)  
 
 
        RadChart1.DataBind()  
        Me.Page.Controls.Add(RadChart1)  
    End Sub 

 

 

Schlurk
Top achievements
Rank 2
 answered on 02 Dec 2009
0 answers
130 views

Requirements

RadControls version

2009_2_1028

.NET version

3.5

Visual Studio version

2008

programming language

VB

browser support

all browsers supported by RadControls


PROJECT DESCRIPTION
Several persons, including me, were asking in the forum how to export multiple grids displayed in the view to a single Excel worksheet.  Daniel presented a trivial example that was not practical, but it did serve as the foundation of the code I developed the following day.  My requirement was to aggregate all the data displayed in a webform and export it to Excel.  The data consists of 4 HTML tables dynamically populated by ASP labels in the code-behind, and 4 different RadGrids, each one displaying a dataset from a different database table having different schemas.  To accomplish this, I stuck a skeleton radGrid tag on the webform and wrote 2 essential methods in the code-behind (2 others are just the Excel formatting methods).  I have attached list_LIN_detail.aspx (see the radgrid tag at the bottom under the export button) and list_LIN_detail.aspx.vb (see the methods towards the end of the code obviously commented for this subject).  The Excel column headers are the radGrid's unique names.

One caveat: there is a bug that throws an IllegalOperationException when ASP label text is nothing and it needs to be cast to an integer.  No big deal.
Mark Galbreath
Top achievements
Rank 2
 asked on 02 Dec 2009
6 answers
561 views
Hello,

I am browsing the documentation and I am unable to find the complete list of tools.
Is it somewhere ?

May be a table associated with version ?

Thanks
CS
CSurieux
Top achievements
Rank 2
 answered on 02 Dec 2009
1 answer
307 views
Hi,

I'd like to know if it's possible to change the background colour of the "Resource Header Template" in Timeline view if grouped by Resource. I'd like to be able to set the colour on a per resource basis (e.g. making use of the ResourceHeaderCreated).

I've used the following to change the contents of the text within column headers, but haven't had much luck setting background colour yet...

Example:

Two resources - Tim and Bob. Tim's resource background is Blue, Bob's is green.

Code so far (see 'green' div background that needs to be settable)

<telerik:RadScheduler ID="RadScheduler1" runat="server"
       
GroupBy="Room"        
       
onresourceheadercreated="RadScheduler1_ResourceHeaderCreated">
       
<ResourceHeaderTemplate>
         
<div style="background:green">
           
<asp:Label ID="ResourceLabel" runat="server" Text="Label"></asp:Label>
         
</div>
       
</ResourceHeaderTemplate>
</
telerik:RadScheduler>

protected void RadScheduler1_ResourceHeaderCreated(object sender, Telerik.Web.UI.ResourceHeaderCreatedEventArgs e)
   {
       ((Label)e.Container.FindControl(
"ResourceLabel")).Text = e.Container.Resource.Text;
   }

Cheers,

Paul




Paul Aikman
Top achievements
Rank 1
 answered on 02 Dec 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?