Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
82 views
Hello,

If you look at the product page of the Telerik ASP.NET Ajax suite (http://www.telerik.com/products/aspnet-ajax.aspx) and half way the page you can select the different themes available. There you can see a professional looking matching background images for each theme. Are those available for download as well?

Regard,
Frank Witte
Frank Witte
Top achievements
Rank 1
 answered on 29 Jan 2014
2 answers
306 views
Can someone help explain how I set the default value in teh a RadTimePicker.  By that I mean when my page loads I want to see 12:00 AM in one case and  23:59 AM in another case.  I have tried so many different things with no luck!
Jesse
Top achievements
Rank 1
 answered on 29 Jan 2014
8 answers
233 views
Hello,

I'm currently using the Editor and I am facing troubles with the bullet list. When I use the Editor in Chrome, the font gets changed to Times New Roman. I do not have this problem in IE and Firefox.

I use the following code:
<telerik:RadEditor runat="server" ID="RadEditor1" Width="800px" Height="500px" SkinID="DefaultSetOfTools"
    ToolsFile="~/Beheer/Traject/tools.xml">
    <CssFiles>
        <telerik:EditorCssFile Value="~/Beheer/Traject/radeditor.css" />
    </CssFiles>
</telerik:RadEditor>


The following code is the content of the CSS file.

.RadEWrongWord
{
    background-color: yellow;
}
.RadEDomMouseOver
{
    background-color:#ffffcc;
}
body
{
    padding:3px;
    background-image: none;
    margin: 0px;
    text-align: left;
    scrollbar-face-color: #E9E9E9;
    scrollbar-highlight-color: #FFFFFF;
    scrollbar-shadow-color: #E9E9E9;
    scrollbar-3dlight-color: #DBDBDB;
    scrollbar-arrow-color: #787878;
    scrollbar-track-color: #F5F5F5;
    scrollbar-darkshadow-color: #AEAEAE;
    word-wrap: break-word;
}
form
{
    background-color:#efefef;
    border:1px dashed #555555;
}
table
{
    BORDER-RIGHT: #999999 1px dashed;
    BORDER-BOTTOM: #999999 1px dashed;
}
table td
{
    PADDING: 1px;
    BORDER-TOP: #999999 1px dashed;
    BORDER-LEFT: #999999 1px dashed;
}
table th
{
    PADDING: 1px;
    BORDER-TOP: #000000 1px dashed;
    BORDER-LEFT: #000000 1px dashed;
}
OL
{
    list-style-type: decimal;
}
OL OL
{
    list-style-type: decimal;
}
UL
{
    list-style-type: disc;
}
UL UL
{
    list-style-type: circle;
}

Any help with the problem would be much appriciated.

Regards,

Corné
Ianko
Telerik team
 answered on 29 Jan 2014
3 answers
142 views
Hello, please see attached PNG that show the resize handles for a selected image. Notice that as I scroll down the handles are shown above the editor menu and outside the editor. The editor is shown within a tooltip. Everything else is working correctly. I am assuming this is a z-index issue. Note that I set the tooltip z-index to 2000 but that is the only z-index setting I set. Thank you!
Marin Bratanov
Telerik team
 answered on 29 Jan 2014
1 answer
60 views
I couldn't build the solution since i'm getting the follwing error:-

Error 1 The "OpenAccessDeploy" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory. Telerik.SalesDashboard.DAL

Hope anyone could help out to fix this issue. thanks
Maria Ilieva
Telerik team
 answered on 29 Jan 2014
1 answer
103 views
Im getting the follwoing error when i build the sales dashboard demo solution,

Error 4 The "OpenAccessDeploy" task could not be loaded from the assembly C:\Users\$$-kherath\Desktop\SalesDashBoard\ReferencesTRIAL\Telerik OpenAccess\enhancer.exe. Could not load file or assembly 'Telerik.OpenAccess, Version=2013.3.1014.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. Telerik.SalesDashboard.DAL

How can i fix this?
Maria Ilieva
Telerik team
 answered on 29 Jan 2014
9 answers
208 views
Greetings:
    I have an aspx. page that I'm using as an EditForm for a Radgrid. The Radgrid is contained on this page as a UserControl. Therefore, I have a button on this page that I'm using to direct the appropriate commandname needed in the control's code-behind. This works fine to edit/update a record from the Radgrid. However, I can't wrap my head around getting this to work for Inserting a record. The following is my button click event that creates an error when inserting ("Index was outside the bounds of the array")

protected void SaveChanges_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                RadGrid EquipInvGrid = (this.Master.FindControl("ContentPlaceHolder1").FindControl("EquipInvListControl").FindControl("rg_EquipInvList")) as RadGrid;
 
                if (rtbFormMode_Hdn.Text == "Update")
                {
                    (EquipInvGrid.SelectedItems[0] as GridDataItem).FireCommandEvent(RadGrid.UpdateCommandName, string.Empty);
                }
                else
                {
                    EquipInvGrid.MasterTableView.IsItemInserted = true;
                    (EquipInvGrid.MasterTableView.GetItems(GridItemType.CommandItem)[0] as GridCommandItem).FireCommandEvent(RadGrid.PerformInsertCommandName, string.Empty);
                }
            }
            else
            {
                rnotif_Validation.Show();
            }
        }

 

