Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views
Hi. I use to have a RadChart that would appear on a masterpage. I now render the RadChart in a console application and save it to disk which works fine. The only thing is I can't seem to remove the label series or set the line series in the chart plot area. I think this is because unlike before, I haven't defined any ChartSeries items in my code behind. Here is my code:

ArrayList myList = new ArrayList();  
myList.Add(1);  
myList.Add(2);  
myList.Add(3);  
myList.Add(4);  
RadChart radChart = new RadChart();  
// Some formatting here  
radChart.DataSource = myList;  
radChart.DataBind();  
radChart.Save(@"c:\mychart.png", ImageFormat.Png); 

This work fine. The following code doesn't work because I have no ChartSeries items:

foreach (ChartSeries series in radChart.Series) {  
    series.Appearance.LabelAppearance.Visible = false;  
    series.Appearance.LineSeriesAppearance.Color = System.Drawing.Color.Black;  

Is there any way around this? If I try to use ChartSeries items it returns an error because I'm working with a console application.
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 28 Jul 2009
2 answers
175 views
Hi!

I have some problems when using RadUpload, for example:

<telerik:RadUpload ID="RadUpload1" runat="server" TargetPhysicalFolder="c:\\folder1\\"/>
<telerik:RadProgressArea id="RadProgressArea1" runat="server"/>
<asp:Button id="button1" runat="server" OnClick="btn1_Click" text="Submit" />

<telerik:RadUpload ID="RadUpload2" runat="server" TargetPhysicalFolder="c:\\folder2\\"/>
<telerik:RadProgressArea id="RadProgressArea2" runat="server"/>
<asp:Button id="button2" runat="server" OnClick="btn2_Click" text="Submit" />

If I select files both in RadUpload1 and RadUpload2, and click button1 to submit RadUpload1, files in RadUpload2 also will be uploaded?

It seems that doing postback will upload all files selected in RadUpload?

Do you have an easy way to make something like an independent upload group including a RadUpload, a RadProgressArea, and a submit button? I just wonder if there is something like this in RadUpload.

:) Thanks!

Best Regards
Airad

Airad
Top achievements
Rank 1
 answered on 28 Jul 2009
2 answers
143 views
Hi

I was just wondering if it is possible to somehow handle events from the datepicker that is embedded into scheduler in month view?

Basically, what I'm trying to do is capture the date that was selected, and then redirect based on that date, eg. If 18 July 2009 is picked, redirect to Calendar.aspx?date=20090718
Peter
Top achievements
Rank 1
 answered on 27 Jul 2009
6 answers
134 views
We are using 2008.3.1125.35 build with plenty of custom skins.

Q1 2009 brakes almost all of our custom skins. I followed several threads (like http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/q1-skins.aspx) and looked at all the sticky threads about skins that you posted. I still do not see the answer on

1. How I can automatically convert my current skins to Q1 2009 skins?
2. If there is no way to convert automatically - can we pay for couple hours of your time, so you do the conversion?
3. Where is the guarantee that this disaster does not happen again?

Alexander
Stephen
Top achievements
Rank 1
 answered on 27 Jul 2009
2 answers
169 views
Hi

I have a grid that contains a command item template and this is disrupting the appearance of the grid when i export to excel.
There is no feature here to include a screenshot but basically the command item template is positioned in columns A and B of the grid and then the rest of teh grid is positioned below it but in columns C onwards.

The output looks like this

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x  Command item template
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                            xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                            GRID
                                            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Here is the aspx for the grid

<telerik:RadGrid ID="gridJourneys" runat="server"  Width="960px" AutoGenerateColumns="False" GridLines="None" enableEmbeddedSkins="False" skin="SureTrack">  
<MasterTableView DataKeyNames="JourneyID" CommandItemDisplay="Top" AutoGenerateColumns="False" Name="Journeys" ShowFooter="true"  > 
 <CommandItemTemplate> 
  <span class="title"><asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label></span>  
 <table cellpadding="5" cellspacing="0" style="width:200px">  
 
 <tr> 
    <td style="width:100px">No Journeys:</td> 
    <td style="width:100px"><asp:Label ID="lblNoJourneys" runat="server"></asp:Label></td>  
 </tr> 
 <tr> 
    <td>Total Distance:</td> 
    <td><asp:Label ID="lblTotalDistance" runat="server"></asp:Label></td>  
 </tr> 
 <tr> 
    <td>Total Time:</td> 
    <td><asp:Label ID="lblTotalDuration" runat="server"></asp:Label></td>  
 </tr> 
 
 <tr> 
    <td>Total Idling</td> 
    <td><asp:Label ID="lblTotalIdling" runat="server"></asp:Label></td>  
 </tr> 
 </table> 
 <br /> 
  </CommandItemTemplate> 
 
