Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
246 views
Hi,

I am using RadControl 2010 Q1, .net 3.5.

My scenario is as follows:

I use a RadPanelBar as the navigator and dynamically load user control accordingly to its item value.
In the user control, I have a GridView to manage the list of items, and a DetailView for reading the detail of item and for editing, inserting. This DetailView load the item when I click the item in the GridView. Everything works fine without ajax.

When I use ajax to load user control, and ajax to load the item detail to the DetailView by clicking the item in the GridView, All skin of  controls in the DetailView fails to load correctly, in all ReadOnly, Edit and Insert modes. I use SkinID defined in the .skin file for all rad controls. This only happens with IE, but works perfectly with FireFox.

Even when I try to load user control without ajax, and only use ajax to load the item from GridView to the DetailView, the problem still exists. This proves that no problem is related to dynamic load of user control, right? I think the problem is at when the DetailView loads all controls inside it, but fails to load skin.

Please give some advice.
Thanks in advance.
Dimo
Telerik team
 answered on 12 May 2010
4 answers
121 views
Team,

Screetshot is Attached, I just want to remove the underline from first and second column. Also I want to change the font color to black.
Pls. help me.

Thanks
Rajesh n.
raaj
Top achievements
Rank 1
 answered on 12 May 2010
3 answers
122 views
Dear Telerik Team,

I want to Thank for your support and Quick responses, I had a problem when working with RadScheduler. I am using RadScheduler with different resources but I am unable to set css for timeslots start time and end time etc. on per resource basis.
Is there any way to customize individual resource? I hope you understand the problem.

Thanks and Regards
--------------------------
Pradeep
Peter
Telerik team
 answered on 12 May 2010
3 answers
113 views
I have a bit of a puzzle.  I'm using RadWindow to open a window to another site for the purposes of tracking a package (UPS or FEDEX).  As a result, the VisibleOnPageLoad parameter is set to false initially, because the URL must be built dynamically based upon the package the user chooses to track (if it CAN be tracked).

Everything works fine up until the point that I actually set TrackWindow.VisibleOnPageLoad = True, at which point  the window opens, the URL begins to load, and then the entire PAGE goes to the URL.  This, obviously, is not the way it was meant to work, lol.  I'm thinking it is just something simple I am overlooking.  Hopefully someone can take a look and tell me what's going on, and how to fix it.

Here's the relevant .aspx code;
<!-- Windows Begin --> 
<telerik:RadWindowManager ID="TrackWindowManager" runat="server" ShowContentDuringLoad="False">  
    <Windows> 
        <telerik:RadWindow runat="server" ID="TrackWindow" VisibleOnPageLoad="false" Title="Help - Datagrid"   
            Width="500" Height="500"></telerik:RadWindow> 
    </Windows> 
</telerik:RadWindowManager> 
<!-- Windows End --> 
And here's the vb.net code behind:
    Private Sub rgPoOrders_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rgPoOrders.SelectedIndexChanged  
 
        Dim TrackNum As String 
        Dim TrackURL As String 
        Dim TrackPack As New PackageTrack  
        Dim selectedItem As GridDataItem = rgPoOrders.SelectedItems(0)  
 
        'Get tracking number and pass to function  
        TrackNum = selectedItem(rgPoOrders.MasterTableView.Columns(2)).Text  
 
        'Get URL to track package  
        TrackURL = TrackPack.Track(TrackNum)  
        TrackWindow.NavigateUrl = TrackURL  
        TrackWindow.VisibleOnPageLoad = True 
 
        'New Code for popup, if Rad Window doesn't work;  
        'Change return value of PackageTrack to JavaCommand instead of TrackURL  
        'Response.Write(JavaCommand)  
 
    End Sub 

Note: I'd prefer NOT to add the window dynamically, unless I absolutely have to.
Georgi Tunev
Telerik team
 answered on 12 May 2010
3 answers
192 views
Sometimes the Outllok style in the Radgrid(Outlook) are not applied.When i refersh my screen multiple times then the Outlook theme is applied to grid.
Dimo
Telerik team
 answered on 12 May 2010