Any help is much appreciated.

Walt

 

 

 

Viktor Tachev
Telerik team
 answered on 29 Jan 2014
1 answer
151 views
Hi below is my aspx and aspx.cs file , I am trying to export all data(MasterTableView and DetailsTableView), But my excel file has an icon in excel sheet
Attached is the screenshot of the icon and excel file,
please help me out.

 <script type="text/javascript" language="javascript">
        function onRequestStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportMasterDataButton") > 0) {
                args.set_enableAjax(false);
            }
            if (args.get_eventTarget().indexOf("ExportDetailDataButton") > 0) {
                args.set_enableAjax(false);
            }
            if (args.get_eventTarget().indexOf("ExportMasterGridButton") > 0) {
                args.set_enableAjax(false);
            }
        }
    </script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ClientEvents OnRequestStart="onRequestStart"></ClientEvents>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="GridView12">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridView12" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel> 

<telerik:RadGrid ID="GridView12" runat="server" Width="100%" AutoGenerateColumns="false"
            PageSize="10" EnableLinqExpressions="false" AllowSorting="True" AllowFilteringByColumn="True"
            OnDetailTableDataBind="GridView12_DetailTableDataBind" enablelinqexpression="false"
            AllowPaging="True" CellSpacing="1" Style="padding: 1px;" Skin="Default" OnNeedDataSource="GridView12_OnNeedDataSource"
            OnPreRender="GridView12_PreRender" OnItemCreated="GridView12_OnItemCreated" OnItemCommand="GridView12_OnItemCommand">
            <ClientSettings>
                <Selecting AllowRowSelect="False" />
                <Scrolling AllowScroll="true" ScrollHeight="400px" UseStaticHeaders="true" />
            </ClientSettings>
            <ExportSettings Excel-Format="Html" ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
            </ExportSettings>
            <MasterTableView Name="TypeSummary" DataKeyNames="type_id" ClientDataKeyNames="type_id"
                NoMasterRecordsText="<center>No viewings are available" CommandItemDisplay="Top">
                <HeaderStyle Font-Size="14px" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True" />
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True" />
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="Type_Name" SortOrder="Ascending" />
                </SortExpressions>
                <CommandItemTemplate>
                    <asp:Button ID="ExportMasterDataButton" runat="server" CommandName="ExportMasterData"
                        ClientIDMode="Static"></asp:Button>
                    <asp:Button ID="ExportMasterGridButton" runat="server" ClientIDMode="Static" CommandName="ExportAllMasterDetailsData" />
                </CommandItemTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="Type_Name" SortExpression="Type_Name" HeaderText="Type Name"
                        HeaderButtonType="None" UniqueName="TypeName" ItemStyle-Width="100px" ShowSortIcon="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Total_Duration" SortExpression="Total_Duration"
                        HeaderText="Total Duration" UniqueName="TotalDuration" ItemStyle-Width="100px"
                        ShowSortIcon="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Num_Contacts" SortExpression="Num_Contacts" HeaderText="Num Contacts"
                        UniqueName="NumContacts" ItemStyle-Width="100px" ShowSortIcon="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Virtual_Num_contacts" SortExpression="Virtual_Num_contacts"
                        ShowSortIcon="true" HeaderText="Num Group Contacts" UniqueName="NumGroupContacts"
                        ItemStyle-Width="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Average_Duration" SortExpression="Average_Duration"
                        HeaderText="Average Duration" UniqueName="AverageDuration" ShowSortIcon="true"
                        ItemStyle-Width="100px">
                    </telerik:GridBoundColumn>
                </Columns>
                <DetailTables>
                    <telerik:GridTableView Name="TypeList" DataKeyNames="type_id" Width="100%" Height="100%"
                        NoDetailRecordsText="<center>No viewings are available</center>" AllowFilteringByColumn="true"
                        ShowHeadersWhenNoRecords="true" AllowPaging="true" AllowSorting="true" PageSize="10"
                        CommandItemDisplay="Top" HierarchyLoadMode="ServerOnDemand">
                        <HeaderStyle Font-Size="14px" />
                        <SortExpressions>
                            <telerik:GridSortExpression FieldName="Access_Date" SortOrder="Ascending" />
                        </SortExpressions>
                        <CommandItemTemplate>
                            <asp:Button ID="ExportDetailDataButton" runat="server" CommandName="ExportDetailsData"
                                ClientIDMode="Static"></asp:Button>
                        </CommandItemTemplate>
                        <Columns>
                            <telerik:GridDateTimeColumn FilterControlWidth="175px" DataField="Access_Date" HeaderText="Date of Viewing"
                                SortExpression="Access_Date" UniqueName="AccessDate" PickerType="DateTimePicker"
                                DataFormatString="{0:MM/dd/yyyy hh:mm tt}" ShowFilterIcon="True" ShowSortIcon="True"
                                DataType="System.DateTime" AllowFiltering="true">
                            </telerik:GridDateTimeColumn>
                            <telerik:GridBoundColumn DataField="First_Name" SortExpression="First_Name" HeaderText="First Name"
                                HeaderButtonType="None" UniqueName="FirstName" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Last_Name" SortExpression="Last_Name" HeaderText="Last Name"
                                HeaderButtonType="None" UniqueName="LastName" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn DataField="Email_Address" HeaderText="Email Address" ItemStyle-Width="100px" FilterControlWidth="100px"
                                SortExpression="Email_Address" UniqueName="EmailAddress" ShowSortIcon="true" AllowFiltering="true">
                                <ItemTemplate>
                                    <a onclick="viewVirtualContact(<%#Eval("contact_id")%>,<%#Eval("isvirtualcontact")%>)">
                                        <%# Eval("Email_Address") %></a>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="Business_title" SortExpression="Business_title"
                                HeaderText="Title" HeaderButtonType="None" UniqueName="Title" ItemStyle-Width="100px"
                                FilterControlWidth="100px" ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="city" SortExpression="city" HeaderText="City"
                                HeaderButtonType="None" UniqueName="City" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="state" SortExpression="state" HeaderText="State"
                                HeaderButtonType="None" UniqueName="state" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="country" SortExpression="country" HeaderText="Country"
                                HeaderButtonType="None" UniqueName="country" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Video_Event_Name" SortExpression="Video_Event_Name"
                                HeaderText="Video Event Name" HeaderButtonType="None" UniqueName="VideoEventName"
                                ItemStyle-Width="100px" FilterControlWidth="100px" ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Video_Viewed" SortExpression="Video_Viewed" HeaderText="Session Viewed"
                                HeaderButtonType="None" UniqueName="VideoViewed" ItemStyle-Width="150px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Duration" SortExpression="Duration" HeaderText="Duration"
                                HeaderButtonType="None" UniqueName="Duration" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Sales_Status" SortExpression="Sales_Status" HeaderText="Sales Status"
                                HeaderButtonType="None" UniqueName="SalesStatus" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ProspectValue" SortExpression="ProspectValue"
                                HeaderText="Prospect Value" HeaderButtonType="None" UniqueName="ProspectValue"
                                ItemStyle-Width="100px" FilterControlWidth="100px" ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="iplocation" SortExpression="iplocation" HeaderText="Location"
                                HeaderButtonType="None" UniqueName="iplocation" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle AlwaysVisible="true" PageSizeControlType="RadDropDownList" />
                    </telerik:GridTableView>
                </DetailTables>
                <PagerStyle AlwaysVisible="true" PageSizeControlType="RadDropDownList" />
            </MasterTableView>
            <FilterMenu EnableImageSprites="False" />
        </telerik:RadGrid>