<NoRecordsTemplate> 
There are no journeys on this date.  
                
</NoRecordsTemplate> 
     <Columns> 
     <telerik:GridBoundColumn DataField="JourneyID" Aggregate="Count" Visible="false" FooterAggregateFormatString="{0}"></telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="StartDateTime" DataFormatString="{0:dd/MM/yy HH:mm}" HeaderText="Start Time" UniqueName="StartDateTime">  
        <ItemStyle Width="85px" /> 
    </telerik:GridBoundColumn> 
    <telerik:GridTemplateColumn HeaderText="Start Location" UniqueName="StartLocation">  
    <ItemTemplate> 
                <asp:label runat="server" id="lblStartLocation"/>  
    </ItemTemplate> 
        <ItemStyle Width="265px" /> 
</telerik:GridTemplateColumn> 
<telerik:GridBoundColumn DataField="EndDateTime"  DataFormatString="{0:dd/MM/yy HH:mm}" HeaderText="End Time" UniqueName="EndDateTime">  
    <ItemStyle Width="85px" /> 
</telerik:GridBoundColumn> 
<telerik:GridTemplateColumn HeaderText="End Location" UniqueName="EndLocation" > 
<ItemTemplate> 
  <asp:label runat="server" id="lblEndLocation"/>  
      
</ItemTemplate> 
    <ItemStyle Width="265px" /> 
</telerik:GridTemplateColumn> 
 
<telerik:GridBoundColumn DataField="TimeTakenInSeconds" DataFormatString="{0}" UniqueName="TimeTakenInSeconds" Aggregate="Sum" FooterAggregateFormatString="{0}" Visible="false" > 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="IdlingTimeInSeconds"  DataFormatString="{0}" UniqueName="IdlingTimeInSeconds" Aggregate="Sum" FooterAggregateFormatString="{0}" visible="false" > 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="Duration" DataField="TimeTaken" UniqueName="TimeTaken">  
 <ItemStyle Width="65px" /> 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn DataField="DistanceTravelled" DataFormatString="{0:F2}" HeaderText="Distance" UniqueName="DistanceTravelled" Aggregate="Sum" FooterAggregateFormatString="{0:F2}">  
    <ItemStyle Width="65px" /> 
</telerik:GridBoundColumn> 
<telerik:GridTemplateColumn HeaderText="On Site" UniqueName="TemplateColumn2">  
<ItemTemplate> 
<asp:Label runat="server" ID="lblTimeAtDestination"></asp:Label> 
</ItemTemplate> 
    <ItemStyle Width="80px" /> 
</telerik:GridTemplateColumn> 
 <telerik:GridTemplateColumn HeaderText="Info" UniqueName="TemplateColumn3">  
 <ItemTemplate> 
<asp:Label runat="server" ID="lblInfo"></asp:Label> 
 </ItemTemplate> 
<ItemStyle Width="50px" /> 
               
</telerik:GridTemplateColumn> 
 
</Columns> 
       
<DetailTables> 
<telerik:GridTableView AutoGenerateColumns="false" Name="Polls" DataKeyNames="GPSID" ShowFooter="false">  
 <ParentTableRelation> 
   <telerik:GridRelationFields DetailKeyField="JourneyID" MasterKeyField="JourneyID" /> 
</ParentTableRelation> 
<Columns> 
 
     
    <telerik:GridBoundColumn DataField="GPSDateTime" HeaderText="Time" DataFormatString="{0:dd/MM/yy HH:mm}">  
    <ItemStyle Width="100px" /> 
    </telerik:GridBoundColumn> 
    <telerik:GridTemplateColumn HeaderText="Location">  
    <ItemTemplate> 
      <asp:Label runat="server" ID="lblLocation"></asp:Label> 
    </ItemTemplate> 
    <ItemStyle Width="560px" /> 
    </telerik:GridTemplateColumn> 
    <telerik:GridTemplateColumn HeaderText="Speed">  
    <ItemTemplate> 
    <asp:Label runat="server" ID="lblSpeed"></asp:Label> 
    </ItemTemplate> 
    <ItemStyle Width="100px" /> 
    </telerik:GridTemplateColumn> 
   
    <telerik:GridTemplateColumn HeaderText="Total Time">  
    <ItemTemplate> 
    <asp:Label runat="server" ID="lblCumulativeTime"></asp:Label> 
    </ItemTemplate> 
     <ItemStyle Width="100px" /> 
    </telerik:GridTemplateColumn > 
    <telerik:GridTemplateColumn HeaderText="Total Distance">  
    <ItemTemplate> 
    <asp:Label runat="server" ID="lblCumulativeDistance"></asp:Label> 
    </ItemTemplate> 
     <ItemStyle Width="100px" /> 
    </telerik:GridTemplateColumn> 
      
