Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
58 views
Can anyone point me to where the MSI is for 2010.2.0924 (2010.2.0924.1040) version of telerik can be found? The engineers at my company have informed me that we have a "custom" version but cannot provide any more information. We currently have MSI installers for Telerik.Web.UI_2010_2_826_Dev.msi and Telerik.Web.UI_2010_2_713_Dev.msi, but not the version our software is on. Any help would be appreciated.

Brian
Sebastian
Telerik team
 answered on 14 Apr 2011
1 answer
59 views
When i define the client handler for calendar OnDateSelected event  i get strange action
as when i select date some dates after being set get change automatically to another date one or 2 days after the date i set

the code is as blow:
<telerik:RadDatePicker ID="calDOB" runat="server" Culture="en" MinDate="1900-01-01"
                Width="100%" TabIndex="5">
                <Calendar runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                </Calendar>
                <DateInput runat="server" DisplayDateFormat="d/M/yyyy" DateFormat="d/M/yyyy" TabIndex="5">
                </DateInput>
                <DatePopupButton ImageUrl="" HoverImageUrl="" TabIndex="5"></DatePopupButton>
                <ClientEvents OnDateSelected="SelectedDateChanged" />
            </telerik:RadDatePicker>

function SelectedDateChanged(sender,args) {
 
          var PckrBirthDate = $find('<%=calDOB.ClientID %>');
          var LblYears = $find('<%= TxtYears.ClientID %>');
          var LblMonths = $find('<%= TxtMonths.ClientID %>');
          var LblDays = $find('<%= TxtDays.ClientID %>');
 
           
 
          var birthDate = PckrBirthDate.get_selectedDate();
 
          if (birthDate != null) {
              var calday = birthDate.getDate();            
              var calmon = birthDate.getMonth();
              var calyear = birthDate.getFullYear();
              getAge(calday, calmon, calyear, LblYears, LblMonths, LblDays); 
          }
          else {
              LblYears.set_value("");
              LblMonths.set_value("");
              LblDays.set_value("");
          }           
      }
function getAge(date, month, year, yearControl, monthControl, dayControl) {
 
    today = new Date();
    dateStr = today.getDate();
    monthStr = today.getMonth();
    yearStr = today.getFullYear();
 
    theYear = yearStr - year;
    theMonth = monthStr - month;
    theDate = dateStr - date;
 
    var days = "";
    if (monthStr == 0 || monthStr == 2 || monthStr == 4 || monthStr == 6 || monthStr == 7 || monthStr == 9 || monthStr == 11) days = 31;
    if (monthStr == 3 || monthStr == 5 || monthStr == 8 || monthStr == 10) days = 30;
    if (monthStr == 1) days = 28;
 
    yearControl.set_value(theYear);
 
    if (month < monthStr && date > dateStr) {
        yearControl.set_value(parseInt(yearControl.get_value()) + 1);
        monthControl.set_value(theMonth - 1);
    }
    if (month < monthStr && date <= dateStr) { monthControl.set_value(theMonth); }
    else if (month == monthStr && (date < dateStr || date == dateStr)) { monthControl.set_value(0); }
    else if (month == monthStr && date > dateStr) { monthControl.set_value(11); }
    else if (month > monthStr && date <= dateStr) {
        yearControl.set_value(yearControl.get_value()- 1);
        monthControl.set_value(((12 - -(theMonth))));
    }
    else if (month > monthStr && date > dateStr) { monthControl.set_value(((12 - -(theMonth)))); }
 
    if (date < dateStr) { dayControl.set_value(theDate); }
    else if (date == dateStr) { dayControl.set_value(0); }
    else { yearControl.set_value(yearControl.get_value() - 1); dayControl.set_value(days - (-(theDate))); }
}

Hope I can get solution to such a problem as soon as possible
Mira
Telerik team
 answered on 14 Apr 2011