2 answers
103 views
Hello
I Need to combine a bar chart with a stacked bar, I tried to do it with the code I show you below
In the first series the bars are generated fine, but when I add the stacked bar that are placed next to the first bar and I need the stacked bar to be placed at the fourth position
I also attach a graph to show you what generates the code and what I need
Could you please help me?
Thanks
Best regards
Marcos J. Perez


Here is the code:
                RadChart graExpediente = new RadChart(); 
                graExpediente.ChartTitle.TextBlock.Text = "Expedientes"; 
                graExpediente.PlotArea.XAxis.AutoScale = false; 
                graExpediente.PlotArea.XAxis.AddRange(1, 4, 1); 
                graExpediente.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Arial", 8, System.Drawing.FontStyle.Regular); 
                graExpediente.PlotArea.XAxis[0].TextBlock.Text = "Asignados"; 
                graExpediente.PlotArea.XAxis[1].TextBlock.Text = "En Proceso"; 
                graExpediente.PlotArea.XAxis[2].TextBlock.Text = "A Vencer"; 
                graExpediente.PlotArea.XAxis[3].TextBlock.Text = "Dependientes"; 
                graExpediente.PlotArea.XAxis.IsZeroBased = false; 
                graExpediente.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended; 
                graExpediente.PlotArea.YAxis.AxisLabel.TextBlock.Text = "Asignados"; 
                graExpediente.Skin = "Vista"; 
 
                // Crea la series y las barras para el Supervisor 
                ChartSeries Supervisor = new ChartSeries("Supervisor", ChartSeriesType.Bar); 
                Supervisor.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Tahoma", 7, System.Drawing.FontStyle.Regular); 
                Supervisor.Appearance.Border.Color = System.Drawing.Color.Black; 
                Supervisor.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.Nothing; 
                // Define las barras en la serie 
                Supervisor.AddItem(50, string.Empty, System.Drawing.Color.Yellow); 
                Supervisor.AddItem(30, string.Empty, System.Drawing.Color.Green); 
                Supervisor.AddItem(20, string.Empty, System.Drawing.Color.Red);                 
 
                // Crea la serie y la seccion para los Dependientes 
                ChartSeries AsignadosDep = new ChartSeries("AsignadosDep", ChartSeriesType.StackedBar); 
                AsignadosDep.Appearance.Border.Color = System.Drawing.Color.Black; 
                AsignadosDep.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.Nothing; 
                // Define la seccion en la serie 
                AsignadosDep.AddItem(11, string.Empty, System.Drawing.Color.Yellow); 
 
                ChartSeries EnProcesoDep = new ChartSeries("EnProcesoDep", ChartSeriesType.StackedBar); 
                EnProcesoDep.Appearance.Border.Color = System.Drawing.Color.Black; 
                EnProcesoDep.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.Nothing;                 
                EnProcesoDep.AddItem(6, string.Empty, System.Drawing.Color.Green); 
 
                ChartSeries AVencerDep = new ChartSeries("AVencerDep", ChartSeriesType.StackedBar); 
                AVencerDep.Appearance.Border.Color = System.Drawing.Color.Black; 
                AVencerDep.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.Nothing; 
                AVencerDep.AddItem(5, string.Empty, System.Drawing.Color.Red); 
 
 
                // Add the series to the chart, chart to page. 
                graExpediente.Series.Add(Supervisor); 
                graExpediente.Series.Add(AsignadosDep); 
                graExpediente.Series.Add(EnProcesoDep); 
                graExpediente.Series.Add(AVencerDep);                 
 
                this.Page.Controls.Add(graExpediente);

Marcos Perez
Top achievements
Rank 1
 answered on 12 May 2010