</Columns> 
</telerik:GridTableView> 
 
</DetailTables>     
          
</MasterTableView> 
</telerik:RadGrid> 

Many thanks
Daniel
Telerik team
 answered on 27 Jul 2009
2 answers
164 views
Hi

I have a grouped grid and I am trying to prevent the groups from being collapsed by hiding the expand collapse button. I have followed the info in the help file and i have tried both approaches (column created event and grid pre render event) but the column is refusing to disappear!

    Protected Sub gridJourneys_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles gridJourneys.ColumnCreated  
        If TypeOf e.Column Is GridGroupSplitterColumn Then  
            e.Column.HeaderStyle.Width = Unit.Pixel(0)  
            e.Column.HeaderStyle.Font.Size = FontUnit.Point(0)  
            e.Column.ItemStyle.Width = Unit.Pixel(0)  
            e.Column.ItemStyle.Font.Size = FontUnit.Point(0)  
            e.Column.Resizable = False 
 
        End If  
    End Sub  
 
    Private Sub gridJourneys_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles gridJourneys.PreRender  
 
        For Each column As GridColumn In gridJourneys.MasterTableView.RenderColumns  
            If (TypeOf column Is GridGroupSplitterColumn) Then  
 
                column.HeaderStyle.Width = Unit.Pixel(0)  
                column.HeaderStyle.Font.Size = FontUnit.Point(0)  
                column.ItemStyle.Width = Unit.Pixel(0)  
                column.ItemStyle.Font.Size = FontUnit.Point(0)  
                column.Resizable = False 
            End If  
        Next  
    End Sub 

The code is detecting the GridGroupSplitterColumn in both cases but it is not affecting the column appearance. In fact i can't make the column any bigger in those code snippets either.

I have set the client side resizable property to true

Here is the grid in case there are any pertinent properties you need to see there

<telerik:RadGrid ID="gridJourneys" runat="server"  Width="960px" AutoGenerateColumns="False" GridLines="None" skin="SkyBlue">  
<MasterTableView DataKeyNames="JourneyID" CommandItemDisplay="Top" Name="Journeys" ShowFooter="True" ShowGroupFooter="True" > 
 <CommandItemTemplate> 
 <table cellpadding="5" cellspacing="0">  
 <tr> 
 <td colspan="2"<span class="title"><asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label></span</td> 
 </tr> 
 <tr> 
    <td>No Journeys</td> 
    <td><asp:Label ID="lblNoJourneys" runat="server"></asp:Label></td>  
 </tr> 
 <tr> 
    <td>Total Distance</td> 
    <td><asp:Label ID="lblTotalDistance" runat="server"></asp:Label></td>  
 </tr> 
 <tr> 
    <td>Total Time</td> 
    <td><asp:Label ID="lblTotalDuration" runat="server"></asp:Label></td>  
 </tr> 
 
 </table> 
 <br /> 
  </CommandItemTemplate> 
 
<NoRecordsTemplate> 
There are no journeys on this date.  
                
</NoRecordsTemplate> 
 
<GroupByExpressions> 
<telerik:GridGroupByExpression> 
<SelectFields> 
<telerik:GridGroupByField  FieldName="StartDate"  FieldAlias="StartDate" FormatString="" HeaderText=""/>  
<telerik:GridGroupByField FieldAlias="TotalDistance" Aggregate="Sum" FieldName="DistanceTravelled" FormatString="" HeaderText=""   /> 
<telerik:GridGroupByField FieldAlias="TotalTime" Aggregate="Sum" FieldName="TimeTakenInSeconds" FormatString="" HeaderText=""   /> 
<telerik:GridGroupByField FieldAlias="Count" Aggregate="Count" FieldName="JourneyID" FormatString="" HeaderText="" /> 
</SelectFields> 
<GroupByFields> 
<telerik:GridGroupByField  FieldName="StartDate" FieldAlias="StartDate" FormatString="" HeaderText=""/>  
</GroupByFields> 
</telerik:GridGroupByExpression> 
</GroupByExpressions> 
 
 
<Columns> 
     <telerik:GridBoundColumn DataField="JourneyID" Aggregate="Count" Visible="False" FooterAggregateFormatString="{0}" UniqueName="JourneyID"></telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="StartDateTime" DataFormatString="{0:dd/MM/yy HH:mm}" HeaderText="Start Time" UniqueName="StartDateTime">  
        <ItemStyle Width="100px" /> 
    </telerik:GridBoundColumn> 
    <telerik:GridTemplateColumn HeaderText="Start Location" UniqueName="StartLocation">  
    <ItemTemplate> 
                <asp:label runat="server" id="lblStartLocation"/>  
    </ItemTemplate> 
        <ItemStyle Width="280px" /> 