1 answer
76 views
Hi Guys,
i,m new bee for telerik chart. i want to set YAxis2 scale range with 8 hours step for stacked bar value. i have tried. but its not giving correct result. please help me, its very very urgent.

 protected void EmployeesChart_BeforeLayout(object sender, EventArgs e)
        {
            foreach (LabelItem item in EmployeesChart.Legend.Items)
            {
                item.Marker.Appearance.Figure = Telerik.Charting.Styles.DefaultFigures.Rectangle;
                item.Marker.Appearance.Dimensions.Width = 25;
            }
           
            int mins = 0;
            int hours = 0;
            foreach (ChartAxisItem axisItem in EmployeesChart.PlotArea.YAxis2.Items)
            {
                axisItem.TextBlock.Text = string.Format("{0:0}", hours) + ":" + string.Format("{0:00}", mins);
                hours = hours + 8;
            }


        }

HTML:
<telerik:RadChart ID="EmployeesChart" runat="server" OnBeforeLayout="EmployeesChart_BeforeLayout"
        OnClick="EmployeesChart_Click" DefaultType="StackedBar" Width="750" SeriesOrientation="Horizontal"
        Style="margin-left: 100px">
        <ChartTitle TextBlock-Appearance-AutoTextWrap="Auto" TextBlock-Text="Week-to-Date Labor Hours by Employee">
            <Appearance Position-AlignedPosition="Top">
            </Appearance>
        </ChartTitle>
        <Series>
            <telerik:ChartSeries Name="Regular" Type="StackedBar">
                <Appearance>
                    <Border Visible="false" />
                    <FillStyle FillType="Solid" MainColor="79, 129, 189">
                    </FillStyle>
                    <LabelAppearance Position-AlignedPosition="Center" Distance="10" Visible="true">
                    </LabelAppearance>
                    <TextAppearance TextProperties-Color="Black">
                    </TextAppearance>
                    <Border Color="136, 166, 78" />
                </Appearance>
            </telerik:ChartSeries>
            <telerik:ChartSeries Name="Overtime" Type="StackedBar">
                <Appearance>
                    <Border Visible="false" />
                    <FillStyle FillType="Solid" MainColor="192, 80, 77">
                    </FillStyle>
                    <LabelAppearance Position-AlignedPosition="Center" Distance="10" Visible="False">
                    </LabelAppearance>
                    <TextAppearance TextProperties-Color="Black">
                    </TextAppearance>
                    <Border Color="136, 166, 78" />
                </Appearance>
            </telerik:ChartSeries>
            <telerik:ChartSeries Name="Projected" Type="StackedBar">
                <Appearance>
                    <Border Visible="false" />
                    <FillStyle FillType="Solid" MainColor="134,134, 134">
                    </FillStyle>
                    <LabelAppearance Position-AlignedPosition="Center" Visible="true">
                    </LabelAppearance>
                    <TextAppearance TextProperties-Color="Black">
                    </TextAppearance>
                    <Border Color="136, 166, 78" />
                </Appearance>
            </telerik:ChartSeries>
        </Series>
        <PlotArea>
            <XAxis VisibleValues="Positive" Visible="True">
                <AxisLabel Visible="true">
                    <TextBlock Text="Employees">
                    </TextBlock>
                    <Appearance Position-AlignedPosition="Center">
                    </Appearance>
                </AxisLabel>
                <Appearance>
                    <MajorGridLines Color="134, 134, 134" Width="0" />
                    <TextAppearance TextProperties-Color="Black">
                    </TextAppearance>
                </Appearance>
                <AxisLabel>
                    <Appearance RotationAngle="270">
                    </Appearance>
                    <TextBlock>
                        <Appearance TextProperties-Color="Black">
                        </Appearance>
                    </TextBlock>
                </AxisLabel>
            </XAxis>
            <YAxis2 VisibleValues="Positive" Visible="True">
                <AxisLabel Visible="true">
                    <TextBlock Text="Hours">
                        <Appearance TextProperties-Color="Black">
                        </Appearance>
                    </TextBlock>
                    <Appearance Position-AlignedPosition="Bottom">
                    </Appearance>
                </AxisLabel>
                <Appearance ValueFormat="ShortTime">
                    <MajorGridLines Color="134, 134, 134" Width="0" />
                    <TextAppearance TextProperties-Color="Black">
                    </TextAppearance>
                </Appearance>
                <AxisLabel>
                    <Appearance RotationAngle="0">
                    </Appearance>
                </AxisLabel>
            </YAxis2>
            <YAxis Visible="False" VisibleValues="All">
            </YAxis>
        </PlotArea>
    </telerik:RadChart>

Thanks
Ravi