Below is the code snippet in my aspx.cs file
 GridView12.ExportSettings.FileName = "AllDetails";
                GridView12.MasterTableView.UseAllDataFields = true;
                GridView12.MasterTableView.HierarchyDefaultExpanded = true;
                GridView12.MasterTableView.ExportToExcel();

HTML is the excel format of export 

 GridView12.ExportSettings.FileName = "AllDetails";
                GridView12.MasterTableView.UseAllDataFields = true;
                GridView12.MasterTableView.HierarchyDefaultExpanded = true;
                GridView12.MasterTableView.ExportToExcel();






Shinu
Top achievements
Rank 2
 answered on 29 Jan 2014
7 answers
171 views
Hello All,

I am building a splitbutton with many children buttons that will all be templates the template will consist of the normal link for the button and two images on the far right, both buttons to execute different code. It would look something like this:

<telerik:RadToolBarSplitButton> 
  <Buttons> 
    <telerik:RadToolBarButton> 
      <ItemTemplate> 
         <table> 
           <tr><td> Normal Link Button</td><td>Image button</td></td><td>Image button</td></tr> 
         </table> 
      </ItemTemplate> 
    </telerik:RadToolBarButton> 
   </Buttons> 
</telerik:RadToolBarSplitButton> 

How can I adopt the styles from the toolbar so that the drop down buttons look as they would without the template only with a couple extra buttons on the right hand side?