</telerik:GridTemplateColumn> 
<telerik:GridBoundColumn DataField="EndDateTime"  DataFormatString="{0:dd/MM/yy HH:mm}" HeaderText="End Time" UniqueName="EndDateTime">  
    <ItemStyle Width="100px" /> 
</telerik:GridBoundColumn> 
<telerik:GridTemplateColumn HeaderText="End Location" UniqueName="EndLocation" > 
<ItemTemplate> 
  <asp:label runat="server" id="lblEndLocation"/>  
      
</ItemTemplate> 
    <ItemStyle Width="280px" /> 
</telerik:GridTemplateColumn> 
 
<telerik:GridBoundColumn DataField="TimeTakenInSeconds" DataFormatString="{0}" UniqueName="TimeTakenInSeconds" Aggregate="Sum" FooterAggregateFormatString="{0}" Visible="False" > 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="Duration" DataField="TimeTaken" UniqueName="TimeTaken">  
 <ItemStyle Width="100px" /> 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn DataField="DistanceTravelled" DataFormatString="{0:F2}" HeaderText="Distance" UniqueName="DistanceTravelled" Aggregate="Sum" FooterAggregateFormatString="{0:F2}">  
    <ItemStyle Width="100px" /> 
</telerik:GridBoundColumn> 
 
 
 
 
</Columns> 
</MasterTableView> 
    <HeaderContextMenu EnableEmbeddedSkins="False" Skin="SureTrack">  
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </HeaderContextMenu> 
    <ClientSettings> 
        <Resizing AllowColumnResize="True" /> 
    </ClientSettings> 
    <FilterMenu EnableEmbeddedSkins="False" Skin="SureTrack">  
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </FilterMenu> 
</telerik:RadGrid> 

I am using q3 2008.

many thanks
Daniel
Telerik team
 answered on 27 Jul 2009
1 answer
104 views
Hi There

I have a radgrid control, Skin is Vista Multi edit row is set to true and i load the control in edit mode.

 

For Each item As GridItem In radResourceLists.MasterTableView.Items

 

 

If TypeOf item Is GridEditableItem Then

 

 

Dim editableItem As GridEditableItem = CType(item, GridDataItem)

 

editableItem.Edit =

True

 

editableItem.BorderStyle = BorderStyle.None

 

End If

 

 

Next

 


When the cotrol load with edit mode all the rows are highlighted in blue so i set EditItemStyle-BackColor="White"
and now the grid is not highlighted in blue. But now the editem item load with blue border around. I tried some properties to remove as i don't want the border to show. Can you please direct me to the right property to do so

Thanks
Tony
Tony Abou-Akl
Top achievements
Rank 1
 answered on 27 Jul 2009
1 answer
165 views
I am loading a user control in a RadDock at runtime that uses both a RadCalendar and RadScheduler.  We are using Telerik.Web.UI assembly version 2009.2.701.20.  After the page has loaded, with the data from the database, there are 2 javascript errors. 
The first is:  '0._preInitialized' is null or not an object
The second is:  Expected ':' (that's a colon).

Anyone seen either of these errors before?  We are using very similar code in another project and it works without issue.
TCN
Top achievements
Rank 1
 answered on 27 Jul 2009
1 answer
123 views
Hello.  I am unable to find the RadBinaryImage control in the Telerik controls group so I manually typed in <telerik:RadBinaryImage id="binaryimage" runat="server>  After trying to make that work, I still have a problem with the radBinary Image even being displayed.  i get the message: "RadBinaryImage is not a known element"
Atanas Korchev
Telerik team
 answered on 27 Jul 2009
3 answers
151 views
Hi Telerik,

I have controls inside form template or radgrid. When click on the edit button i am able to get the controls which are present inside <formtemplate> of grid inside DataBound() event. But when I click on Add new record option I am unable to find the controls id in RadGrid_DataBound() event.

So Please tell me how I fix this as soon as possible.
Its very urgent.

Thanks,
Monalisa
Pavlina
Telerik team
 answered on 27 Jul 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?