Yavor
Telerik team
 answered on 14 Apr 2011
1 answer
155 views
Hello,

I have a gridview in which I inserted a GridTemplateColumn with a checkbox. The grid is loaded from your code and I can not set the checkbox value in the datatable.

Help
Best regards
Alessia
<telerik:RadGrid ID="G_Permessi" runat="server" AllowPaging="true" Width="100%" Height="100%"
    AutoGenerateColumns="false" GridLines="Both" PageSize="13" AllowSorting="true"
    AllowMultiRowSelection="true">
    <ClientSettings AllowKeyboardNavigation="true" ActiveRowIndex="0">
        <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="True" />
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowSelected="G_Permessi_OnRowSelected" />
    </ClientSettings>
    <AlternatingItemStyle BackColor="#C7E3E3" />
    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" PagerTextFormat="{4} Numero record filtrati: {5}" />
    <MasterTableView runat="server" TableLayout="Fixed" DataKeyNames="IdPermesso" EditMode="InPlace">
        <Columns>
            <telerik:GridBoundColumn UniqueName="AttivoDB" DataField="Attivo" Display="false" />
            <telerik:GridBoundColumn UniqueName="IdPermesso" DataField="IdPermesso" Display="false" />
            <telerik:GridBoundColumn UniqueName="Modulo" DataField="Modulo" HeaderText="Modulo"
                meta:resourcekey="G_Permessi_Modulo">
                <HeaderStyle Width="100px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Permesso" DataField="Permesso" HeaderText="Permesso"
                meta:resourcekey="G_Permessi_Permesso">
                <HeaderStyle Width="100px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Descrizione" DataField="Descrizione" HeaderText="Descrizione"
                meta:resourcekey="G_Permessi_Descrizione">
                <HeaderStyle Width="100px" />
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="Attivo" DataField="Attivo" HeaderText="Attivo"
                meta:resourcekey="Grid_Attivo">
                <ItemTemplate>
                    <asp:CheckBox ID="Chk_Attivo" OnCheckedChanged="AssegnaPermesso" AutoPostBack="true"
                        runat="server" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" Width="50px" />
            </telerik:GridTemplateColumn>
            
        </Columns>
    </MasterTableView>
</telerik:RadGrid>






Shinu
Top achievements
Rank 2
 answered on 14 Apr 2011
1 answer
100 views
I have the 2009 Q3 controls installed within VS 2010. I want to upgrade to 2011 Q1. I have the attached picture that shows it's installed.

However, I can't find the "RadControls for ASP.NET AJAX Q1 2011" folder anywhere on my pc.

How can I upgrade to these new controls?
Erjan Gavalji
Telerik team
 answered on 14 Apr 2011
1 answer
309 views
Hi Support Team:
I just want to know if there is a way that the list view that is implemented as an Image gallery and that is actually in this link
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/listviewsliderwindowrotator/defaultvb.aspx?product=listview can load the images from the db.And if there is a way could you please give me a brief example of it and also if there is a way to give the choice to the user to delete,modify and update the photos and its properties.
Thanks a lot for your support!!
Rene Lopez
Tsvetina
Telerik team
 answered on 14 Apr 2011
1 answer
120 views
Hello,

I am trying to use the RadTimePicker to both bind to a Time Value and allow selection/changes to the value in the input box.  When I am clicking the image of the clock, the popout for the time ranges is not showing.  Below is my markup:

