Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
388 views
so far - completely unable to get telerik Q2 2009 to work in MVC projects using any sort of encapsulation with ascx files.

Trying to use a combo box inside a ascx that is rendered with Html.RenderPartial.

Is this possible?  Or do all the rad controls have to go in the aspx views?
BaiH
Top achievements
Rank 1
 answered on 28 Jul 2009
11 answers
644 views
First I must say, thanks for this new addition, defintely a nice to have feature.

However I am having some issues with it when not used inside a RadGrid as a BinaryImageColumn.

I took my existing app that used pictures on the file system and changed it to use images in the database using BinaryImage.  My datasources are all LINQ Data Sources.  My SQL 2000 table has a photo column of type 'Image'.  I am using a FormView that gets it data from my LINQ data source. 
Looking at your example you use a SQL data source and I would guess that it returns the Image column as a byte[] but when using LINQ my image column comes back as System.Data.Linq.Binary.  This causes a 'Specified cast is not valid' exception.
My first work around was to change my Linq definition of my image column to type Byte[] and all works well. Except in another part of my app I use a RadGrid and the BinaryImageColumn it fails to work there.  I believe its the opposite issue that it's expecting the other type.
I would prefer to leave my LINQ definition to have the default Image column as a System.Data.Linq.Binary and deal with the casting issue.

Can someone tell me the syntax of how to cast between Byte[] and System.Data.Linq.Binary in the aspx page or do I have to do it in code behind?

Thanks,

Perry
BaiH
Top achievements
Rank 1
 answered on 28 Jul 2009
1 answer
267 views
Is it possible to have more then one datasource with the <#%Eval fieldname%> literal?  I am using sql data source for a radgrid and I want to use another sql data source for a sub section underneath the radgrid in a lower hierarchy.
Princy
Top achievements
Rank 2
 answered on 28 Jul 2009
2 answers
145 views
Hi

i have created a grid with checkbox column. I would like to get the record Id for multiple selected rows in an OnClick event of a button. The button is not part of the grid.
sabarishbabu
Top achievements
Rank 1
 answered on 28 Jul 2009
1 answer
457 views
HI
I have Radgrid with hierarchy.
Now i have checkbox as item template in master detail view as well in detail table view.
how can i bind the checkbox with the dataset.
Princy
Top achievements
Rank 2
 answered on 28 Jul 2009
1 answer
155 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
179 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
146 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
140 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
179 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?