Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
190 views
I have a requirement that the user should not be able to set the End By date outside of a specific date range.  i.e. The user can not set the End By date to 8/30/2010 when the required date range is 8/1/2010 to 8/21/2010.

I have set a Shared Calendar and have disabled the dates in the calendar popup by setting the RangeMinDate and RangeMinDate; however, I would like to set the MinDate and MaxDate properties of the End By RadDatePicker so that the User is prevented from entering a date outside of the required date range and is provided a visual clue that there is an error, as I have implemented in the RadDatePickers that determine the duration.

Is this possible?

Thanks,

Al
Vessy
Telerik team
 answered on 14 Mar 2018
3 answers
1.2K+ views

When I try to run the grid example locally on the "Live Examples - Telerik UI for ASP.NET AJAX R1 2017 SP1" page, I receive the following error message. How can I fix this error? I'm running Microsoft SQL Server 2016 on the same computer and selected the option to install the Telerik Sample Database when installing Telerik UI for ASP.NET AJAX.

Is this error because it can't connect to the SQL Server database on my computer or because it can connect to SQL Server but can't open the actual database it needs? How can I manually make sure the SQL database(s) needed for the example applications running locally are setup properly and accessible by the applications?

 

 A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Marin Bratanov
Telerik team
 answered on 14 Mar 2018
12 answers
480 views
Hi

The Skin .css Files are quite big and repetitive (colors, fonts, borders). To customize these and maintain as well can become quite some work. That's why i'm asking if there is a LESS/SASS version available or planned for the near future? 

Thanks!

Some Links: 
http://sass-lang.com/
http://lesscss.org/

Marin Bratanov
Telerik team
 answered on 14 Mar 2018
2 answers
145 views

Hi,

is there an example of the structure for a XML Datasource bind to TileList?

Can anyone post an example of a XMLFile ? Sorry nothing to find in forums and internet ...

Thanks

Yano
Top achievements
Rank 1
 answered on 14 Mar 2018
0 answers
146 views

Hey I'm trying to sort my RadGrid columns using OnsortCommand event, but the event never fire's when clicked on column header.

Below the code for my Radgrid RadGrid<telerik:radgrid runat="server" id="EnergyWindowPresetGrid" cellspacing="0" gridlines="None" style="outline: none;"EnableViewState="True"OnNeedDataSource="TasksGrid_OnNeedDataSource"OnPreRender="TasksGrid_OnPreRender"AutoGenerateColumns="False"OnItemDataBound="TasksGrid_OnItemDataBound"OnSelectedIndexChanged="TasksGrid_OnSelectedIndexChanged"OnItemCreated="OnItemCreated"OnItemCommand="OnItemCommand">  <clientsettings>   <Scrolling AllowScroll="true" ScrollHeight="300px" UseStaticHeaders="true" />   <telerik:ClientEvents OnGridCreated="GridCreated" /></clientsettings><mastertableview tablelayout="Auto" AllowMultiColumnSorting="True" ><Columns><telerik:GridBoundColumn UniqueName="Preset" DataField="Preset" HeaderStyle-Width="180px" SortExpression="Preset" HeaderButtonType="TextButton"AllowSorting="True"OnSortCommand="OnSortCommand"/><telerik:GridBoundColumn UniqueName="CreatedBy" DataField="CreatedBy"  HeaderStyle-Width="100px" SortExpression="CreatedBy" HeaderButtonType="TextButton" /><telerik:GridBoundColumn UniqueName="ModificationDate" DataField="ModificationDate"  HeaderStyle-Width="100px" SortExpression="ModificationDate" HeaderButtonType="TextButton"/>  <telerik:GridTemplateColumn UniqueName="Edit" ReadOnly="True" HeaderStyle-Width="95px"><ItemTemplate><telerik:RadButton runat="server" CommandName="EditPreset" ID="EditButton" Width="100%"/></ItemTemplate></telerik:GridTemplateColumn><telerik:GridBoundColumn UniqueName="Delete" DataField="Delete" HeaderStyle-Width="20px"/>  </Columns></mastertableview></telerik:radgrid><telerik:RadButton ID="CreatePreset" Text="+" runat="server" Width="1%" font="ArialBold" OnClick="CreatePreset_OnClick"></telerik:RadButton>

can anyone tell what is wrong with the code....

Vibhav
Top achievements
Rank 1
 asked on 14 Mar 2018
1 answer
150 views

I am having an issue where a "File Explorer" control is altering a Rad Menu's layout when it is on the same page. I have stripped it all right back to a nothing else on the page,no CSS, etc and it is still doing it. Code is below:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>