<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/Site.Master"  EnableTheming="true" Theme="theme" CodeBehind="TimeSheet.aspx.cs" Inherits="TimeSheet.Account.TimeSheet" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<style>
.NumericTextStyle { text-align:right !important; }
</style> 
    <div>
        <h1>Employees Time Sheet</h1>
        
        <table style="width454px">
            <tr>
                <td style="width84px">
                    <asp:Label ID="Label1" runat="server" Text="Employee:"></asp:Label>
                 </td>
                <td>
                    <asp:Label ID="lblEmployeeName" runat="server" Width="350px" BorderWidth="1px" 
                        Font-Bold="False" BorderColor="Black" BorderStyle="Groove"></asp:Label>
                    </td>
            </tr>
            <tr>
                <td style="width84px">
                    <asp:Label ID="Label2" runat="server" Text="Week Of:"></asp:Label></td>
                <td>
                <asp:DropDownList ID="ddTimePeriod" Width="350px"  BackColor="#FEFFE8" AutoPostBack="true" 
                        runat="server" onselectedindexchanged="ddTimePeriod_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            </table>
        <br />
         <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
         </telerik:RadScriptManager>
         <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />
         <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Button2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
        <div id="TimeEntry" style="background-color:#FEFFE8border:thin solid #008080padding:5pxwidth:1005px ">
        <asp:DataList ID="dlTimeSheet" runat="server" 
        RepeatColumns="9" RepeatDirection="Horizontal" CellPadding="1" UseAccessibleHeader="True" 
        onitemdatabound="dlTimeSheet_ItemDataBound" DataKeyField="Id" 
                ShowFooter="False" ShowHeader="False" >
        <ItemTemplate>
        <div style="text-align:centerwidth:100px">
        <asp:Label ID="lblRowTitle1" runat="server" Height="84px" Width="100px" 
                Text="" /><br />
        <asp:Label ID="lblRowTitle2" runat="server" Height="38px" Font-Bold="true" Width="100px" 
                Text="Start Time:" />
        <asp:Label ID="lblRowTitle3" runat="server" Height="38px" Font-Bold="true" Width="100px" 
                Text="End Time:" />
        <asp:Label ID="lblRowTitle4" runat="server" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" 
                Text="On-Site Hours:" />
        <asp:Label ID="lblRowTitle5" runat="server" Height="30px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" 
                Text="Off-Site Hours:" />
        <asp:Label ID="lblRowTitle6" runat="server" Height="30px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" 
                Text="Lunch:" />
        <asp:Label ID="lblRowTitle7" runat="server" Height="20px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" 
                Text="Category:" />
        <asp:Label ID="lblRowTitle8" runat="server" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" 
                Text="Weekly Totals:" />
       <div style="text-align:leftwidth:100px">
        <asp:Label ID="DayofWeekLabel" runat="server"  Width="100px"  
                Text='<%# Eval("TimeRange") %>' />
        </div>
        <asp:Label ID="lblId" runat="server"  Width="100px" Visible="false"  
                Text='<%# Eval("Id") %>' />
        <asp:Label ID="lblDayofWeek" runat="server"  Width="100px" Visible="false"  
                Text='<%# Eval("DayofWeek") %>' />
        </div>
         <div style="text-align:centerwidth:100px">
                <div style="float:lefttext-align:left">
                           <telerik:RadTimePicker ID="RaddtpStart" runat="server"  Width="100px" SharedTimeViewID="sharedTimeView" SelectedDate='<%# Eval("StartTime") %>' ShowPopupOnFocus="True">
                                </telerik:RadTimePicker>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                ControlToValidate="RaddtpStart" ValidationGroup="group1"></asp:RequiredFieldValidator>
                </div>
                <div style="float:lefttext-align:left">
                           <telerik:RadTimePicker ID="RaddtpEnd"  Width="100px" SharedTimeViewID="sharedTimeView" runat="server" SelectedDate='<%# Eval("EndTime") %>'>
                                 </telerik:RadTimePicker>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                                ControlToValidate="RaddtpEnd" ValidationGroup="group1"></asp:RequiredFieldValidator>
                </div>
    <telerik:RadTimeView ID="sharedTimeView" runat="server" StartTime="07:00:00" EndTime="19:00:00" Interval="00:15:00" >
    </telerik:RadTimeView>
    <telerik:RadTimeView ID="sharedDynamicTimeView" runat="server" StartTime="07:00:00" EndTime="19:00:00" Interval="00:15:00">
    </telerik:RadTimeView>
     <br />
    
        <div style="text-align:rightwidth:100px">
         <asp:Label ID="lblRegularTime" runat="server" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px"  Width="100px" 
                Text='<%# Eval("OnSiteHours") %>' />
        </div>
        <div style="text-align:rightwidth:100px">
        <telerik:RadNumericTextBox ID="lblOffsiteTime" Runat="server" SkinID="CurrencyOnlyBox" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px"  Width="98px" Text='<%# Eval("OffSiteHours") %>' CssClass="NumericTextStyle">
                    </telerik:RadNumericTextBox>
        </div>
        <div style="text-align:rightwidth:100px">
        <asp:TextBox ID="lblLunchTime" Runat="server" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px"  Width="98px" Text='<%# Eval("Lunch") %>' CssClass="NumericTextStyle">
                    </asp:TextBox>
        </div>
        <div style="text-align:leftwidth:100px">
        <asp:DropDownList ID="ddlCategory" Width="100px" BackColor="#f1fdfe"  runat="server">
                </asp:DropDownList>
        <asp:Label ID="lblDummy" runat="server" Text="--------------------" Height="20px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px"></asp:Label>
        </div>
        <div style="text-align:rightwidth:100px">
         <asp:Label ID="lblTotals" runat="server" Text="0.0" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px"></asp:Label>
         </div>
        </ItemTemplate>
 
       </asp:DataList>
       </div>
        <table width="520">
            <tr>
                <td style="width208px" valign="top">
                    Notes:</td>
                <td style="width472px">
                    <asp:TextBox ID="txtNotes" runat="server" Height="77px" TextMode="MultiLine" Width="431px"></asp:TextBox></td>
            </tr>
        </table>
        &nbsp;<table width="520">
            <tr>
                <td style="width5103px">
                </td>
                <td style="width434px">
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" Width="91px" /></td>
            </tr>
        </table>