Thank You as always for you help
jlj30
Top achievements
Rank 2
 answered on 29 Jan 2014
1 answer
252 views
I was hoping to use the Scheduler control for something that should be very simple.
I'd like to show a full monthly calendar that takes up most of the webpage and has multi-day entries for trips that are planned.
For example I may have from Mon-Fri a single appointment, and Wed-Fri another appointment for other people.  One would go on top of the other.

So far this part seems to work just fine; however, I want each appointment to have 3 rows of information and thus the height of the appointment should accommodate this.
<Client Visiting>
<City, State, Zip>
<People Visiting>

I tried using the example here, with no luck:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-tweak-the-appearance-of-radscheduler-s-cells.aspx
<style type="text/css">  
        .RadScheduler_Default .rsMonthView td.rsCell  
            {  
                height: 150px ;  
                background: green;  
            }  
 
        .RadScheduler_Default .rsMonthView div.rsWrap
            {
                height:80px;
            }
        .RadScheduler_Default
            {   
                height:700px !important;
                   
            }
           
    </style>

And the code for the Scheduler itself:
<telerik:RadScheduler ID="RadScheduler1" runat="server" AllowDelete="False"
    AllowEdit="False" AllowInsert="False" DataDescriptionField="IO Team"
    DataEndField="End" DataKeyField="Start" DataSourceID="SqlDataSource1"
    DataStartField="Start" DataSubjectField="Client" ReadOnly="True"
    SelectedView="MonthView" ShowFooter="False" ShowHoursColumn="False"
    SelectedDate="2014-01-24" CssClass="RadScheduler_Default">
    <MonthView VisibleAppointmentsPerDay="4" MinimumRowHeight="7"  />
    <AppointmentTemplate>
        <div class="rsAptSubject">
           <%# Eval("Subject") %>
        </div>
        <%# Eval("Description")%>
    </AppointmentTemplate>
</telerik:RadScheduler>

Any assistance with what I am missing would be appreciated.
If I'd be better off using another control as well, I wouldn't mind changing... I don't need to add/edit/view details/etc.  This will be used in a fairly simple manner.
Plamen
Telerik team
 answered on 29 Jan 2014
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?