<body>

    <form id="form1" runat="server">

        <telerik:RadScriptManager ID="ToolkitScriptManager1" runat="server" AsyncPostBackTimeout="600" EnableTheming="True">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>

        <telerik:RadMenu ID="RadMenu1" runat="server" Width="1200px" RenderMode="Lightweight" EnableShadows="True" Skin="Glow">
            <Items>
                  
                <telerik:RadMenuItem runat="server" NavigateUrl="Default.aspx" Text="test">
                </telerik:RadMenuItem>

                <telerik:RadMenuItem runat="server" Text="Test Test">
                    <Items>
                        <telerik:RadMenuItem runat="server" Text="Testing 1">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Testing 2">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Testing 3">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Testing 4">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Testing 5">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>

                <telerik:RadMenuItem runat="server" Text="Test Test 2" NavigateUrl="TestTestTest">
                </telerik:RadMenuItem>

                <telerik:RadMenuItem runat="server" Text="Test 5">
                </telerik:RadMenuItem>

            </Items>
        </telerik:RadMenu>
     
        <div style="clear:both;">

            <telerik:RadFileExplorer RenderMode="Lightweight" ID="myDocsFileExplorer" runat="server" Width="1200px" Skin="Glow">
                <Configuration ViewPaths="~/mydocs/Documents" UploadPaths="~/mydocs/Documents" DeletePaths="~/mydocs/Documents" MaxUploadFileSize="10000000" AllowFileExtensionRename="false" />
            </telerik:RadFileExplorer>
        
        </div>

    </form>

</body>

</html>

Jamie
Top achievements
Rank 1
 answered on 13 Mar 2018
0 answers
130 views

I have a grid with 3 different button columns

This is the code