</div>
</asp:Content>

Am I missing some references or scripts/styles that make it work?  Thanks
Radoslav
Telerik team
 answered on 14 Apr 2011
3 answers
116 views
Hi,

I am using Telerik Rad File Explorer of new version.
It is cool.

I have few queries:-

1. I am using customized Working Progress Image.So I don't want to show the inbuilt working Image of Rad File Explorer for both Treeview and Gridview.
2. I  want to show an customized alert message that "You cannot delete this Folder" instead of the inbuilt confirmation message while selecting Root Node Folder(Virtual Path for Delete) and clicking the delete button/option.

Can you please give me suggestions in solving these?

Thanks,
Naveen.
Dobromir
Telerik team
 answered on 14 Apr 2011
1 answer
148 views
I have the following definition for my RadGrid:

<telerik:RadGrid ID="gvForecast" runat="server" Width="100%" Height="425px"
    AutoGenerateEditColumn="false" 
    AutoGenerateColumns="false" 
    GridLines="None" Skin="Office2007" ShowFooter="True" CellSpacing="0"
    OnCancelCommand="gvForecast_CancelCommand" 
    OnItemDataBound="gvForecast_ItemDataBound" 
    OnItemCreated="gvForecast_ItemCreated" 
    OnItemCommand="gvForecast_ItemCommand"
    OnColumnCreated="gvForecast_ColumnCreated" 
    AlternatingItemStyle-BackColor="#E2EDFE" >
As you can see, I have the auto generated edit column property set to false.  Regardless, the Edit column continues to appear as the far right hand column in my grid. 

Please don't tell me to hide it in PreRender....while this does hide the column, the header columns and remaining grid items are out of alignment.

For what it is worth, I can create my own Edit column <telerik:GridEditCommandColumn UniqueName="colEdit" Display="true"  without any problems, it's just that the auto generated column continues to remain at the far right side of the grid.   When I do this, both columns of Edit links are functional. 

Any help would be appreciated.  I am using the most current release of the toolkit.

Edit:  I attached a .jpg screen shot showing the stubborn Edit column.
Tsvetina
Telerik team
 answered on 14 Apr 2011
1 answer
554 views

I have been able to programmatically apply formatting to both the XAxis and YAxis (although not successfully for every chart), however, I am unable to figure out how to format the series labels.
For example, I have used the following, which has zero effect upon the series labels - regardless of what is provided in the DefaultLabelValue parameter:

<telerik:ChartSeries DataYColumn="TotalCost" Type="Line" Name="TotalCost" DataLabelsColumn="TotalCost" DefaultLabelValue="#Y{C}">

Nor do any of my codebehind (located within the ItemDataBound event) attempts:

RadChart_ProjectTrends_Costs.PlotArea.Chart.Series[0].DefaultLabelValue

the .Appearance.CustomFormat parameter applies to Style.Axis, and not Chart.Series

Any advice on how to apply *any* formatting to databound values in RadChart would be greatly, greatly appreciated.

Evgenia
Telerik team
 answered on 14 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?