Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
212 views
I have a RadBinaryImage in a asp:Repeater template. I also have a RadBinaryImage in a RadRotator template. The Repeater works. The Rotator does not. What am I doing wrong?
<asp:Repeater runat="server" ID="AttachmentRepeater" EnableViewState="false">
    <ItemTemplate>
        <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" ResizeMode="Fit" DataValue='<%# Eval("Image")%>' Width="200" Height="200" />
    </ItemTemplate>
</asp:Repeater>
 
        <telerik:RadRotator ID="thumbRotator" runat="server" RotatorType="ButtonsOver" Width="572"
            Height="118px" ItemHeight="118" ItemWidth="145" FrameDuration="1000" ScrollDirection="Left,Right" OnItemClick="ShowImage">
            <ItemTemplate>
                <div>
                    <telerik:RadBinaryImage ID="RadBinaryImage2" runat="server" ResizeMode="Fit"
                                             DataValue='<%# Eval("Image")%>' Width="200" Height="200" />
                </div>
            </ItemTemplate>
            <ControlButtons LeftButtonID="img_left" RightButtonID="img_right" />
        </telerik:RadRotator>

In the following code, the Images collection contains objects that have a Byte[] property and a String property. The Byte[] is the contents of an image acquired by using an AsyncUpload control.

DataTable rotatorData = new DataTable();
 rotatorData.Columns.Add("Image", typeof(System.Array));
 rotatorData.Columns.Add("Name");
 foreach (ImageInfo tempInfo in Images)
 {
     DataRow row = rotatorData.NewRow();
     row["Image"] = tempInfo.Image;
     row["Name"] = tempInfo.Name;
     rotatorData.Rows.Add(row);
 }
 thumbRotator.DataSource = rotatorData;
 thumbRotator.DataBind();

Shinu
Top achievements
Rank 2
 answered on 10 Nov 2011
1 answer
61 views
I am using a RadComboBox control in a SharePoint 2010 visual web part with Load-On-Demand enabled (server-side ItemsRequested event), but I am getting a client error "There was an error in the callback" when I set focus to the combobox or if I type a letter in the textbox. With debugging enabled I can see the user control's Page_Load event being fired, but the ItemsRequested event is never fired. Any ideas as to why this is happening?

Thanks,
Larkin
Kalina
Telerik team
 answered on 10 Nov 2011
1 answer
318 views
Hi:
I am creating a chart, where the chart could be a line or bar.  The # of point could be 3 or 120.  So the following issue and example are interestingly similar, I am looking to remove the white-space above and below the plot-area.
http://www.telerik.com/community/forums/aspnet-ajax/chart/white-space-above-and-below-chart-when-dynamically-setting-height.aspx
But, I have a RadGrid below my chart.  The fun part is that the 2 controls seem to partially overlay each other (not good in a production system).
<%@ Page Title="" Language="VB" MasterPageFile="~/Member.Master" AutoEventWireup="false" CodeFile="RadChartTitle.aspx.vb" Inherits="Learning_RadChartTitle" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <telerik:RadChart ID="radChart" runat="server" AutoLayout="true" Width="750" Height="450">
    </telerik:RadChart>
    <telerik:RadGrid ID="chartDataRadGrid" runat="server"
        Width="100%" ShowHeader="false" >
        <MasterTableView AutoGenerateColumns="False" ShowHeader="true">
            <Columns>
                <Telerik:GridBoundColumn DataField="Name" UniqueName="Index" HeaderText="Index" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" Visible="true" />
                <Telerik:GridBoundColumn DataField="Value" UniqueName="V1Column" HeaderText="Value 1" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" Visible="true" />
                <Telerik:GridBoundColumn DataField="Value2" UniqueName="V2Column" HeaderText="Value 2" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" Visible="true" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