<telerik:RadGrid runat="server" ID="RadGridClassOverview" ShowFooter="false" Width="100%" Enableajax="true" ShowStatusBar="True"
allowaddingrecords="false" AutoGenerateColumns="false" AllowSorting="false" allowpagesizeselection="False" AllowMultiRowSelection="false"
OnItemDataBound="OnItemDataBoundHandler" OnDetailTableDataBind="RadGridOverview_DetailTableDataBind"
AllowPaging="True" Skin="Bootstrap" PageSize="30" OnNeedDataSource="RadGridClassOverview_NeedDataSource"
OnItemCommand="RadGridClassOverview_ItemCommand" OnPreRender="RadGridClassOverview_PreRender" CssClass="table table-striped">
<PagerStyle Mode="NextPrev" Position="Bottom" PageSizeControlType="RadComboBox"></PagerStyle>
<MasterTableView AutoGenerateColumns="false" DataKeyNames="Student_reference, Expr1, Group" TableLayout="Auto" RetainExpandStateOnRebind="false" HierarchyLoadMode="ServerBind" EnableHierarchyExpandAll="true" HierarchyDefaultExpanded="false" EditMode="EditForms">
<DetailTables>
<telerik:GridTableView AutoGenerateColumns="false" DataKeyNames="note_ref" Width="100%" EnableHierarchyExpandAll="true" CommandItemDisplay="Top" EditMode="EditForms" Name="GridNotes">
<CommandItemSettings AddNewRecordText="Create New Note" />
<NoRecordsTemplate>
<div>
There are no notes to display
</div>
</NoRecordsTemplate>
<Columns>
<telerik:GridButtonColumn CommandName="View" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" Text="View" UniqueName="ViewCommandColumn">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandName="Edit" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" Text="Edit" UniqueName="EditCommandColumn">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandName="Delete" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" Text="Delete" UniqueName="DeleteCommandColumn">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="student_id" HeaderText="student_id" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="Student_ref" Display="false" runat="server" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="note_ref" DataType="System.Int32" HeaderText="note_ref" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="note_ref" Display="False" runat="server" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="course" HeaderText="code" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="course" Display="false" runat="server" ItemStyle-Width="10px" HeaderStyle-Width="10px">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="course_name" HeaderText="Subject" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="qualname" HeaderStyle-Width="200px" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="noteType" HeaderText="Type" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="noteType" Display="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="typeDesc" HeaderText="Note Type" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="typeDesc" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
</telerik:GridBoundColumn>
<telerik:GridDateTimeColumn DataField="created" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="created" DataFormatString="{0:dd/MM/yyyy}">
</telerik:GridDateTimeColumn>
<telerik:GridBoundColumn DataField="created_by" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="created_by" Display="false" ItemStyle-HorizontalAlign="Left">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="note_content" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="note_content" Display="false" ItemStyle-HorizontalAlign="Center">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<EditColumn UniqueName="Edit">
</EditColumn>
<FormTemplate>
<table style="width: 85%" border="1">
<asp:Panel ID="pnlAdd" runat="server" Visible="false">
<tr style="border: solid">
<td colspan="2"><b>Create New Note</b><br />
</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lblqualcode" runat="server" Text=''></asp:Label>
<br />
Select Note Type<br />
<telerik:RadComboBox ID="RadComboBoxNoteType" runat="server" EmptyMessage="Select NoteType" CausesValidation="False"
HighlightTemplatedItems="true" Height="100px" Width="450px" DropDownWidth="450px" EnableAutomaticLoadOnDemand="False" AutoPostBack="true"
AppendDataBoundItems="true" Visible="true" CssClass="ComboBox" OnSelectedIndexChanged="RadComboBoxNoteType_SelectedIndexChanged">
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td colspan="2">
<telerik:RadComboBox ID="RadComboBoxQual" runat="server" EmptyMessage="Select Subject and class" CausesValidation="False"
HighlightTemplatedItems="true" Height="100px" Width="450px" DropDownWidth="450px" EnableAutomaticLoadOnDemand="False" AutoPostBack="true"
AppendDataBoundItems="true" Visible="true" CssClass="ComboBox">
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td colspan="2">Mindset habits<br />
Please select the mindset habits to link to this note</td>
</tr>
<tr>
<td colspan="2">
<telerik:RadListBox ID="ListBoxhabits" runat="server" RenderMode="Lightweight" CheckBoxes="true">
<Items>
<telerik:RadListBoxItem Text=" Time" />
<telerik:RadListBoxItem Text=" Engagement" />
<telerik:RadListBoxItem Text=" Response" />
<telerik:RadListBoxItem Text=" Resources" />
<telerik:RadListBoxItem Text=" Organisation" />
</Items>
</telerik:RadListBox>
</td>
</tr>
<tr>
<td colspan="2">Enter Note content
<br />
<asp:TextBox ID="txtNoteContent" runat="server" Text="" class="form-control input-normal" Rows="5" Columns="100" TextMode="MultiLine">
</asp:TextBox><br />
<br />
<br />
<br />
<asp:Label ID="lblMessage" runat="server" Text=''></asp:Label>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="btnSave" CausesValidation="False" Text="Save"
runat="server" AutoPostBack="True" CommandName="PerformInsert"></asp:Button>&nbsp;
</td>
</tr>
</asp:Panel>
<asp:Panel ID="Paneledit" runat="server" Visible="false">
<tr>
<td colspan="2">
<b>Note Details</b><br />
</td>
</tr>
<tr>
<td colspan="2">Edit Note content
<br />
<asp:TextBox ID="txteditnotedets" runat="server" class="form-control input-normal" Rows="5" Columns="100" TextMode='MultiLine' Text='<%# Bind("note_content") %>'>
</asp:TextBox><br />
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="btnUpdate" CausesValidation="False" Text="Save"
runat="server" AutoPostBack="True" CommandName="PerformUpdate"></asp:Button>&nbsp;
</td>
</tr>
</asp:Panel>
<asp:Panel ID="Paneldetail" runat="server" Visible="false">
<tr>
<td colspan="2">
<b>Note Details</b><br />
</td>
</tr>
<tr> <td colspan="2">
<asp:Label ID="LabelEditDetails" runat="server" Text='<%# Bind("note_content") %>'></asp:Label>
</td>
</tr>
</asp:Panel>
</table>
</FormTemplate>
</EditFormSettings>
</telerik:GridTableView>
</DetailTables>
<Columns>

I want to display panelDetail when I click the View Column and Paneledit when I click the edit column. PanelEdit is displaying correctly but PanelDelete does not work. What do I need to do to get it to work?

Suzan
Top achievements
Rank 1
 asked on 13 Mar 2018
2 answers
136 views

Hello,

I have a custom skin for the menu control. All works well only in the slideout menu level 2 appears the rmSprite in the background. How can I overwrite this in CSS. Which class do I need to overwrite.

 

kind regards,

Jacques

Jacques
Top achievements
Rank 1
 answered on 13 Mar 2018
1 answer
143 views

I have a readgrid with a list of USA addresses.

 

I want to be able to enter in a city, state or zip code and have it show me the list with what is closest first to what was entered.

What API would I want to connect with?  

 

Also, has anybody had any experience with taking this one step further and not just look at what is closest but factor in other items like price example.

 

Facility A is 10 miles away and our cost is $50

Facility B is 11 miles away and our cost is $40

 

Even thought A is closed I want B to show first since its only 1 mile away but we will save $10 by telling the person searching this is the first pick.

Marin Bratanov
Telerik team
 answered on 13 Mar 2018
2 answers
328 views
I have inherited a project that was built using an older version than I am able to access.  Please help in allowing me to download 2015.3.1111.
Kathryn
Telerik team
 answered on 12 Mar 2018
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?