3 answers
162 views
Hi, I have a radgrid with some columns generated automatically and a linqdatasource as the grid's datasource, I have a problem that the command buttons for update and insert in the edit item do not trigger an item command on the grid, I already debugged it an the debugger doesnt step in to the item command method and neither the datasource inserting method trigger so I guess the button commandname is wrong or is empty, is there any way to set these? thanks!
Radoslav
Telerik team
 answered on 12 May 2010
2 answers
307 views
Hi,

I have a treeview with the multiple select option set to true.  Each parent node has a couple of child nodes as such:

Parent Node 1
  - Child Node 1
  - Child Node 2
  - Child Node 3
Parent Node 2
  - Child Node 1
  - Child Node 2
  - Child Node 3
Parent Node 3
  - Child Node 1
  - Child Node 2
  - Child Node 3

A user can select a parent node, and a child node from another parent.  I have code here that tells you if the node is selected or not.  How do I check if the selected node is a parent node or a child node?

Please can someone advise?

Thanks
Brendan
Brendan Vogt
Top achievements
Rank 1
 answered on 12 May 2010
1 answer
64 views
Hey there,

I'm attempting to use the RadFormDecorator to style some ASP.Net Button and DropDownList controls within the CommandItemTemplate of a RadGrid.  The relevant code looks like this:

<telerik:RadFormDecorator ID="RadFormDecorator1" Skin="Vista" runat="server"/> 
                <telerik:RadGrid ID="SentBox" runat="server" AutoGenerateColumns="False" GridLines="None" 
                    OnItemCommand="SentBox_ItemCommand" ShowGroupPanel="false" AllowFilteringByColumn="false" 
                    PagerStyle-Mode="NextPrevAndNumeric" AllowSorting="true" AllowPaging="true" OnItemDataBound="SentBox_ItemDataBound" 
                    OnNeedDataSource="SentBox_NeedDataSource" OnItemCreated="SentBox_ItemCreated" CssClass="DocSiteGrid" 
                    PageSize="10" ShowStatusBar="true" OnSelectedIndexChanged="SentBox_SelectedIndexChanged"> 
                    <HeaderStyle CssClass="Normal" Font-Bold="true" /> 
                    <MasterTableView CommandItemDisplay="Top"> 
                        <CommandItemTemplate> 
                            <table style="width: 100%"> 
                                <tr> 
                                    <td> 
                                        <asp:DropDownList ID="SentBoxSelect" runat="server" CssClass="Normal" AutoPostBack="true" OnSelectedIndexChanged="SentBoxSelect_SelectedIndexChanged"> 
                                            <asp:ListItem Text="All" Value="All" /> 
                                            <asp:ListItem Text="None" Value="None" /> 
                                        </asp:DropDownList> 
                                        <asp:Button ID="btnReplySent" runat="server" CssClass="Normal" Text="Reply" /> 
                                        <telerik: 
                                    </td> 
                                    <td style="text-align: right"><asp:Button ID="SentTools" runat="server" CssClass="Normal" Text="Tools & Settings" /></td> 
                                </tr> 
                            </table> 
                        </CommandItemTemplate> 

Unfortunately, this isn't working as I'd expect at the moment.  Any controls outside of the CommandItemTemplate are skinned appropriately; those within are not.  

Suggestions?

Chris


Christopher Wooten
Top achievements
Rank 1
 answered on 12 May 2010
2 answers
139 views
hi,
I have a problem of validateing entered date in dateinput of RadeDateTimePicker control client side
follwoing script is giving me return value of "" when I enterd wrong date or blank

document.getElementById('ctl00_ContentPlaceHoder1_dtpPrefferedAttendingDateTime').value

for example entered value like sdsafdgfvfs it returns ""
                   leave it blanke it returns ""
                   entered right date like 01/01/2010 bring correct same date

I need script to determine wheather it blank or wrong or correct date

also following script not helping




script type="text/javascript">
        Telerik.Web.UI.RadDateInput.prototype.parseDate = function(value, baseDate) {
        debugger
            if (new Date(value) != "NaN")
                return value;
        }   

any Idea please,
Ihab


Bill Witt
Top achievements
Rank 1
 answered on 12 May 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?