</asp:Content>
Code behind:
Option Explicit On
Option Strict On
'
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Data
Imports Telerik.Charting
Partial Class Learning_RadChartTitle
    Inherits System.Web.UI.Page
    '
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        Dim _table As DataTable = GetTable()
        '
        Dim _series1 As New ChartSeries()
        Dim _numOfSeries As Integer = 2
        _series1.Type = ChartSeriesType.Bar
        _series1.DataYColumn = "Value"
        _series1.Name = "Series 1"
        radChart.Series.Add(_series1)
        '
        If _numOfSeries = 2 Then
            Dim _series2 As New ChartSeries()
            _series2.Type = ChartSeriesType.Bar
            _series2.DataYColumn = "Value2"
            _series2.Name = "Series 2"
            radChart.Series.Add(_series2)
        End If
        radChart.PlotArea.XAxis.DataLabelsColumn = "Name"
        radChart.SeriesOrientation = ChartSeriesOrientation.Horizontal
        radChart.DataSource = _table
        radChart.Appearance.Dimensions.Height = Telerik.Charting.Styles.Unit.Pixel(_table.Rows.Count * 25 * _numOfSeries)
        radChart.DataBind()
        chartDataRadGrid.DataSource = _table
        chartDataRadGrid.DataBind()
    End Sub
    '
    Private Shared Function GetTable() As DataTable
        Dim table As New DataTable()
        'table columns
        table.Columns.Add("Name", GetType(String))
        table.Columns.Add("Value", GetType(Integer))
        table.Columns.Add("Value2", GetType(Integer))
 
        'table rows
        table.Rows.Add("Value1", 10, 20)
        table.Rows.Add("Value2", 20, 30)
        table.Rows.Add("Value3", 30, 21)
        table.Rows.Add("Value4", 40, 35)
        table.Rows.Add("Value5", 50, 50)
        table.Rows.Add("Value6", 60, 62)
        table.Rows.Add("Value7", 70, 65)
        table.Rows.Add("Value8", 80, 68)
        table.Rows.Add("Value9", 90, 71)
        table.Rows.Add("Value10", 100, 74)
        table.Rows.Add("Value11", 110, 77)
        Return table
        '
    End Function
End Class
Thanks for your help
Phil
p.s. comment all but one row of data ...
Peshito
Telerik team
 answered on 10 Nov 2011
3 answers
212 views
I initially downloaded the trial version and installed it.  I then downloaded my licensed version.  The extensions don't appear to be correctly installed in VS 2010.  Although I have the telerik menu,  I don't have anything under it except "About".  Further the templates are not present and the context menu of the solution explorer is not present. 

I have uninstalled and installed 3 times with no change.

Is there a manual way to install?

Thanks,
Peter
Top achievements
Rank 1
 answered on 10 Nov 2011
3 answers
61 views
Hi,
       I am using a rad chart (type="Line") where I need to set major grid line style for each axis item in the y axis like, need to set different color for different grid lines and set visibility =false for some items etc. Is there a chance to do this ? I know there is a property to set the visibility or other styles for all the axis items in the y axis. But my need is to do the styling for individual items separately.
Thanks & Regards
Shafi
Evgenia
Telerik team
 answered on 10 Nov 2011
1 answer
81 views
Dear Sirs,
we are using Scheduler from RadControls (Q2 2001 SP1 - latest release).
We are using the Timeline view, and it works fine but the problem is that we cannot see the timeline button.
Here's the code:
scheduler.SelectedView = SchedulerViewType.TimelineView;
scheduler.ShowViewTabs = true;
scheduler.TimelineView.UserSelectable = true;
scheduler.WeekView.UserSelectable = true;
scheduler.MonthView.UserSelectable = true;
scheduler.DayView.UserSelectable = false;

Could you please help us?
Thanks in advance.
Regards,
Sergio
Plamen
Telerik team
 answered on 10 Nov 2011
1 answer
188 views
Hello,

I have used rad grid with insert , update option using edit form template.While Add/Edit time Depending on Radio Button Selection I need to Enable , Disable Validation. Insert , Update option works perfect when validation are enable but when i am selecting option which is disabling my validation then by clicking on Insert , Update button my insertcommand and updatecommand are not working. By clicking on insert or update button it direct comes to itemcommand event not on insert or update command.

Any Idea why rad grid insert , update command not working after disabling validation?
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Nov 2011
1 answer
61 views
Hello All,
I am Using Custom Edit Template in Rad Scheduler to Insert Appointment Item.But i am facing to apply  my Own Css class to Cutom Edit Template.I have written my Custom Edit Template using InlineInsertTemplate but when ever am click on a particular date to add an Item,template not looking good and am unable to find how to Apply my Own Css class to Inline InsertTemplate. aim sending attached Screen Shot how Template looking.
Hoping Response will Come ASAP


 Thanks & Regards
N.Vishnu Vardhan Reddy
Ivana
Telerik team
 answered on 10 Nov 2011
2 answers
131 views
Hello,
I need to have a grid with Custom Filters. Those filters needs to be comboboxes with checkboxes.
I started from http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx.
I can successfully run the sample & I modified the combobox (checkboxes=true) to display all items with checkboxes.
Now I've 2 issues :
1°) When I filter on 1 checkbox from the combobox "Country", it works. But when I check 2 checkboxes (2 countries), I can not have results.
Do you have another sample or a doc explaining how to handle multiple selections for 1 filter ? Or any tips to explain how to do that ?
2°) The custom filters column are not sortable, how to have them sortable too ?

Nicolas
Nicolas
Top achievements
Rank 1
 answered on 10 Nov 2011
1 answer
198 views
The RadDatePicker Auto correcting if you put invalid date values.

Ex : 01012011auto correct to 01-Jan-2011

How Can i disable autocorrect in RadDatePicker? 
Princy
Top achievements
Rank 2
 answered on 10 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?